From 0231cc7d13bc92f1e93bd0edc79587d836858dfe Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 25 Feb 2025 18:47:47 +0000 Subject: [PATCH] Releasing version 3.58.0 --- CHANGELOG.md | 18 + bmc-accessgovernancecp/pom.xml | 4 +- .../bmc/accessgovernancecp/client.properties | 2 +- bmc-addons/bmc-aispeech-realtime/pom.xml | 6 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 6 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- .../com/oracle/bmc/adm/client.properties | 2 +- bmc-aianomalydetection/pom.xml | 4 +- .../bmc/aianomalydetection/client.properties | 2 +- bmc-aidocument/pom.xml | 4 +- .../oracle/bmc/aidocument/client.properties | 2 +- bmc-ailanguage/pom.xml | 4 +- .../oracle/bmc/ailanguage/client.properties | 2 +- bmc-aispeech/pom.xml | 4 +- .../com/oracle/bmc/aispeech/client.properties | 2 +- bmc-aivision/pom.xml | 4 +- .../com/oracle/bmc/aivision/client.properties | 2 +- bmc-analytics/pom.xml | 4 +- .../oracle/bmc/analytics/client.properties | 2 +- bmc-announcementsservice/pom.xml | 4 +- .../announcementsservice/client.properties | 2 +- bmc-apigateway/pom.xml | 4 +- .../oracle/bmc/apigateway/client.properties | 2 +- bmc-apmconfig/pom.xml | 4 +- .../oracle/bmc/apmconfig/client.properties | 2 +- bmc-apmcontrolplane/pom.xml | 4 +- .../bmc/apmcontrolplane/client.properties | 2 +- bmc-apmsynthetics/pom.xml | 4 +- .../bmc/apmsynthetics/client.properties | 2 +- bmc-apmtraces/pom.xml | 4 +- .../oracle/bmc/apmtraces/client.properties | 2 +- bmc-appmgmtcontrol/pom.xml | 4 +- .../bmc/appmgmtcontrol/client.properties | 2 +- bmc-artifacts/pom.xml | 4 +- .../oracle/bmc/artifacts/client.properties | 2 +- bmc-audit/pom.xml | 4 +- .../com/oracle/bmc/audit/client.properties | 2 +- bmc-autoscaling/pom.xml | 4 +- .../oracle/bmc/autoscaling/client.properties | 2 +- bmc-bastion/pom.xml | 4 +- .../com/oracle/bmc/bastion/client.properties | 2 +- bmc-bds/pom.xml | 4 +- .../com/oracle/bmc/bds/client.properties | 2 +- bmc-blockchain/pom.xml | 4 +- .../oracle/bmc/blockchain/client.properties | 2 +- bmc-bom/pom.xml | 334 +- bmc-budget/pom.xml | 4 +- .../com/oracle/bmc/budget/client.properties | 2 +- bmc-capacitymanagement/pom.xml | 4 +- .../bmc/capacitymanagement/client.properties | 2 +- bmc-certificates/pom.xml | 4 +- .../oracle/bmc/certificates/client.properties | 2 +- bmc-certificatesmanagement/pom.xml | 4 +- .../certificatesmanagement/client.properties | 2 +- bmc-cims/pom.xml | 4 +- .../com/oracle/bmc/cims/client.properties | 2 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- .../oracle/bmc/cloudbridge/client.properties | 2 +- bmc-cloudguard/pom.xml | 4 +- .../oracle/bmc/cloudguard/client.properties | 2 +- bmc-cloudmigrations/pom.xml | 4 +- .../bmc/cloudmigrations/client.properties | 2 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../clusterplacementgroups/client.properties | 2 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- .../com/oracle/bmc/http/client/pki/Utf8.java | 33 +- bmc-common/pom.xml | 8 +- .../resources/com/oracle/bmc/sdk.properties | 2 +- .../PEMFileRSAPrivateKeySupplierTest.java | 35 + bmc-computecloudatcustomer/pom.xml | 4 +- .../computecloudatcustomer/client.properties | 2 +- bmc-computeinstanceagent/pom.xml | 4 +- .../computeinstanceagent/client.properties | 2 +- bmc-containerengine/pom.xml | 4 +- ...penIdConnectTokenAuthenticationConfig.java | 54 +- .../bmc/containerengine/client.properties | 2 +- bmc-containerinstances/pom.xml | 4 +- .../model/ContainerCommandHealthCheck.java | 279 - .../model/ContainerHealthCheck.java | 5 +- .../model/ContainerHealthCheckType.java | 1 - ...ateContainerCommandHealthCheckDetails.java | 251 - .../model/CreateContainerDetails.java | 16 +- .../CreateContainerHealthCheckDetails.java | 5 +- .../reflect-config.json | 28 - .../bmc/containerinstances/client.properties | 2 +- bmc-core/pom.xml | 6 +- .../com/oracle/bmc/core/VirtualNetwork.java | 35 + .../oracle/bmc/core/VirtualNetworkAsync.java | 35 + .../bmc/core/VirtualNetworkAsyncClient.java | 73 + .../oracle/bmc/core/VirtualNetworkClient.java | 65 + .../core/model/CreateByoipRangeDetails.java | 84 + .../bmc/core/model/CreateIpv6Details.java | 135 +- .../core/model/CreatePrivateIpDetails.java | 135 +- .../bmc/core/model/CreateVnicDetails.java | 74 +- .../java/com/oracle/bmc/core/model/Ipv6.java | 193 +- .../bmc/core/model/NetworkSecurityGroup.java | 26 +- .../com/oracle/bmc/core/model/PrivateIp.java | 195 +- .../core/model/UpdateByoipRangeDetails.java | 96 +- .../bmc/core/model/UpdateIpv6Details.java | 91 +- .../core/model/UpdatePrivateIpDetails.java | 85 +- .../bmc/core/model/UpdateVnicDetails.java | 30 +- .../java/com/oracle/bmc/core/model/Vnic.java | 14 +- .../core/requests/Ipv6VnicDetachRequest.java | 308 + .../bmc/core/requests/ListIpv6sRequest.java | 67 +- .../core/requests/ListPrivateIpsRequest.java | 67 +- .../requests/PrivateIpVnicDetachRequest.java | 308 + .../responses/Ipv6VnicDetachResponse.java | 208 + .../PrivateIpVnicDetachResponse.java | 208 + .../oci-java-sdk-core/reflect-config.json | 48 + .../com/oracle/bmc/core/client.properties | 2 +- bmc-dashboardservice/pom.xml | 4 +- .../bmc/dashboardservice/client.properties | 2 +- bmc-database/pom.xml | 6 +- .../com/oracle/bmc/database/client.properties | 2 +- bmc-databasemanagement/pom.xml | 4 +- .../bmc/databasemanagement/client.properties | 2 +- bmc-databasemigration/pom.xml | 4 +- .../bmc/databasemigration/client.properties | 2 +- bmc-databasetools/pom.xml | 4 +- .../bmc/databasetools/client.properties | 2 +- bmc-datacatalog/pom.xml | 4 +- .../oracle/bmc/datacatalog/client.properties | 2 +- bmc-dataflow/pom.xml | 4 +- .../com/oracle/bmc/dataflow/client.properties | 2 +- bmc-dataintegration/pom.xml | 4 +- .../bmc/dataintegration/client.properties | 2 +- bmc-datalabelingservice/pom.xml | 4 +- .../bmc/datalabelingservice/client.properties | 2 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- .../client.properties | 2 +- bmc-datasafe/pom.xml | 4 +- .../com/oracle/bmc/datasafe/client.properties | 2 +- bmc-datascience/pom.xml | 4 +- .../model/CreatePipelineDetails.java | 51 + .../bmc/datascience/model/Pipeline.java | 51 + .../model/PipelineContainerStepDetails.java | 52 + .../PipelineContainerStepUpdateDetails.java | 56 +- .../PipelineCustomScriptStepDetails.java | 52 + ...PipelineCustomScriptStepUpdateDetails.java | 56 +- .../PipelineDataflowConfigurationDetails.java | 419 ++ .../model/PipelineDataflowStepDetails.java | 237 + .../model/PipelineDataflowStepRun.java | 217 + .../PipelineDataflowStepUpdateDetails.java | 176 + .../model/PipelineStepDetails.java | 4 + .../model/PipelineStepOverrideDetails.java | 40 +- .../datascience/model/PipelineStepRun.java | 6 +- .../model/PipelineStepUpdateDetails.java | 4 + .../model/UpdatePipelineDetails.java | 51 + .../reflect-config.json | 56 + .../oracle/bmc/datascience/client.properties | 2 +- bmc-dblm/pom.xml | 21 + .../bmc/dblm/DbLifeCycleManagement.java | 275 + .../bmc/dblm/DbLifeCycleManagementAsync.java | 252 + .../DbLifeCycleManagementAsyncClient.java | 681 ++ .../bmc/dblm/DbLifeCycleManagementClient.java | 730 ++ .../dblm/DbLifeCycleManagementPaginators.java | 762 ++ .../dblm/DbLifeCycleManagementWaiters.java | 190 + .../com/oracle/bmc/dblm/model/ActionType.java | 56 + .../AggregatedVulnerabilityCollection.java | 134 + .../model/AggregatedVulnerabilitySummary.java | 225 + .../com/oracle/bmc/dblm/model/ChildPdb.java | 331 + .../model/CreateVulnerabilityScanDetails.java | 179 + .../bmc/dblm/model/DblmVulnerability.java | 570 ++ .../com/oracle/bmc/dblm/model/HostInfo.java | 167 + .../oracle/bmc/dblm/model/MetricError.java | 329 + .../dblm/model/NotificationCollection.java | 133 + .../bmc/dblm/model/NotificationSummary.java | 306 + .../bmc/dblm/model/OperationStatus.java | 59 + .../oracle/bmc/dblm/model/OperationType.java | 60 + .../model/PatchRecommendationSummary.java | 207 + .../PatchRecommendationsDetailsSummary.java | 335 + .../oracle/bmc/dblm/model/ResourceInfo.java | 525 ++ .../bmc/dblm/model/ResourceSummary.java | 358 + .../bmc/dblm/model/ResourcesSeverities.java | 44 + .../com/oracle/bmc/dblm/model/SortOrder.java | 40 + .../dblm/model/VulnerabilitiesSummary.java | 317 + .../dblm/model/VulnerabilityCollection.java | 133 + .../VulnerabilityResourceCollection.java | 133 + .../model/VulnerabilityResourceSummary.java | 659 ++ .../dblm/model/VulnerabilityRiskLevel.java | 43 + .../bmc/dblm/model/VulnerabilityScan.java | 801 +++ .../model/VulnerabilityScanCollection.java | 133 + .../dblm/model/VulnerabilityScanSummary.java | 652 ++ .../bmc/dblm/model/VulnerabilitySummary.java | 297 + .../oracle/bmc/dblm/model/WorkRequest.java | 489 ++ .../bmc/dblm/model/WorkRequestError.java | 211 + .../model/WorkRequestErrorCollection.java | 134 + .../bmc/dblm/model/WorkRequestLogEntry.java | 169 + .../model/WorkRequestLogEntryCollection.java | 134 + .../bmc/dblm/model/WorkRequestResource.java | 307 + .../model/WorkRequestResourceMetadataKey.java | 52 + .../bmc/dblm/model/WorkRequestSummary.java | 491 ++ .../model/WorkRequestSummaryCollection.java | 134 + .../CreateVulnerabilityScanRequest.java | 281 + .../requests/GetVulnerabilityRequest.java | 256 + .../requests/GetVulnerabilityScanRequest.java | 205 + .../dblm/requests/GetWorkRequestRequest.java | 192 + ...istAggregatedVulnerabilityDataRequest.java | 387 + .../requests/ListNotificationsRequest.java | 218 + .../requests/ListVulnerabilitiesRequest.java | 602 ++ .../ListVulnerabilityResourcesRequest.java | 605 ++ .../ListVulnerabilityScansRequest.java | 633 ++ .../ListWorkRequestErrorsRequest.java | 361 + .../requests/ListWorkRequestLogsRequest.java | 359 + .../requests/ListWorkRequestsRequest.java | 444 ++ .../CreateVulnerabilityScanResponse.java | 338 + .../responses/GetVulnerabilityResponse.java | 211 + .../GetVulnerabilityScanResponse.java | 211 + .../responses/GetWorkRequestResponse.java | 249 + ...stAggregatedVulnerabilityDataResponse.java | 226 + .../responses/ListNotificationsResponse.java | 226 + .../ListVulnerabilitiesResponse.java | 230 + .../ListVulnerabilityResourcesResponse.java | 238 + .../ListVulnerabilityScansResponse.java | 232 + .../ListWorkRequestErrorsResponse.java | 231 + .../ListWorkRequestLogsResponse.java | 234 + .../responses/ListWorkRequestsResponse.java | 233 + .../oci-java-sdk-dblm/reflect-config.json | 480 ++ .../com/oracle/bmc/dblm/client.properties | 9 + bmc-delegateaccesscontrol/pom.xml | 4 +- .../delegateaccesscontrol/client.properties | 2 +- bmc-demandsignal/pom.xml | 4 +- .../oracle/bmc/demandsignal/client.properties | 2 +- bmc-desktops/pom.xml | 4 +- .../com/oracle/bmc/desktops/client.properties | 2 +- bmc-devops/pom.xml | 4 +- .../com/oracle/bmc/devops/client.properties | 2 +- bmc-disasterrecovery/pom.xml | 4 +- .../bmc/disasterrecovery/client.properties | 2 +- bmc-dns/pom.xml | 6 +- .../com/oracle/bmc/dns/client.properties | 2 +- bmc-dts/pom.xml | 4 +- .../com/oracle/bmc/dts/client.properties | 2 +- bmc-email/pom.xml | 4 +- .../bmc/email/model/CreateDkimDetails.java | 46 + .../java/com/oracle/bmc/email/model/Dkim.java | 76 + .../oracle/bmc/email/model/DkimSummary.java | 76 + .../com/oracle/bmc/email/client.properties | 2 +- bmc-emaildataplane/pom.xml | 4 +- .../bmc/emaildataplane/client.properties | 2 +- bmc-emwarehouse/pom.xml | 4 +- .../oracle/bmc/emwarehouse/client.properties | 2 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- .../com/oracle/bmc/events/client.properties | 2 +- bmc-examples/pom.xml | 10 +- bmc-filestorage/pom.xml | 4 +- .../oracle/bmc/filestorage/client.properties | 2 +- bmc-fleetappsmanagement/pom.xml | 4 +- .../bmc/fleetappsmanagement/client.properties | 2 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- .../bmc/fleetsoftwareupdate/client.properties | 2 +- bmc-full/pom.xml | 8 +- bmc-functions/pom.xml | 4 +- .../oracle/bmc/functions/client.properties | 2 +- bmc-fusionapps/pom.xml | 4 +- .../oracle/bmc/fusionapps/client.properties | 2 +- bmc-generativeai/pom.xml | 4 +- .../oracle/bmc/generativeai/client.properties | 2 +- bmc-generativeaiagent/pom.xml | 4 +- .../bmc/generativeaiagent/client.properties | 2 +- bmc-generativeaiagentruntime/pom.xml | 4 +- .../client.properties | 2 +- bmc-generativeaiinference/pom.xml | 4 +- .../generativeaiinference/client.properties | 2 +- bmc-genericartifactscontent/pom.xml | 4 +- .../genericartifactscontent/client.properties | 2 +- bmc-globallydistributeddatabase/pom.xml | 4 +- .../client.properties | 2 +- bmc-goldengate/pom.xml | 4 +- .../oracle/bmc/goldengate/client.properties | 2 +- bmc-governancerulescontrolplane/pom.xml | 4 +- .../client.properties | 2 +- bmc-healthchecks/pom.xml | 4 +- .../oracle/bmc/healthchecks/client.properties | 2 +- bmc-identity/pom.xml | 4 +- .../com/oracle/bmc/identity/client.properties | 2 +- bmc-identitydataplane/pom.xml | 4 +- .../bmc/identitydataplane/client.properties | 2 +- bmc-identitydomains/pom.xml | 4 +- .../bmc/identitydomains/client.properties | 2 +- bmc-integration/pom.xml | 4 +- .../oracle/bmc/integration/client.properties | 2 +- bmc-jms/pom.xml | 4 +- .../com/oracle/bmc/jms/client.properties | 2 +- bmc-jmsjavadownloads/pom.xml | 4 +- .../bmc/jmsjavadownloads/client.properties | 2 +- bmc-keymanagement/pom.xml | 4 +- .../bmc/keymanagement/client.properties | 2 +- bmc-licensemanager/pom.xml | 4 +- .../bmc/licensemanager/client.properties | 2 +- bmc-limits/pom.xml | 4 +- .../com/oracle/bmc/limits/client.properties | 2 +- bmc-loadbalancer/pom.xml | 4 +- .../model/CreateLoadBalancerDetails.java | 43 +- .../bmc/loadbalancer/model/LoadBalancer.java | 43 +- .../model/UpdateLoadBalancerDetails.java | 43 +- .../oracle/bmc/loadbalancer/client.properties | 2 +- bmc-lockbox/pom.xml | 4 +- .../com/oracle/bmc/lockbox/client.properties | 2 +- bmc-loganalytics/pom.xml | 4 +- .../oracle/bmc/loganalytics/client.properties | 2 +- bmc-logging/pom.xml | 4 +- .../com/oracle/bmc/logging/client.properties | 2 +- bmc-loggingingestion/pom.xml | 4 +- .../bmc/loggingingestion/client.properties | 2 +- bmc-loggingsearch/pom.xml | 4 +- .../bmc/loggingsearch/client.properties | 2 +- bmc-managementagent/pom.xml | 4 +- .../bmc/managementagent/client.properties | 2 +- bmc-managementdashboard/pom.xml | 4 +- .../bmc/managementdashboard/client.properties | 2 +- bmc-marketplace/pom.xml | 4 +- .../oracle/bmc/marketplace/client.properties | 2 +- bmc-marketplaceprivateoffer/pom.xml | 4 +- .../marketplaceprivateoffer/client.properties | 2 +- bmc-marketplacepublisher/pom.xml | 4 +- .../marketplacepublisher/client.properties | 2 +- bmc-mediaservices/pom.xml | 4 +- .../bmc/mediaservices/client.properties | 2 +- bmc-monitoring/pom.xml | 4 +- .../oracle/bmc/monitoring/client.properties | 2 +- bmc-mysql/pom.xml | 4 +- .../com/oracle/bmc/mysql/model/Backup.java | 46 + .../oracle/bmc/mysql/model/BackupSummary.java | 46 + .../com/oracle/bmc/mysql/model/Channel.java | 52 +- .../bmc/mysql/model/ChannelSummary.java | 52 +- .../oracle/bmc/mysql/model/Configuration.java | 52 +- .../bmc/mysql/model/ConfigurationSummary.java | 52 +- .../mysql/model/ConfigurationVariables.java | 6235 +++++++++++++---- .../com/oracle/bmc/mysql/model/DbSystem.java | 46 + .../bmc/mysql/model/DbSystemSummary.java | 46 + .../oci-java-sdk-mysql/reflect-config.json | 24 + .../com/oracle/bmc/mysql/client.properties | 2 +- bmc-networkfirewall/pom.xml | 4 +- .../bmc/networkfirewall/client.properties | 2 +- bmc-networkloadbalancer/pom.xml | 4 +- .../bmc/networkloadbalancer/client.properties | 2 +- bmc-nosql/pom.xml | 4 +- .../com/oracle/bmc/nosql/client.properties | 2 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- .../bmc/objectstorage/client.properties | 2 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- .../com/oracle/bmc/oce/client.properties | 2 +- bmc-ocicontrolcenter/pom.xml | 4 +- .../bmc/ocicontrolcenter/client.properties | 2 +- bmc-ocvp/pom.xml | 4 +- .../com/oracle/bmc/ocvp/client.properties | 2 +- bmc-oda/pom.xml | 4 +- .../com/oracle/bmc/oda/client.properties | 2 +- bmc-onesubscription/pom.xml | 4 +- .../bmc/onesubscription/client.properties | 2 +- bmc-ons/pom.xml | 4 +- .../com/oracle/bmc/ons/client.properties | 2 +- bmc-opa/pom.xml | 4 +- .../com/oracle/bmc/opa/client.properties | 2 +- bmc-opensearch/pom.xml | 4 +- .../oracle/bmc/opensearch/client.properties | 2 +- bmc-operatoraccesscontrol/pom.xml | 4 +- .../operatoraccesscontrol/client.properties | 2 +- bmc-opsi/pom.xml | 4 +- .../com/oracle/bmc/opsi/client.properties | 2 +- bmc-optimizer/pom.xml | 4 +- .../oracle/bmc/optimizer/client.properties | 2 +- bmc-osmanagement/pom.xml | 4 +- .../oracle/bmc/osmanagement/client.properties | 2 +- bmc-osmanagementhub/pom.xml | 4 +- .../osmanagementhub/LifecycleEnvironment.java | 16 + .../LifecycleEnvironmentAsync.java | 16 + .../LifecycleEnvironmentAsyncClient.java | 38 + .../LifecycleEnvironmentClient.java | 35 + .../bmc/osmanagementhub/ManagedInstance.java | 35 + .../osmanagementhub/ManagedInstanceAsync.java | 35 + .../ManagedInstanceAsyncClient.java | 94 + .../ManagedInstanceClient.java | 89 + .../osmanagementhub/ManagedInstanceGroup.java | 17 + .../ManagedInstanceGroupAsync.java | 16 + .../ManagedInstanceGroupAsyncClient.java | 41 + .../ManagedInstanceGroupClient.java | 37 + .../osmanagementhub/ManagementStation.java | 16 +- .../ManagementStationAsync.java | 16 +- .../ManagementStationAsyncClient.java | 9 + .../ManagementStationClient.java | 9 + .../bmc/osmanagementhub/Onboarding.java | 122 +- .../bmc/osmanagementhub/OnboardingAsync.java | 128 +- .../OnboardingAsyncClient.java | 285 + .../bmc/osmanagementhub/OnboardingClient.java | 258 + .../osmanagementhub/OnboardingPaginators.java | 134 + .../bmc/osmanagementhub/SoftwareSource.java | 154 +- .../osmanagementhub/SoftwareSourceAsync.java | 127 +- .../SoftwareSourceAsyncClient.java | 267 +- .../osmanagementhub/SoftwareSourceClient.java | 244 +- .../SoftwareSourcePaginators.java | 128 + .../bmc/osmanagementhub/WorkRequest.java | 24 +- .../bmc/osmanagementhub/WorkRequestAsync.java | 23 +- .../WorkRequestAsyncClient.java | 37 + .../osmanagementhub/WorkRequestClient.java | 34 + .../AddPackagesToSoftwareSourceDetails.java | 80 +- .../bmc/osmanagementhub/model/ArchType.java | 1 + ...InstancesWithManagementStationDetails.java | 179 + .../AttachLifecycleStageToProfileDetails.java | 145 + ...hManagedInstanceGroupToProfileDetails.java | 148 + ...tachManagementStationToProfileDetails.java | 147 + ...AttachSoftwareSourcesToProfileDetails.java | 149 + .../CreateCustomSoftwareSourceDetails.java | 45 +- .../model/CreateManagementStationDetails.java | 50 + .../CreateMirrorConfigurationDetails.java | 67 +- .../CreatePrivateSoftwareSourceDetails.java | 481 ++ .../model/CreateProfileDetails.java | 25 +- .../model/CreateScheduledJobDetails.java | 54 +- .../model/CreateSoftwareSourceDetails.java | 8 +- ...CreateThirdPartySoftwareSourceDetails.java | 481 ++ ...eVersionedCustomSoftwareSourceDetails.java | 45 +- ...CreateWindowsStandAloneProfileDetails.java | 332 + .../model/CustomSoftwareSource.java | 94 +- .../model/CustomSoftwareSourceSummary.java | 48 +- ...tachSoftwareSourcesFromProfileDetails.java | 149 + .../bmc/osmanagementhub/model/Event.java | 4 + .../bmc/osmanagementhub/model/EventType.java | 2 + .../osmanagementhub/model/GroupProfile.java | 30 + .../osmanagementhub/model/HealthState.java | 3 +- ...PackagesOnManagedInstanceGroupDetails.java | 43 +- .../model/LifecycleProfile.java | 30 + .../model/ManagedInstance.java | 92 +- .../model/ManagedInstanceStatus.java | 1 + .../model/ManagedInstanceSummary.java | 44 +- .../model/ManagementStation.java | 360 + .../model/ManagementStationEventData.java | 96 +- .../model/ManagementStationSummary.java | 40 +- .../bmc/osmanagementhub/model/MetricName.java | 2 + .../model/MirrorConfiguration.java | 69 +- .../osmanagementhub/model/MirrorSummary.java | 166 +- .../bmc/osmanagementhub/model/MirrorType.java | 4 +- .../model/MirrorsCollection.java | 3 +- .../model/OperationStatus.java | 1 + .../osmanagementhub/model/OperationTypes.java | 2 + .../model/PeerManagementStation.java | 179 + .../model/PrivateSoftwareSource.java | 580 ++ .../model/PrivateSoftwareSourceSummary.java | 412 ++ .../bmc/osmanagementhub/model/Profile.java | 57 +- .../model/ProfileCollection.java | 4 +- .../osmanagementhub/model/ProfileSummary.java | 32 +- .../osmanagementhub/model/ProfileVersion.java | 974 +++ .../osmanagementhub/model/RebootEvent.java | 349 + .../model/RebootEventData.java | 207 + .../model/RebootLifecycleStageDetails.java | 176 + .../model/RebootManagedInstanceDetails.java | 176 + .../RebootManagedInstanceGroupDetails.java | 176 + ...movePackagesFromSoftwareSourceDetails.java | 142 + ...eplacePackagesInSoftwareSourceDetails.java | 142 + .../model/RerunWorkRequestDetails.java | 177 + .../osmanagementhub/model/ScheduledJob.java | 54 +- .../model/ScheduledJobOperation.java | 56 +- .../model/ScheduledJobSummary.java | 54 +- .../osmanagementhub/model/SoftwareSource.java | 21 +- .../model/SoftwareSourceProfile.java | 30 + .../model/SoftwareSourceSubType.java | 54 + .../model/SoftwareSourceSummary.java | 14 +- .../model/SoftwareSourceType.java | 2 + .../osmanagementhub/model/StationProfile.java | 30 + .../model/SynchronizeMirrorsDetails.java | 22 +- .../osmanagementhub/model/SysadminEvent.java | 349 + .../model/SysadminEventData.java | 327 + .../model/ThirdPartySoftwareSource.java | 580 ++ .../ThirdPartySoftwareSourceSummary.java | 412 ++ .../model/UpdateManagementStationDetails.java | 50 + .../UpdateMirrorConfigurationDetails.java | 67 +- .../UpdatePrivateSoftwareSourceDetails.java | 407 ++ .../model/UpdateProfileDetails.java | 2 +- .../model/UpdateScheduledJobDetails.java | 8 +- .../model/UpdateSoftwareSourceDetails.java | 8 +- ...UpdateThirdPartySoftwareSourceDetails.java | 407 ++ .../model/UpdateWorkRequestDetails.java | 8 +- .../model/VendorSoftwareSource.java | 24 +- .../model/VersionedCustomSoftwareSource.java | 94 +- .../VersionedCustomSoftwareSourceSummary.java | 45 +- .../model/WindowsStandaloneProfile.java | 32 +- .../osmanagementhub/model/WorkRequest.java | 166 +- .../model/WorkRequestError.java | 16 +- .../model/WorkRequestErrorCollection.java | 4 +- .../model/WorkRequestLogEntryCollection.java | 4 +- .../model/WorkRequestOperationType.java | 1 + .../model/WorkRequestSummary.java | 56 +- .../model/WorkRequestSummaryCollection.java | 4 +- ...InstancesWithManagementStationRequest.java | 416 ++ .../AttachLifecycleStageToProfileRequest.java | 391 ++ ...hManagedInstanceGroupToProfileRequest.java | 401 ++ ...tachManagementStationToProfileRequest.java | 394 ++ ...AttachSoftwareSourcesToProfileRequest.java | 391 ++ .../DeleteManagementStationRequest.java | 54 +- ...tachSoftwareSourcesFromProfileRequest.java | 394 ++ .../requests/GetProfileVersionRequest.java | 241 + .../GetSoftwareSourceManifestRequest.java | 214 + .../ListAvailableSoftwarePackagesRequest.java | 512 ++ .../requests/ListEntitlementsRequest.java | 10 +- .../requests/ListManagedInstancesRequest.java | 176 +- .../ListManagementStationsRequest.java | 92 +- ...rofileAvailableSoftwareSourcesRequest.java | 525 ++ .../requests/ListProfilesRequest.java | 147 +- ...SoftwarePackageSoftwareSourcesRequest.java | 30 +- .../requests/ListSoftwareSourcesRequest.java | 67 +- .../requests/ListWorkRequestsRequest.java | 39 +- .../requests/RebootLifecycleStageRequest.java | 376 + .../RebootManagedInstanceGroupRequest.java | 381 + .../RebootManagedInstanceRequest.java | 387 + ...movePackagesFromSoftwareSourceRequest.java | 382 + ...eplacePackagesInSoftwareSourceRequest.java | 381 + .../requests/RerunWorkRequestRequest.java | 391 ++ ...SoftwareSourceGenerateMetadataRequest.java | 314 + .../UpdateSoftwareSourceManifestRequest.java | 371 + ...nstancesWithManagementStationResponse.java | 188 + ...AttachLifecycleStageToProfileResponse.java | 138 + ...ManagedInstanceGroupToProfileResponse.java | 140 + ...achManagementStationToProfileResponse.java | 139 + ...ttachSoftwareSourcesToProfileResponse.java | 138 + ...achSoftwareSourcesFromProfileResponse.java | 139 + .../responses/GetProfileVersionResponse.java | 211 + .../GetSoftwareSourceManifestResponse.java | 209 + ...ListAvailableSoftwarePackagesResponse.java | 236 + .../ListManagedInstancesResponse.java | 36 + ...ofileAvailableSoftwareSourcesResponse.java | 240 + .../responses/ListProfilesResponse.java | 42 +- .../RebootLifecycleStageResponse.java | 185 + .../RebootManagedInstanceGroupResponse.java | 186 + .../RebootManagedInstanceResponse.java | 185 + ...ovePackagesFromSoftwareSourceResponse.java | 187 + ...placePackagesInSoftwareSourceResponse.java | 186 + .../responses/RerunWorkRequestResponse.java | 185 + ...oftwareSourceGenerateMetadataResponse.java | 138 + .../UpdateSoftwareSourceManifestResponse.java | 260 + .../reflect-config.json | 402 ++ .../bmc/osmanagementhub/client.properties | 2 +- bmc-ospgateway/pom.xml | 4 +- .../oracle/bmc/ospgateway/client.properties | 2 +- bmc-osubbillingschedule/pom.xml | 4 +- .../bmc/osubbillingschedule/client.properties | 2 +- bmc-osuborganizationsubscription/pom.xml | 4 +- .../client.properties | 2 +- bmc-osubsubscription/pom.xml | 4 +- .../bmc/osubsubscription/client.properties | 2 +- bmc-osubusage/pom.xml | 4 +- .../oracle/bmc/osubusage/client.properties | 2 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psql/pom.xml | 4 +- .../com/oracle/bmc/psql/client.properties | 2 +- bmc-queue/pom.xml | 4 +- .../com/oracle/bmc/queue/client.properties | 2 +- bmc-recovery/pom.xml | 4 +- .../com/oracle/bmc/recovery/client.properties | 2 +- bmc-redis/pom.xml | 4 +- .../oracle/bmc/redis/model/RedisCluster.java | 1 + .../model/UpdateRedisClusterDetails.java | 40 + .../com/oracle/bmc/redis/client.properties | 2 +- bmc-resourcemanager/pom.xml | 4 +- .../bmc/resourcemanager/client.properties | 2 +- bmc-resourcescheduler/pom.xml | 4 +- .../bmc/resourcescheduler/client.properties | 2 +- bmc-resourcesearch/pom.xml | 4 +- .../bmc/resourcesearch/client.properties | 2 +- bmc-rover/pom.xml | 4 +- .../com/oracle/bmc/rover/client.properties | 2 +- bmc-sch/pom.xml | 4 +- .../com/oracle/bmc/sch/client.properties | 2 +- bmc-secrets/pom.xml | 4 +- .../com/oracle/bmc/secrets/client.properties | 2 +- bmc-securityattribute/pom.xml | 4 +- .../bmc/securityattribute/client.properties | 2 +- bmc-servicecatalog/pom.xml | 4 +- .../bmc/servicecatalog/client.properties | 2 +- bmc-servicemanagerproxy/pom.xml | 4 +- .../bmc/servicemanagerproxy/client.properties | 2 +- bmc-servicemesh/pom.xml | 4 +- .../oracle/bmc/servicemesh/client.properties | 2 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-stackmonitoring/pom.xml | 4 +- .../bmc/stackmonitoring/client.properties | 2 +- bmc-streaming/pom.xml | 4 +- .../oracle/bmc/streaming/client.properties | 2 +- bmc-tenantmanagercontrolplane/pom.xml | 4 +- .../client.properties | 2 +- bmc-threatintelligence/pom.xml | 4 +- .../bmc/threatintelligence/client.properties | 2 +- bmc-usage/pom.xml | 4 +- .../com/oracle/bmc/usage/client.properties | 2 +- bmc-usageapi/pom.xml | 4 +- .../com/oracle/bmc/usageapi/client.properties | 2 +- bmc-vault/pom.xml | 6 +- .../com/oracle/bmc/vault/client.properties | 2 +- bmc-vbsinst/pom.xml | 4 +- .../com/oracle/bmc/vbsinst/client.properties | 2 +- bmc-visualbuilder/pom.xml | 4 +- .../bmc/visualbuilder/client.properties | 2 +- bmc-vnmonitoring/pom.xml | 4 +- .../oracle/bmc/vnmonitoring/client.properties | 2 +- bmc-vulnerabilityscanning/pom.xml | 4 +- .../vulnerabilityscanning/client.properties | 2 +- bmc-waa/pom.xml | 4 +- .../com/oracle/bmc/waa/client.properties | 2 +- bmc-waas/pom.xml | 4 +- .../com/oracle/bmc/waas/client.properties | 2 +- bmc-waf/pom.xml | 4 +- .../com/oracle/bmc/waf/client.properties | 2 +- bmc-workrequests/pom.xml | 4 +- .../oracle/bmc/workrequests/client.properties | 2 +- bmc-zpr/pom.xml | 4 +- .../com/oracle/bmc/zpr/client.properties | 2 +- pom.xml | 7 +- 628 files changed, 54904 insertions(+), 3138 deletions(-) delete mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerCommandHealthCheck.java delete mode 100644 bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerCommandHealthCheckDetails.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/Ipv6VnicDetachRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/requests/PrivateIpVnicDetachRequest.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/Ipv6VnicDetachResponse.java create mode 100644 bmc-core/src/main/java/com/oracle/bmc/core/responses/PrivateIpVnicDetachResponse.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowConfigurationDetails.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepDetails.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepRun.java create mode 100644 bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepUpdateDetails.java create mode 100644 bmc-dblm/pom.xml create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagement.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsync.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsyncClient.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementClient.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementPaginators.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementWaiters.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ActionType.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilityCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilitySummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ChildPdb.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/CreateVulnerabilityScanDetails.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/DblmVulnerability.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/HostInfo.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/MetricError.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationStatus.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationType.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationsDetailsSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceInfo.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourcesSeverities.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/SortOrder.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitiesSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityRiskLevel.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScan.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitySummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestError.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestErrorCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntry.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntryCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResource.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResourceMetadataKey.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummary.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummaryCollection.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/CreateVulnerabilityScanRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityScanRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetWorkRequestRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListAggregatedVulnerabilityDataRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListNotificationsRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilitiesRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityResourcesRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityScansRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestsRequest.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/CreateVulnerabilityScanResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityScanResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetWorkRequestResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListAggregatedVulnerabilityDataResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListNotificationsResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilitiesResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityResourcesResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityScansResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestsResponse.java create mode 100644 bmc-dblm/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dblm/reflect-config.json create mode 100644 bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AssociateManagedInstancesWithManagementStationDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachLifecycleStageToProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagedInstanceGroupToProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagementStationToProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachSoftwareSourcesToProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreatePrivateSoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateThirdPartySoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateWindowsStandAloneProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachSoftwareSourcesFromProfileDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PeerManagementStation.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSource.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSourceSummary.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileVersion.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEvent.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEventData.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceGroupDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromSoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ReplacePackagesInSoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RerunWorkRequestDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSubType.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEvent.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSource.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSourceSummary.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePrivateSoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateThirdPartySoftwareSourceDetails.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AssociateManagedInstancesWithManagementStationRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachLifecycleStageToProfileRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagedInstanceGroupToProfileRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagementStationToProfileRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachSoftwareSourcesToProfileRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachSoftwareSourcesFromProfileRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetProfileVersionRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetSoftwareSourceManifestRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwarePackagesRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfileAvailableSoftwareSourcesRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootLifecycleStageRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceGroupRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromSoftwareSourceRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ReplacePackagesInSoftwareSourceRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RerunWorkRequestRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SoftwareSourceGenerateMetadataRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateSoftwareSourceManifestRequest.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AssociateManagedInstancesWithManagementStationResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachLifecycleStageToProfileResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagedInstanceGroupToProfileResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagementStationToProfileResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachSoftwareSourcesToProfileResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachSoftwareSourcesFromProfileResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetProfileVersionResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetSoftwareSourceManifestResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwarePackagesResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfileAvailableSoftwareSourcesResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootLifecycleStageResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceGroupResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromSoftwareSourceResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ReplacePackagesInSoftwareSourceResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RerunWorkRequestResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SoftwareSourceGenerateMetadataResponse.java create mode 100644 bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateSoftwareSourceManifestResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 263ea7b3d7d..7e5f5848f3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.58.0 - 2025-02-25 +### Added +- Support for Database Lifecycle Management service +- Support for Valkey cluster creation and Valkey migration in the OCI Cache service +- Support for Dataflow Steps and Storage Mounts in Pipelines in the Data Science service +- Support for Bring Your Own DKIM Keys in the Email Delivery service +- Support for OpenId Connect Multi Authentication command in the OCI Kubernetes Engine service +- Support for security attributes for Load Balancer resource in the Load Balancer service +- Support for reservation of private IP addresses in the Networking service +- Support for additional configuration parameters in the HeatWave service +- Support for private and 3rd party software repositories, and rebooting of instances in the OS Management service + +### Breaking Changes +- Method `public java.util.Map getZprTags()` has been removed from models `com.oracle.bmc.loadbalancer.model.CreateLoadBalancerDetails`, `com.oracle.bmc.loadbalancer.model.LoadBalancer` and `com.oracle.bmc.loadbalancer.model.UpdateLoadBalancerDetails` in the Load Balancer service +- Class `com.oracle.bmc.containerinstances.model.ContainerCommandHealthCheck` has been removed from the Container Instances service +- Class `com.oracle.bmc.containerinstances.model.CreateContainerCommandHealthCheckDetails` has been removed from the Container Instances service +- Field `Command` has been removed from the model `com.oracle.bmc.containerinstances.model.ContainerHealthCheckType` in the the Container Instances service + ## 3.57.2 - 2025-02-18 ### Added - Support for Customer Onboarding Success(COS) in the Java Management service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 442c1b592f0..ed7742833bf 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties b/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties index 3ae9c9528ad..645402135ee 100644 --- a/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties +++ b/bmc-accessgovernancecp/src/main/resources/com/oracle/bmc/accessgovernancecp/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220518") \ No newline at end of file diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index 713428fca9b..79389f35f4f 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 1d7811f14e1..3db8a7fb8ba 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 77b1eab58f5..582c6a3b4fc 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.57.2 + 3.58.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 1a903dfd2d6..fcf65dc95ab 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index a0112d45804..97c407f473e 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.57.2 + 3.58.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.57.2 + 3.58.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.57.2 + 3.58.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.57.2 + 3.58.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index ea95660ba3c..c592551940a 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml @@ -18,12 +18,12 @@ org.jboss.resteasy resteasy-core - 5.0.3.Final + 5.0.6.Final com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index 06f3fb5c64c..484989e4f21 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.57.2 + 3.58.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.57.2 + 3.58.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.57.2 + 3.58.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 938355a28cf..57efe92f9b0 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.57.2 + 3.58.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 9303782aa65..0444a7aa01c 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.57.2 + 3.58.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.57.2 + 3.58.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.57.2 + 3.58.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 4ee7c2e2863..e6b0d188bc5 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.57.2 + 3.58.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.57.2 + 3.58.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index c3aef70a516..ab02afe3973 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 65feab5c98a..40293ecbb7b 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties b/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties index e9afd6f2b1a..3d53876539e 100644 --- a/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties +++ b/bmc-adm/src/main/resources/com/oracle/bmc/adm/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220421") \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index eeb1b1358fd..26f2b1693ea 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/src/main/resources/com/oracle/bmc/aianomalydetection/client.properties b/bmc-aianomalydetection/src/main/resources/com/oracle/bmc/aianomalydetection/client.properties index 4eddeeb1a95..d29cd82d83d 100644 --- a/bmc-aianomalydetection/src/main/resources/com/oracle/bmc/aianomalydetection/client.properties +++ b/bmc-aianomalydetection/src/main/resources/com/oracle/bmc/aianomalydetection/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210101") \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index b1294bb9b0e..1573e9c8c2c 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties b/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties index 9b808c97edc..124da40abfe 100644 --- a/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties +++ b/bmc-aidocument/src/main/resources/com/oracle/bmc/aidocument/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221109") \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index fda938e15f0..dad5edf1756 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties b/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties index c5285fc6e46..4f416c62123 100644 --- a/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties +++ b/bmc-ailanguage/src/main/resources/com/oracle/bmc/ailanguage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221001") \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 1cea429c607..59c1dcbc98d 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties b/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties index c20e4a8f81b..e0eeb433cef 100644 --- a/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties +++ b/bmc-aispeech/src/main/resources/com/oracle/bmc/aispeech/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220101") \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index f3f773aae5d..a1133e17d73 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties b/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties index 113bc88c00b..3c2d44f9d70 100644 --- a/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties +++ b/bmc-aivision/src/main/resources/com/oracle/bmc/aivision/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index edea464d1f2..31f0f75ff7e 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties b/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties index 2108f7c778c..02ee1cbc945 100644 --- a/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties +++ b/bmc-analytics/src/main/resources/com/oracle/bmc/analytics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190331") \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index a1f08ca3008..70fd2bacdbe 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties b/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties index 31a8989e10b..b138a22600a 100644 --- a/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties +++ b/bmc-announcementsservice/src/main/resources/com/oracle/bmc/announcementsservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 0.0.1") \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index abb719a337a..9949a624414 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties b/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties index cf99a28ec3c..955029e0f0a 100644 --- a/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties +++ b/bmc-apigateway/src/main/resources/com/oracle/bmc/apigateway/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190501") \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 2d10b179a6d..99017a73268 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties b/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties index 13823afe867..fa89edbaf5b 100644 --- a/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties +++ b/bmc-apmconfig/src/main/resources/com/oracle/bmc/apmconfig/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index b9f0fd38a30..4017e8637f5 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties b/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties index a258d075e29..37d5cb6e06d 100644 --- a/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties +++ b/bmc-apmcontrolplane/src/main/resources/com/oracle/bmc/apmcontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 2ad43a99a72..ea93ef944ec 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties b/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties index a258d075e29..37d5cb6e06d 100644 --- a/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties +++ b/bmc-apmsynthetics/src/main/resources/com/oracle/bmc/apmsynthetics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 0832fad206e..0b8fb060d5d 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties b/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties index a258d075e29..37d5cb6e06d 100644 --- a/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties +++ b/bmc-apmtraces/src/main/resources/com/oracle/bmc/apmtraces/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index e805276bbb1..78614fe0910 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties b/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties index ea5944ac983..4128ef07235 100644 --- a/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties +++ b/bmc-appmgmtcontrol/src/main/resources/com/oracle/bmc/appmgmtcontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index abf6c986fbf..22e40ba692b 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties b/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties +++ b/bmc-artifacts/src/main/resources/com/oracle/bmc/artifacts/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index ba6e36c680c..2ea376f2100 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties b/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties index 615ffa89f56..e42d8d1cca5 100644 --- a/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties +++ b/bmc-audit/src/main/resources/com/oracle/bmc/audit/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190901") \ No newline at end of file diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 0c38461366e..5fa0a238381 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties b/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties index c84a0e312b6..eb2ad97569a 100644 --- a/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties +++ b/bmc-autoscaling/src/main/resources/com/oracle/bmc/autoscaling/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181001") \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 598b2fde117..7a2cbb4d1ee 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties b/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties index 9bc82da3806..94713e7aba2 100644 --- a/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties +++ b/bmc-bastion/src/main/resources/com/oracle/bmc/bastion/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210331") \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index cc5014bd666..85fa7685ddc 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties b/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties index 1bbea9aeb4a..0d874005f5b 100644 --- a/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties +++ b/bmc-bds/src/main/resources/com/oracle/bmc/bds/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 1670985d03b..c8c531c223f 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties b/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties index 1db769d6a6b..801bca94a1b 100644 --- a/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties +++ b/bmc-blockchain/src/main/resources/com/oracle/bmc/blockchain/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20191010") \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 744e9a05924..fc6b628fcb8 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.57.2 + 3.58.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,974 +38,980 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.57.2 + 3.58.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.57.2 + 3.58.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-dblm + 3.58.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 4c87bea3e99..9292b94f79b 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties b/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties index 0170c01e3b0..e795f427b83 100644 --- a/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties +++ b/bmc-budget/src/main/resources/com/oracle/bmc/budget/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 669d7a3afef..804e3a57ac9 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties index 266a0df87f9..5a397fbe709 100644 --- a/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties +++ b/bmc-capacitymanagement/src/main/resources/com/oracle/bmc/capacitymanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231107") \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index b4ffa3bcccc..af9b5dc04ce 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties b/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties index e9b60c4512b..d7c6d2fb373 100644 --- a/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties +++ b/bmc-certificates/src/main/resources/com/oracle/bmc/certificates/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index eb1985aff6a..d78fcf604de 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties b/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties index e9b60c4512b..d7c6d2fb373 100644 --- a/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties +++ b/bmc-certificatesmanagement/src/main/resources/com/oracle/bmc/certificatesmanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 1f7c8642ea3..6bef47f3e5e 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties b/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties index 8a8c91600f4..1facc8852d1 100644 --- a/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties +++ b/bmc-cims/src/main/resources/com/oracle/bmc/cims/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181231") \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index c83757f507e..e03362fa8cc 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index e01f6a830a0..d9f26bca1f5 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties b/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties index b391d67e92c..0b20d500740 100644 --- a/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties +++ b/bmc-cloudbridge/src/main/resources/com/oracle/bmc/cloudbridge/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220509") \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 36f8b0c3c46..e592c5ce143 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties b/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties index 936fcb1eb0b..e9bf759863c 100644 --- a/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties +++ b/bmc-cloudguard/src/main/resources/com/oracle/bmc/cloudguard/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200131") \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index f2a352c1813..2f608690862 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties b/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties index 8419d694a1a..5dffc612a91 100644 --- a/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties +++ b/bmc-cloudmigrations/src/main/resources/com/oracle/bmc/cloudmigrations/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220919") \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index a6a02129072..bb73fb9203c 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties b/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties index ec87d60baa4..aad2e0a1f2b 100644 --- a/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties +++ b/bmc-clusterplacementgroups/src/main/resources/com/oracle/bmc/clusterplacementgroups/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index 69a9c3366a3..59dfc627702 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.57.2 + 3.58.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.57.2 + 3.58.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 21e3c3ce8d7..1e26c99135e 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.57.2 + 3.58.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.57.2 + 3.58.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 8f8784e85bf..f9ff5d8aaff 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index a1fe458f464..e244f9cd5e0 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-common-httpclient/src/main/java/com/oracle/bmc/http/client/pki/Utf8.java b/bmc-common-httpclient/src/main/java/com/oracle/bmc/http/client/pki/Utf8.java index 3d7fc971362..601b0309d7e 100644 --- a/bmc-common-httpclient/src/main/java/com/oracle/bmc/http/client/pki/Utf8.java +++ b/bmc-common-httpclient/src/main/java/com/oracle/bmc/http/client/pki/Utf8.java @@ -11,6 +11,7 @@ import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; import java.nio.channels.WritableByteChannel; +import java.util.concurrent.CompletableFuture; /** * Mutable byte buffer for UTF-8 encoded text. When the text has been consumed it MUST be erased via @@ -41,14 +42,30 @@ static Utf8 of(ReadableByteChannel content) throws IOException { try (final ByteArrayOutputStream bytes = new ByteArrayOutputStream(); final WritableByteChannel sink = Channels.newChannel(bytes)) { final ByteBuffer buffer = ByteBuffer.allocate(4096); - while (content.read(buffer) != -1) { - buffer.flip(); - while (buffer.hasRemaining()) { - /* write() might not write all of the bytes in a single pass */ - sink.write(buffer); - } - buffer.clear(); - } + CompletableFuture readTask = + CompletableFuture.runAsync( + () -> { + try { + while (true) { + int bytesRead = content.read(buffer); + if (bytesRead == -1) { + break; // End of stream + } + buffer.flip(); + while (buffer.hasRemaining()) { + sink.write(buffer); // Write to the sink channel + } + buffer.clear(); + } + } catch (IOException e) { + throw new RuntimeException( + "Error reading ReadableByteChannel content", e); + } + }); + + // Wait for the task to complete + readTask.join(); + buffer.flip(); while (buffer.hasRemaining()) { sink.write(buffer); diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index dbea8def0c2..51d7982548f 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -62,12 +62,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 @@ -112,7 +112,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 test diff --git a/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties b/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties index 28d378047f4..983a873da6e 100644 --- a/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties +++ b/bmc-common/src/main/resources/com/oracle/bmc/sdk.properties @@ -7,5 +7,5 @@ sdk.version = ${pom.version} # Clients generated using a codegen version between the minimum and maximum # expressed below are compatible with the version of oci-java-sdk-common in this module. -java.minimum.client.codegen.version = 2.100 +java.minimum.client.codegen.version = 2.118 java.maximum.client.codegen.version = ${oci.codegen.version} diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java index ac0986d523f..0ce5455ad96 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/http/signing/internal/PEMFileRSAPrivateKeySupplierTest.java @@ -14,10 +14,12 @@ import java.nio.charset.StandardCharsets; import java.security.interfaces.RSAPrivateKey; import java.util.Optional; +import java.util.concurrent.atomic.AtomicReference; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import static org.junit.Assert.assertNull; /** Tests for {@link PEMFileRSAPrivateKeySupplierTest}. */ public class PEMFileRSAPrivateKeySupplierTest { @@ -223,4 +225,37 @@ public void testSupplyKeyPublicKey() { assertEquals("Private key must be in PEM format", e.getMessage()); } } + + /** Thread interruption should not stop the decryption */ + @Test + public void testClosedByInterruptException() throws IOException, InterruptedException { + + String pkcs8DecryptedPrivateKey = + StreamUtils.toString( + new FileInputStream("src/test/resources/pkcs1_decrypted_private_key.pem"), + StandardCharsets.UTF_8); + InputStream pkcs8DecryptedPrivateKeyStream = + new ByteArrayInputStream(pkcs8DecryptedPrivateKey.getBytes(StandardCharsets.UTF_8)); + + // Create a thread that attempts to read the private key + AtomicReference threadException = new AtomicReference<>(); + + Thread t1 = + new Thread( + () -> { + try { + new PEMFileRSAPrivateKeySupplier( + pkcs8DecryptedPrivateKeyStream, null) + .supplyKey(); + } catch (Exception e) { + threadException.set(e); + } + }); + t1.setName("first-thread"); + + t1.start(); + t1.interrupt(); + t1.join(); + assertNull(threadException.get()); + } } diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 5d4d9c5e7b4..448ec22ed8d 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties b/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties index 3cd2240dc13..2b3d3419db9 100644 --- a/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties +++ b/bmc-computecloudatcustomer/src/main/resources/com/oracle/bmc/computecloudatcustomer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20221208") \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index c8716ad8978..551134a2ed8 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties b/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties index fb843f30fb4..df7e500157c 100644 --- a/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties +++ b/bmc-computeinstanceagent/src/main/resources/com/oracle/bmc/computeinstanceagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180530") \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 2ce58b2f7b9..72ad51f3280 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/OpenIdConnectTokenAuthenticationConfig.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/OpenIdConnectTokenAuthenticationConfig.java index 9ea497ea2a5..599f41add18 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/OpenIdConnectTokenAuthenticationConfig.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/OpenIdConnectTokenAuthenticationConfig.java @@ -36,7 +36,8 @@ public final class OpenIdConnectTokenAuthenticationConfig "requiredClaims", "caCertificate", "signingAlgorithms", - "isOpenIdConnectAuthEnabled" + "isOpenIdConnectAuthEnabled", + "configurationFile" }) public OpenIdConnectTokenAuthenticationConfig( String issuerUrl, @@ -48,7 +49,8 @@ public OpenIdConnectTokenAuthenticationConfig( java.util.List requiredClaims, String caCertificate, java.util.List signingAlgorithms, - Boolean isOpenIdConnectAuthEnabled) { + Boolean isOpenIdConnectAuthEnabled, + String configurationFile) { super(); this.issuerUrl = issuerUrl; this.clientId = clientId; @@ -60,6 +62,7 @@ public OpenIdConnectTokenAuthenticationConfig( this.caCertificate = caCertificate; this.signingAlgorithms = signingAlgorithms; this.isOpenIdConnectAuthEnabled = isOpenIdConnectAuthEnabled; + this.configurationFile = configurationFile; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -256,6 +259,25 @@ public Builder isOpenIdConnectAuthEnabled(Boolean isOpenIdConnectAuthEnabled) { this.__explicitlySet__.add("isOpenIdConnectAuthEnabled"); return this; } + /** + * A Base64 encoded string of a Kubernetes OIDC Auth Config file. More info + * [here](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration) + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationFile") + private String configurationFile; + + /** + * A Base64 encoded string of a Kubernetes OIDC Auth Config file. More info + * [here](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration) + * + * @param configurationFile the value to set + * @return this builder + */ + public Builder configurationFile(String configurationFile) { + this.configurationFile = configurationFile; + this.__explicitlySet__.add("configurationFile"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -272,7 +294,8 @@ public OpenIdConnectTokenAuthenticationConfig build() { this.requiredClaims, this.caCertificate, this.signingAlgorithms, - this.isOpenIdConnectAuthEnabled); + this.isOpenIdConnectAuthEnabled, + this.configurationFile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -311,6 +334,9 @@ public Builder copy(OpenIdConnectTokenAuthenticationConfig model) { if (model.wasPropertyExplicitlySet("isOpenIdConnectAuthEnabled")) { this.isOpenIdConnectAuthEnabled(model.getIsOpenIdConnectAuthEnabled()); } + if (model.wasPropertyExplicitlySet("configurationFile")) { + this.configurationFile(model.getConfigurationFile()); + } return this; } } @@ -494,6 +520,23 @@ public Boolean getIsOpenIdConnectAuthEnabled() { return isOpenIdConnectAuthEnabled; } + /** + * A Base64 encoded string of a Kubernetes OIDC Auth Config file. More info + * [here](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration) + */ + @com.fasterxml.jackson.annotation.JsonProperty("configurationFile") + private final String configurationFile; + + /** + * A Base64 encoded string of a Kubernetes OIDC Auth Config file. More info + * [here](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration) + * + * @return the value + */ + public String getConfigurationFile() { + return configurationFile; + } + @Override public String toString() { return this.toString(true); @@ -520,6 +563,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", signingAlgorithms=").append(String.valueOf(this.signingAlgorithms)); sb.append(", isOpenIdConnectAuthEnabled=") .append(String.valueOf(this.isOpenIdConnectAuthEnabled)); + sb.append(", configurationFile=").append(String.valueOf(this.configurationFile)); sb.append(")"); return sb.toString(); } @@ -545,6 +589,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.signingAlgorithms, other.signingAlgorithms) && java.util.Objects.equals( this.isOpenIdConnectAuthEnabled, other.isOpenIdConnectAuthEnabled) + && java.util.Objects.equals(this.configurationFile, other.configurationFile) && super.equals(other); } @@ -576,6 +621,9 @@ public int hashCode() { + (this.isOpenIdConnectAuthEnabled == null ? 43 : this.isOpenIdConnectAuthEnabled.hashCode()); + result = + (result * PRIME) + + (this.configurationFile == null ? 43 : this.configurationFile.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties b/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties index 4e9236cc396..03f010c0252 100644 --- a/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties +++ b/bmc-containerengine/src/main/resources/com/oracle/bmc/containerengine/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180222") \ No newline at end of file diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 5ad60e765bf..b41ad2474cb 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerCommandHealthCheck.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerCommandHealthCheck.java deleted file mode 100644 index 106bcef5625..00000000000 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerCommandHealthCheck.java +++ /dev/null @@ -1,279 +0,0 @@ -/** - * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.containerinstances.model; - -/** - * Container Health Check with command 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 Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ContainerCommandHealthCheck.Builder.class) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "healthCheckType") -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ContainerCommandHealthCheck extends ContainerHealthCheck { - @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("initialDelayInSeconds") - private Integer initialDelayInSeconds; - - public Builder initialDelayInSeconds(Integer initialDelayInSeconds) { - this.initialDelayInSeconds = initialDelayInSeconds; - this.__explicitlySet__.add("initialDelayInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("intervalInSeconds") - private Integer intervalInSeconds; - - public Builder intervalInSeconds(Integer intervalInSeconds) { - this.intervalInSeconds = intervalInSeconds; - this.__explicitlySet__.add("intervalInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("failureThreshold") - private Integer failureThreshold; - - public Builder failureThreshold(Integer failureThreshold) { - this.failureThreshold = failureThreshold; - this.__explicitlySet__.add("failureThreshold"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("successThreshold") - private Integer successThreshold; - - public Builder successThreshold(Integer successThreshold) { - this.successThreshold = successThreshold; - this.__explicitlySet__.add("successThreshold"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") - private Integer timeoutInSeconds; - - public Builder timeoutInSeconds(Integer timeoutInSeconds) { - this.timeoutInSeconds = timeoutInSeconds; - this.__explicitlySet__.add("timeoutInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("statusDetails") - private String statusDetails; - - public Builder statusDetails(String statusDetails) { - this.statusDetails = statusDetails; - this.__explicitlySet__.add("statusDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("failureAction") - private ContainerHealthCheckFailureAction failureAction; - - public Builder failureAction(ContainerHealthCheckFailureAction failureAction) { - this.failureAction = failureAction; - this.__explicitlySet__.add("failureAction"); - return this; - } - /** - * The list of strings that will be simplified to a single command for checking the status - * of the container. - */ - @com.fasterxml.jackson.annotation.JsonProperty("command") - private java.util.List command; - - /** - * The list of strings that will be simplified to a single command for checking the status - * of the container. - * - * @param command the value to set - * @return this builder - */ - public Builder command(java.util.List command) { - this.command = command; - this.__explicitlySet__.add("command"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ContainerCommandHealthCheck build() { - ContainerCommandHealthCheck model = - new ContainerCommandHealthCheck( - this.name, - this.initialDelayInSeconds, - this.intervalInSeconds, - this.failureThreshold, - this.successThreshold, - this.timeoutInSeconds, - this.status, - this.statusDetails, - this.failureAction, - this.command); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ContainerCommandHealthCheck model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("initialDelayInSeconds")) { - this.initialDelayInSeconds(model.getInitialDelayInSeconds()); - } - if (model.wasPropertyExplicitlySet("intervalInSeconds")) { - this.intervalInSeconds(model.getIntervalInSeconds()); - } - if (model.wasPropertyExplicitlySet("failureThreshold")) { - this.failureThreshold(model.getFailureThreshold()); - } - if (model.wasPropertyExplicitlySet("successThreshold")) { - this.successThreshold(model.getSuccessThreshold()); - } - if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { - this.timeoutInSeconds(model.getTimeoutInSeconds()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("statusDetails")) { - this.statusDetails(model.getStatusDetails()); - } - if (model.wasPropertyExplicitlySet("failureAction")) { - this.failureAction(model.getFailureAction()); - } - if (model.wasPropertyExplicitlySet("command")) { - this.command(model.getCommand()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public ContainerCommandHealthCheck( - String name, - Integer initialDelayInSeconds, - Integer intervalInSeconds, - Integer failureThreshold, - Integer successThreshold, - Integer timeoutInSeconds, - Status status, - String statusDetails, - ContainerHealthCheckFailureAction failureAction, - java.util.List command) { - super( - name, - initialDelayInSeconds, - intervalInSeconds, - failureThreshold, - successThreshold, - timeoutInSeconds, - status, - statusDetails, - failureAction); - this.command = command; - } - - /** - * The list of strings that will be simplified to a single command for checking the status of - * the container. - */ - @com.fasterxml.jackson.annotation.JsonProperty("command") - private final java.util.List command; - - /** - * The list of strings that will be simplified to a single command for checking the status of - * the container. - * - * @return the value - */ - public java.util.List getCommand() { - return command; - } - - @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("ContainerCommandHealthCheck("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", command=").append(String.valueOf(this.command)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ContainerCommandHealthCheck)) { - return false; - } - - ContainerCommandHealthCheck other = (ContainerCommandHealthCheck) o; - return java.util.Objects.equals(this.command, other.command) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.command == null ? 43 : this.command.hashCode()); - return result; - } -} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheck.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheck.java index d8950b379d4..8c5bb47b23c 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheck.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheck.java @@ -27,10 +27,7 @@ name = "TCP"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ContainerHttpHealthCheck.class, - name = "HTTP"), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = ContainerCommandHealthCheck.class, - name = "COMMAND") + name = "HTTP") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheckType.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheckType.java index 0c47a7d3f1b..f5a5e639082 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheckType.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/ContainerHealthCheckType.java @@ -9,7 +9,6 @@ public enum ContainerHealthCheckType implements com.oracle.bmc.http.internal.BmcEnum { Http("HTTP"), Tcp("TCP"), - Command("COMMAND"), /** * 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/CreateContainerCommandHealthCheckDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerCommandHealthCheckDetails.java deleted file mode 100644 index 29315d5f9dd..00000000000 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerCommandHealthCheckDetails.java +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.containerinstances.model; - -/** - * Container Health Check Command 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 Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateContainerCommandHealthCheckDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "healthCheckType") -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateContainerCommandHealthCheckDetails - extends CreateContainerHealthCheckDetails { - @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("initialDelayInSeconds") - private Integer initialDelayInSeconds; - - public Builder initialDelayInSeconds(Integer initialDelayInSeconds) { - this.initialDelayInSeconds = initialDelayInSeconds; - this.__explicitlySet__.add("initialDelayInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("intervalInSeconds") - private Integer intervalInSeconds; - - public Builder intervalInSeconds(Integer intervalInSeconds) { - this.intervalInSeconds = intervalInSeconds; - this.__explicitlySet__.add("intervalInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("failureThreshold") - private Integer failureThreshold; - - public Builder failureThreshold(Integer failureThreshold) { - this.failureThreshold = failureThreshold; - this.__explicitlySet__.add("failureThreshold"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("successThreshold") - private Integer successThreshold; - - public Builder successThreshold(Integer successThreshold) { - this.successThreshold = successThreshold; - this.__explicitlySet__.add("successThreshold"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeoutInSeconds") - private Integer timeoutInSeconds; - - public Builder timeoutInSeconds(Integer timeoutInSeconds) { - this.timeoutInSeconds = timeoutInSeconds; - this.__explicitlySet__.add("timeoutInSeconds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("failureAction") - private ContainerHealthCheckFailureAction failureAction; - - public Builder failureAction(ContainerHealthCheckFailureAction failureAction) { - this.failureAction = failureAction; - this.__explicitlySet__.add("failureAction"); - return this; - } - /** - * The list of strings that will be simplified to a single command for checking the status - * of the container. - */ - @com.fasterxml.jackson.annotation.JsonProperty("command") - private java.util.List command; - - /** - * The list of strings that will be simplified to a single command for checking the status - * of the container. - * - * @param command the value to set - * @return this builder - */ - public Builder command(java.util.List command) { - this.command = command; - this.__explicitlySet__.add("command"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateContainerCommandHealthCheckDetails build() { - CreateContainerCommandHealthCheckDetails model = - new CreateContainerCommandHealthCheckDetails( - this.name, - this.initialDelayInSeconds, - this.intervalInSeconds, - this.failureThreshold, - this.successThreshold, - this.timeoutInSeconds, - this.failureAction, - this.command); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateContainerCommandHealthCheckDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("initialDelayInSeconds")) { - this.initialDelayInSeconds(model.getInitialDelayInSeconds()); - } - if (model.wasPropertyExplicitlySet("intervalInSeconds")) { - this.intervalInSeconds(model.getIntervalInSeconds()); - } - if (model.wasPropertyExplicitlySet("failureThreshold")) { - this.failureThreshold(model.getFailureThreshold()); - } - if (model.wasPropertyExplicitlySet("successThreshold")) { - this.successThreshold(model.getSuccessThreshold()); - } - if (model.wasPropertyExplicitlySet("timeoutInSeconds")) { - this.timeoutInSeconds(model.getTimeoutInSeconds()); - } - if (model.wasPropertyExplicitlySet("failureAction")) { - this.failureAction(model.getFailureAction()); - } - if (model.wasPropertyExplicitlySet("command")) { - this.command(model.getCommand()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateContainerCommandHealthCheckDetails( - String name, - Integer initialDelayInSeconds, - Integer intervalInSeconds, - Integer failureThreshold, - Integer successThreshold, - Integer timeoutInSeconds, - ContainerHealthCheckFailureAction failureAction, - java.util.List command) { - super( - name, - initialDelayInSeconds, - intervalInSeconds, - failureThreshold, - successThreshold, - timeoutInSeconds, - failureAction); - this.command = command; - } - - /** - * The list of strings that will be simplified to a single command for checking the status of - * the container. - */ - @com.fasterxml.jackson.annotation.JsonProperty("command") - private final java.util.List command; - - /** - * The list of strings that will be simplified to a single command for checking the status of - * the container. - * - * @return the value - */ - public java.util.List getCommand() { - return command; - } - - @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("CreateContainerCommandHealthCheckDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", command=").append(String.valueOf(this.command)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateContainerCommandHealthCheckDetails)) { - return false; - } - - CreateContainerCommandHealthCheckDetails other = - (CreateContainerCommandHealthCheckDetails) o; - return java.util.Objects.equals(this.command, other.command) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.command == null ? 43 : this.command.hashCode()); - return result; - } -} diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerDetails.java index 5514553d2b6..1630d40d4f1 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerDetails.java @@ -273,16 +273,16 @@ public Builder resourceConfig(CreateContainerResourceConfigDetails resourceConfi } /** * list of container health checks to check container status and take appropriate action if - * container status is failed. There are three types of health checks that we currently - * support HTTP, TCP, and Command. + * container status is failed. There are two types of health checks that we currently + * support HTTP and TCP. */ @com.fasterxml.jackson.annotation.JsonProperty("healthChecks") private java.util.List healthChecks; /** * list of container health checks to check container status and take appropriate action if - * container status is failed. There are three types of health checks that we currently - * support HTTP, TCP, and Command. + * container status is failed. There are two types of health checks that we currently + * support HTTP and TCP. * * @param healthChecks the value to set * @return this builder @@ -598,16 +598,16 @@ public CreateContainerResourceConfigDetails getResourceConfig() { /** * list of container health checks to check container status and take appropriate action if - * container status is failed. There are three types of health checks that we currently support - * HTTP, TCP, and Command. + * container status is failed. There are two types of health checks that we currently support + * HTTP and TCP. */ @com.fasterxml.jackson.annotation.JsonProperty("healthChecks") private final java.util.List healthChecks; /** * list of container health checks to check container status and take appropriate action if - * container status is failed. There are three types of health checks that we currently support - * HTTP, TCP, and Command. + * container status is failed. There are two types of health checks that we currently support + * HTTP and TCP. * * @return the value */ diff --git a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerHealthCheckDetails.java b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerHealthCheckDetails.java index c1f1f150d98..fd3476fcab9 100644 --- a/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerHealthCheckDetails.java +++ b/bmc-containerinstances/src/main/java/com/oracle/bmc/containerinstances/model/CreateContainerHealthCheckDetails.java @@ -27,10 +27,7 @@ name = "TCP"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateContainerHttpHealthCheckDetails.class, - name = "HTTP"), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateContainerCommandHealthCheckDetails.class, - name = "COMMAND") + name = "HTTP") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json b/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json index f55690e5766..0265164fafb 100644 --- a/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json +++ b/bmc-containerinstances/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-containerinstances/reflect-config.json @@ -93,20 +93,6 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.containerinstances.model.ContainerCommandHealthCheck", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.containerinstances.model.ContainerCommandHealthCheck$Builder", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true - }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.ContainerConfigFile", @@ -401,20 +387,6 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.containerinstances.model.CreateContainerCommandHealthCheckDetails", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.containerinstances.model.CreateContainerCommandHealthCheckDetails$Builder", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true - }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.containerinstances.model.CreateContainerConfigFileVolumeDetails", diff --git a/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties b/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties index 045bd698104..c67150977ce 100644 --- a/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties +++ b/bmc-containerinstances/src/main/resources/com/oracle/bmc/containerinstances/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210415") \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 6d1bde01c78..6ed7087e19b 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.57.2 + 3.58.0 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 fca7ac582c3..39097480ea9 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 @@ -3277,6 +3277,23 @@ GetVcnDnsResolverAssociationResponse getVcnDnsResolverAssociation( */ GetVtapResponse getVtap(GetVtapRequest request); + /** + * Unassign the specified IPv6 address from Virtual Network Interface Card (VNIC). You must + * specify the IPv6 + * [OCID](https://docs.cloud.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 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 Ipv6VnicDetach API. + */ + Ipv6VnicDetachResponse ipv6VnicDetach(Ipv6VnicDetachRequest request); + /** * Lists the regions that support remote VCN peering (which is peering across regions). For more * information, see [VCN @@ -4213,6 +4230,24 @@ ListVirtualCircuitPublicPrefixesResponse listVirtualCircuitPublicPrefixes( */ ModifyVcnCidrResponse modifyVcnCidr(ModifyVcnCidrRequest request); + /** + * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must + * specify the PrivateIP + * [OCID](https://docs.cloud.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 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 PrivateIpVnicDetach + * API. + */ + PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachRequest request); + /** * Removes one or more route distribution statements from the specified route distribution's * map. 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 4f0e24f455d..411a6009114 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 @@ -3251,6 +3251,23 @@ java.util.concurrent.Future getVtap( GetVtapRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Unassign the specified IPv6 address from Virtual Network Interface Card (VNIC). You must + * specify the IPv6 + * [OCID](https://docs.cloud.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 ipv6VnicDetach( + Ipv6VnicDetachRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Lists the regions that support remote VCN peering (which is peering across regions). For more * information, see [VCN @@ -4178,6 +4195,24 @@ java.util.concurrent.Future modifyVcnCidr( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Unassign the specified PrivateIP address from Virtual Network Interface Card (VNIC). You must + * specify the PrivateIP + * [OCID](https://docs.cloud.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 privateIpVnicDetach( + PrivateIpVnicDetachRequest request, + com.oracle.bmc.responses.AsyncHandler< + PrivateIpVnicDetachRequest, PrivateIpVnicDetachResponse> + handler); + /** * Removes one or more route distribution statements from the specified route distribution's * map. 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 2656e979019..13c245661cb 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 @@ -5048,6 +5048,40 @@ public java.util.concurrent.Future getVtap( .callAsync(handler); } + @Override + public java.util.concurrent.Future ipv6VnicDetach( + Ipv6VnicDetachRequest request, + final com.oracle.bmc.responses.AsyncHandler< + Ipv6VnicDetachRequest, Ipv6VnicDetachResponse> + handler) { + + Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); + + return clientCall(request, Ipv6VnicDetachResponse::builder) + .logger(LOG, "ipv6VnicDetach") + .serviceDetails( + "VirtualNetwork", + "Ipv6VnicDetach", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/Ipv6VnicDetach") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(Ipv6VnicDetachRequest::builder) + .basePath("/20160918") + .appendPathParam("ipv6") + .appendPathParam(request.getIpv6Id()) + .appendPathParam("actions") + .appendPathParam("detach") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.core.model.Ipv6.class, Ipv6VnicDetachResponse.Builder::ipv6) + .handleResponseHeaderString("etag", Ipv6VnicDetachResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", Ipv6VnicDetachResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listAllowedPeerRegionsForRemotePeering( @@ -6056,6 +6090,8 @@ public java.util.concurrent.Future listIpv6s( .appendQueryParam("ipAddress", request.getIpAddress()) .appendQueryParam("subnetId", request.getSubnetId()) .appendQueryParam("vnicId", request.getVnicId()) + .appendQueryParam("ipState", request.getIpState()) + .appendQueryParam("lifetime", request.getLifetime()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( @@ -6277,6 +6313,8 @@ public java.util.concurrent.Future listPrivateIps( .appendQueryParam("ipAddress", request.getIpAddress()) .appendQueryParam("subnetId", request.getSubnetId()) .appendQueryParam("vnicId", request.getVnicId()) + .appendQueryParam("ipState", request.getIpState()) + .appendQueryParam("lifetime", request.getLifetime()) .appendQueryParam("vlanId", request.getVlanId()) .accept("application/json") .handleBodyList( @@ -6861,6 +6899,41 @@ public java.util.concurrent.Future modifyVcnCidr( .callAsync(handler); } + @Override + public java.util.concurrent.Future privateIpVnicDetach( + PrivateIpVnicDetachRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PrivateIpVnicDetachRequest, PrivateIpVnicDetachResponse> + handler) { + + Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); + + return clientCall(request, PrivateIpVnicDetachResponse::builder) + .logger(LOG, "privateIpVnicDetach") + .serviceDetails( + "VirtualNetwork", + "PrivateIpVnicDetach", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/PrivateIpVnicDetach") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(PrivateIpVnicDetachRequest::builder) + .basePath("/20160918") + .appendPathParam("privateIps") + .appendPathParam(request.getPrivateIpId()) + .appendPathParam("actions") + .appendPathParam("detach") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.core.model.PrivateIp.class, + PrivateIpVnicDetachResponse.Builder::privateIp) + .handleResponseHeaderString("etag", PrivateIpVnicDetachResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", PrivateIpVnicDetachResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeDrgRouteDistributionStatements( 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 dfe517e0353..13c6eba298e 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 @@ -4530,6 +4530,36 @@ public GetVtapResponse getVtap(GetVtapRequest request) { .callSync(); } + @Override + public Ipv6VnicDetachResponse ipv6VnicDetach(Ipv6VnicDetachRequest request) { + + Validate.notBlank(request.getIpv6Id(), "ipv6Id must not be blank"); + + return clientCall(request, Ipv6VnicDetachResponse::builder) + .logger(LOG, "ipv6VnicDetach") + .serviceDetails( + "VirtualNetwork", + "Ipv6VnicDetach", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/Ipv6VnicDetach") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(Ipv6VnicDetachRequest::builder) + .basePath("/20160918") + .appendPathParam("ipv6") + .appendPathParam(request.getIpv6Id()) + .appendPathParam("actions") + .appendPathParam("detach") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.core.model.Ipv6.class, Ipv6VnicDetachResponse.Builder::ipv6) + .handleResponseHeaderString("etag", Ipv6VnicDetachResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", Ipv6VnicDetachResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListAllowedPeerRegionsForRemotePeeringResponse listAllowedPeerRegionsForRemotePeering( ListAllowedPeerRegionsForRemotePeeringRequest request) { @@ -5444,6 +5474,8 @@ public ListIpv6sResponse listIpv6s(ListIpv6sRequest request) { .appendQueryParam("ipAddress", request.getIpAddress()) .appendQueryParam("subnetId", request.getSubnetId()) .appendQueryParam("vnicId", request.getVnicId()) + .appendQueryParam("ipState", request.getIpState()) + .appendQueryParam("lifetime", request.getLifetime()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBodyList( @@ -5641,6 +5673,8 @@ public ListPrivateIpsResponse listPrivateIps(ListPrivateIpsRequest request) { .appendQueryParam("ipAddress", request.getIpAddress()) .appendQueryParam("subnetId", request.getSubnetId()) .appendQueryParam("vnicId", request.getVnicId()) + .appendQueryParam("ipState", request.getIpState()) + .appendQueryParam("lifetime", request.getLifetime()) .appendQueryParam("vlanId", request.getVlanId()) .accept("application/json") .handleBodyList( @@ -6169,6 +6203,37 @@ public ModifyVcnCidrResponse modifyVcnCidr(ModifyVcnCidrRequest request) { .callSync(); } + @Override + public PrivateIpVnicDetachResponse privateIpVnicDetach(PrivateIpVnicDetachRequest request) { + + Validate.notBlank(request.getPrivateIpId(), "privateIpId must not be blank"); + + return clientCall(request, PrivateIpVnicDetachResponse::builder) + .logger(LOG, "privateIpVnicDetach") + .serviceDetails( + "VirtualNetwork", + "PrivateIpVnicDetach", + "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/PrivateIpVnicDetach") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(PrivateIpVnicDetachRequest::builder) + .basePath("/20160918") + .appendPathParam("privateIps") + .appendPathParam(request.getPrivateIpId()) + .appendPathParam("actions") + .appendPathParam("detach") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleBody( + com.oracle.bmc.core.model.PrivateIp.class, + PrivateIpVnicDetachResponse.Builder::privateIp) + .handleResponseHeaderString("etag", PrivateIpVnicDetachResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", PrivateIpVnicDetachResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RemoveDrgRouteDistributionStatementsResponse removeDrgRouteDistributionStatements( RemoveDrgRouteDistributionStatementsRequest request) { diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateByoipRangeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateByoipRangeDetails.java index 54b9affd9a8..fff31477ffe 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateByoipRangeDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateByoipRangeDetails.java @@ -26,6 +26,8 @@ public final class CreateByoipRangeDetails @java.beans.ConstructorProperties({ "cidrBlock", "compartmentId", + "ipAnycastId", + "monitorIp", "ipv6CidrBlock", "definedTags", "displayName", @@ -34,6 +36,8 @@ public final class CreateByoipRangeDetails public CreateByoipRangeDetails( String cidrBlock, String compartmentId, + String ipAnycastId, + String monitorIp, String ipv6CidrBlock, java.util.Map> definedTags, String displayName, @@ -41,6 +45,8 @@ public CreateByoipRangeDetails( super(); this.cidrBlock = cidrBlock; this.compartmentId = compartmentId; + this.ipAnycastId = ipAnycastId; + this.monitorIp = monitorIp; this.ipv6CidrBlock = ipv6CidrBlock; this.definedTags = definedTags; this.displayName = displayName; @@ -87,6 +93,40 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the {@code IpAnycast} resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAnycastId") + private String ipAnycastId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the {@code IpAnycast} resource. + * + * @param ipAnycastId the value to set + * @return this builder + */ + public Builder ipAnycastId(String ipAnycastId) { + this.ipAnycastId = ipAnycastId; + this.__explicitlySet__.add("ipAnycastId"); + return this; + } + /** The IP address of the CIDR for Prefix Monitoring. */ + @com.fasterxml.jackson.annotation.JsonProperty("monitorIp") + private String monitorIp; + + /** + * The IP address of the CIDR for Prefix Monitoring. + * + * @param monitorIp the value to set + * @return this builder + */ + public Builder monitorIp(String monitorIp) { + this.monitorIp = monitorIp; + this.__explicitlySet__.add("monitorIp"); + return this; + } /** The BYOIPv6 prefix. You can assign some or all of it to a VCN after it is validated. */ @com.fasterxml.jackson.annotation.JsonProperty("ipv6CidrBlock") private String ipv6CidrBlock; @@ -181,6 +221,8 @@ public CreateByoipRangeDetails build() { new CreateByoipRangeDetails( this.cidrBlock, this.compartmentId, + this.ipAnycastId, + this.monitorIp, this.ipv6CidrBlock, this.definedTags, this.displayName, @@ -199,6 +241,12 @@ public Builder copy(CreateByoipRangeDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("ipAnycastId")) { + this.ipAnycastId(model.getIpAnycastId()); + } + if (model.wasPropertyExplicitlySet("monitorIp")) { + this.monitorIp(model.getMonitorIp()); + } if (model.wasPropertyExplicitlySet("ipv6CidrBlock")) { this.ipv6CidrBlock(model.getIpv6CidrBlock()); } @@ -258,6 +306,36 @@ public String getCompartmentId() { return compartmentId; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the {@code IpAnycast} resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAnycastId") + private final String ipAnycastId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the {@code IpAnycast} resource. + * + * @return the value + */ + public String getIpAnycastId() { + return ipAnycastId; + } + + /** The IP address of the CIDR for Prefix Monitoring. */ + @com.fasterxml.jackson.annotation.JsonProperty("monitorIp") + private final String monitorIp; + + /** + * The IP address of the CIDR for Prefix Monitoring. + * + * @return the value + */ + public String getMonitorIp() { + return monitorIp; + } + /** The BYOIPv6 prefix. You can assign some or all of it to a VCN after it is validated. */ @com.fasterxml.jackson.annotation.JsonProperty("ipv6CidrBlock") private final String ipv6CidrBlock; @@ -351,6 +429,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("cidrBlock=").append(String.valueOf(this.cidrBlock)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", ipAnycastId=").append(String.valueOf(this.ipAnycastId)); + sb.append(", monitorIp=").append(String.valueOf(this.monitorIp)); sb.append(", ipv6CidrBlock=").append(String.valueOf(this.ipv6CidrBlock)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", displayName=").append(String.valueOf(this.displayName)); @@ -371,6 +451,8 @@ public boolean equals(Object o) { CreateByoipRangeDetails other = (CreateByoipRangeDetails) o; return java.util.Objects.equals(this.cidrBlock, other.cidrBlock) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.ipAnycastId, other.ipAnycastId) + && java.util.Objects.equals(this.monitorIp, other.monitorIp) && java.util.Objects.equals(this.ipv6CidrBlock, other.ipv6CidrBlock) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.displayName, other.displayName) @@ -386,6 +468,8 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.ipAnycastId == null ? 43 : this.ipAnycastId.hashCode()); + result = (result * PRIME) + (this.monitorIp == null ? 43 : this.monitorIp.hashCode()); result = (result * PRIME) + (this.ipv6CidrBlock == null ? 43 : this.ipv6CidrBlock.hashCode()); 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 4bfd97f846e..6ec588ec7e1 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 @@ -29,6 +29,8 @@ public final class CreateIpv6Details "freeformTags", "ipAddress", "vnicId", + "subnetId", + "lifetime", "routeTableId", "ipv6SubnetCidr" }) @@ -38,6 +40,8 @@ public CreateIpv6Details( java.util.Map freeformTags, String ipAddress, String vnicId, + String subnetId, + Lifetime lifetime, String routeTableId, String ipv6SubnetCidr) { super(); @@ -46,6 +50,8 @@ public CreateIpv6Details( this.freeformTags = freeformTags; this.ipAddress = ipAddress; this.vnicId = vnicId; + this.subnetId = subnetId; + this.lifetime = lifetime; this.routeTableId = routeTableId; this.ipv6SubnetCidr = ipv6SubnetCidr; } @@ -168,14 +174,54 @@ public Builder vnicId(String vnicId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the subnet from which the IPv6 is to be drawn. The IP address, *if supplied*, must be + * valid for the given subnet, only valid for reserved IPs currently. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the subnet from which the IPv6 is to be drawn. The IP address, *if supplied*, must be + * valid for the given subnet, only valid for reserved IPs currently. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -216,6 +262,8 @@ public CreateIpv6Details build() { this.freeformTags, this.ipAddress, this.vnicId, + this.subnetId, + this.lifetime, this.routeTableId, this.ipv6SubnetCidr); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -241,6 +289,12 @@ public Builder copy(CreateIpv6Details model) { if (model.wasPropertyExplicitlySet("vnicId")) { this.vnicId(model.getVnicId()); } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -365,14 +419,81 @@ public String getVnicId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the subnet from which the IPv6 is to be drawn. The IP address, *if supplied*, must be valid + * for the given subnet, only valid for reserved IPs currently. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the subnet from which the IPv6 is to be drawn. The IP address, *if supplied*, must be valid + * for the given subnet, only valid for reserved IPs currently. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + map.put(v.getValue(), v); + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Lifetime: " + key); + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -417,6 +538,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + 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(")"); @@ -438,6 +561,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && java.util.Objects.equals(this.ipv6SubnetCidr, other.ipv6SubnetCidr) && super.equals(other); @@ -452,6 +577,8 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreatePrivateIpDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreatePrivateIpDetails.java index 90154aaffb8..43b2461ce39 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreatePrivateIpDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreatePrivateIpDetails.java @@ -31,6 +31,8 @@ public final class CreatePrivateIpDetails "ipAddress", "vnicId", "vlanId", + "subnetId", + "lifetime", "routeTableId" }) public CreatePrivateIpDetails( @@ -41,6 +43,8 @@ public CreatePrivateIpDetails( String ipAddress, String vnicId, String vlanId, + String subnetId, + Lifetime lifetime, String routeTableId) { super(); this.definedTags = definedTags; @@ -50,6 +54,8 @@ public CreatePrivateIpDetails( this.ipAddress = ipAddress; this.vnicId = vnicId; this.vlanId = vlanId; + this.subnetId = subnetId; + this.lifetime = lifetime; this.routeTableId = routeTableId; } @@ -235,14 +241,54 @@ public Builder vlanId(String vlanId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the subnet from which the private IP is to be drawn. The IP address, *if supplied*, + * must be valid for the given subnet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the subnet from which the private IP is to be drawn. The IP address, *if supplied*, + * must be valid for the given subnet. + * + * @param subnetId the value to set + * @return this builder + */ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -266,6 +312,8 @@ public CreatePrivateIpDetails build() { this.ipAddress, this.vnicId, this.vlanId, + this.subnetId, + this.lifetime, this.routeTableId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -296,6 +344,12 @@ public Builder copy(CreatePrivateIpDetails model) { if (model.wasPropertyExplicitlySet("vlanId")) { this.vlanId(model.getVlanId()); } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -473,14 +527,81 @@ public String getVlanId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the subnet from which the private IP is to be drawn. The IP address, *if supplied*, must be + * valid for the given subnet. + */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the subnet from which the private IP is to be drawn. The IP address, *if supplied*, must be + * valid for the given subnet. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; + } + + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + map.put(v.getValue(), v); + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Lifetime: " + key); + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -510,6 +631,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); sb.append(", vlanId=").append(String.valueOf(this.vlanId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(")"); return sb.toString(); @@ -532,6 +655,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.vnicId, other.vnicId) && java.util.Objects.equals(this.vlanId, other.vlanId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && super.equals(other); } @@ -549,6 +674,8 @@ public int hashCode() { result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); result = (result * PRIME) + (this.vlanId == null ? 43 : this.vlanId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVnicDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVnicDetails.java index 08703ac67e7..8d2b6743333 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVnicDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVnicDetails.java @@ -292,18 +292,17 @@ public Builder securityAttributes( * {@code bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be * unique across all VNICs in the subnet and comply with [RFC * 952](https://tools.ietf.org/html/rfc952) and [RFC - * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link Vnic}} - * object and also the {@code {@link PrivateIp}} object returned by {@code {@link - * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and {@code {@link - * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link + * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

For more information, see [DNS in Your Virtual Cloud * Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). * *

When launching an instance, use this {@code hostnameLabel} instead of the deprecated - * {@code hostnameLabel} in {@code {@link - * #launchInstanceDetails(LaunchInstanceDetailsRequest) launchInstanceDetails}}. If you - * provide both, the values must match. + * {@code hostnameLabel} in {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) + * launchInstanceDetails}. If you provide both, the values must match. * *

Example: {@code bminstance1} * @@ -319,18 +318,17 @@ public Builder securityAttributes( * {@code bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be * unique across all VNICs in the subnet and comply with [RFC * 952](https://tools.ietf.org/html/rfc952) and [RFC - * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link Vnic}} - * object and also the {@code {@link PrivateIp}} object returned by {@code {@link - * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and {@code {@link - * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link + * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

For more information, see [DNS in Your Virtual Cloud * Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). * *

When launching an instance, use this {@code hostnameLabel} instead of the deprecated - * {@code hostnameLabel} in {@code {@link - * #launchInstanceDetails(LaunchInstanceDetailsRequest) launchInstanceDetails}}. If you - * provide both, the values must match. + * {@code hostnameLabel} in {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) + * launchInstanceDetails}. If you provide both, the values must match. * *

Example: {@code bminstance1} * @@ -404,9 +402,9 @@ public Builder nsgIds(java.util.List nsgIds) { * A private IP address of your choice to assign to the VNIC. Must be an available IP * address within the subnet's CIDR. If you don't specify a value, Oracle automatically * assigns a private IP address from the subnet. This is the VNIC's *primary* private IP - * address. The value appears in the {@code {@link Vnic}} object and also the {@code {@link - * PrivateIp}} object returned by {@code {@link #listPrivateIps(ListPrivateIpsRequest) - * listPrivateIps}} and {@code {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * address. The value appears in the {@link Vnic} object and also the {@link PrivateIp} + * object returned by {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and + * {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

If you specify a {@code vlanId}, the {@code privateIp} cannot be specified. See {@link * Vlan}. @@ -420,9 +418,9 @@ public Builder nsgIds(java.util.List nsgIds) { * A private IP address of your choice to assign to the VNIC. Must be an available IP * address within the subnet's CIDR. If you don't specify a value, Oracle automatically * assigns a private IP address from the subnet. This is the VNIC's *primary* private IP - * address. The value appears in the {@code {@link Vnic}} object and also the {@code {@link - * PrivateIp}} object returned by {@code {@link #listPrivateIps(ListPrivateIpsRequest) - * listPrivateIps}} and {@code {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * address. The value appears in the {@link Vnic} object and also the {@link PrivateIp} + * object returned by {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and + * {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

If you specify a {@code vlanId}, the {@code privateIp} cannot be specified. See {@link * Vlan}. @@ -817,17 +815,17 @@ public java.util.Map> getSecurityAttribute * portion of the primary private IP's fully qualified domain name (FQDN) (for example, {@code * bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be unique across * all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and - * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link - * Vnic}} object and also the {@code {@link PrivateIp}} object returned by {@code {@link - * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and {@code {@link - * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link + * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

For more information, see [DNS in Your Virtual Cloud * Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). * *

When launching an instance, use this {@code hostnameLabel} instead of the deprecated - * {@code hostnameLabel} in {@code {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) - * launchInstanceDetails}}. If you provide both, the values must match. + * {@code hostnameLabel} in {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) + * launchInstanceDetails}. If you provide both, the values must match. * *

Example: {@code bminstance1} * @@ -842,17 +840,17 @@ public java.util.Map> getSecurityAttribute * portion of the primary private IP's fully qualified domain name (FQDN) (for example, {@code * bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be unique across * all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and - * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link - * Vnic}} object and also the {@code {@link PrivateIp}} object returned by {@code {@link - * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and {@code {@link - * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link + * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

For more information, see [DNS in Your Virtual Cloud * Network](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). * *

When launching an instance, use this {@code hostnameLabel} instead of the deprecated - * {@code hostnameLabel} in {@code {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) - * launchInstanceDetails}}. If you provide both, the values must match. + * {@code hostnameLabel} in {@link #launchInstanceDetails(LaunchInstanceDetailsRequest) + * launchInstanceDetails}. If you provide both, the values must match. * *

Example: {@code bminstance1} * @@ -917,9 +915,9 @@ public java.util.List getNsgIds() { * A private IP address of your choice to assign to the VNIC. Must be an available IP address * within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a * private IP address from the subnet. This is the VNIC's *primary* private IP address. The - * value appears in the {@code {@link Vnic}} object and also the {@code {@link PrivateIp}} - * object returned by {@code {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and - * {@code {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * value appears in the {@link Vnic} object and also the {@link PrivateIp} object returned by + * {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

If you specify a {@code vlanId}, the {@code privateIp} cannot be specified. See {@link * Vlan}. @@ -933,9 +931,9 @@ public java.util.List getNsgIds() { * A private IP address of your choice to assign to the VNIC. Must be an available IP address * within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a * private IP address from the subnet. This is the VNIC's *primary* private IP address. The - * value appears in the {@code {@link Vnic}} object and also the {@code {@link PrivateIp}} - * object returned by {@code {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps}} and - * {@code {@link #getPrivateIp(GetPrivateIpRequest) getPrivateIp}}. + * value appears in the {@link Vnic} object and also the {@link PrivateIp} object returned by + * {@link #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link + * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * *

If you specify a {@code vlanId}, the {@code privateIp} cannot be specified. See {@link * Vlan}. 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 99230e82e36..9a333ebfae5 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 @@ -40,6 +40,8 @@ public final class Ipv6 extends com.oracle.bmc.http.client.internal.ExplicitlySe "subnetId", "timeCreated", "vnicId", + "ipState", + "lifetime", "routeTableId" }) public Ipv6( @@ -53,6 +55,8 @@ public Ipv6( String subnetId, java.util.Date timeCreated, String vnicId, + IpState ipState, + Lifetime lifetime, String routeTableId) { super(); this.compartmentId = compartmentId; @@ -65,6 +69,8 @@ public Ipv6( this.subnetId = subnetId; this.timeCreated = timeCreated; this.vnicId = vnicId; + this.ipState = ipState; + this.lifetime = lifetime; this.routeTableId = routeTableId; } @@ -277,16 +283,54 @@ public Builder vnicId(String vnicId) { this.__explicitlySet__.add("vnicId"); return this; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise + * it is AVAILABLE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipState") + private IpState ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise + * it is AVAILABLE. + * + * @param ipState the value to set + * @return this builder + */ + public Builder ipState(IpState ipState) { + this.ipState = ipState; + this.__explicitlySet__.add("ipState"); + return this; + } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -313,6 +357,8 @@ public Ipv6 build() { this.subnetId, this.timeCreated, this.vnicId, + this.ipState, + this.lifetime, this.routeTableId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -352,6 +398,12 @@ public Builder copy(Ipv6 model) { if (model.wasPropertyExplicitlySet("vnicId")) { this.vnicId(model.getVnicId()); } + if (model.wasPropertyExplicitlySet("ipState")) { + this.ipState(model.getIpState()); + } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -602,16 +654,143 @@ public String getVnicId() { return vnicId; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + */ + public enum IpState implements com.oracle.bmc.http.internal.BmcEnum { + Assigned("ASSIGNED"), + Available("AVAILABLE"), + + /** + * 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(IpState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IpState v : IpState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IpState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IpState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IpState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipState") + private final IpState ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + * + * @return the value + */ + public IpState getIpState() { + return ipState; + } + + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + + /** + * 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(Lifetime.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Lifetime', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -644,6 +823,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); + 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(")"); return sb.toString(); @@ -669,6 +850,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.ipState, other.ipState) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && super.equals(other); } @@ -691,6 +874,8 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.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) + super.hashCode(); return result; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java index 7f058f80c3a..a120621f0a9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java @@ -16,31 +16,31 @@ * apply to the VNICs in the group * *

After creating an NSG, you can add VNICs and security rules to it. For example, when you - * create an instance, you can specify one or more NSGs to add the instance to (see {@code {@link - * #createVnicDetails(CreateVnicDetailsRequest) createVnicDetails})}. Or you can add an existing - * instance to an NSG with {@code {@link #updateVnic(UpdateVnicRequest) updateVnic}}. + * create an instance, you can specify one or more NSGs to add the instance to (see {@link + * #createVnicDetails(CreateVnicDetailsRequest) createVnicDetails}). Or you can add an existing + * instance to an NSG with {@link #updateVnic(UpdateVnicRequest) updateVnic}. * - *

To add security rules to an NSG, see {@code {@link + *

To add security rules to an NSG, see {@link * #addNetworkSecurityGroupSecurityRules(AddNetworkSecurityGroupSecurityRulesRequest) - * addNetworkSecurityGroupSecurityRules}}. + * addNetworkSecurityGroupSecurityRules}. * - *

To list the VNICs in an NSG, see {@code {@link + *

To list the VNICs in an NSG, see {@link * #listNetworkSecurityGroupVnics(ListNetworkSecurityGroupVnicsRequest) - * listNetworkSecurityGroupVnics}}. + * listNetworkSecurityGroupVnics}. * - *

To list the security rules in an NSG, see {@code {@link + *

To list the security rules in an NSG, see {@link * #listNetworkSecurityGroupSecurityRules(ListNetworkSecurityGroupSecurityRulesRequest) - * listNetworkSecurityGroupSecurityRules}}. + * listNetworkSecurityGroupSecurityRules}. * - *

For more information about network security groups, see {@code [Network Security - * Groups](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm)}. + *

For more information about network security groups, see [Network Security + * Groups](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm). * *

*Important:** Oracle Cloud Infrastructure Compute service images automatically include * firewall rules (for example, Linux iptables, Windows firewall). If there are issues with some * type of access to an instance, make sure all of the following are set correctly: * - *

Any security rules in any NSGs the instance's VNIC belongs to * Any {@code {@link - * SecurityList}} associated with the instance's subnet * The instance's OS firewall rules + *

Any security rules in any NSGs the instance's VNIC belongs to * Any {@link SecurityList} + * associated with the instance's subnet * The instance's OS firewall rules * *

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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java index d871053bc49..e3e23b90f00 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java @@ -25,7 +25,7 @@ * primary private IP's properties come from the values you specify in {@link CreateVnicDetails} * when calling either {@link #launchInstance(LaunchInstanceRequest) launchInstance} or {@link * #attachVnic(AttachVnicRequest) attachVnic}. To update the hostname for a primary private IP, you - * use {@code {@link #updateVnic(UpdateVnicRequest) updateVnic}}. + * use {@link #updateVnic(UpdateVnicRequest) updateVnic}. * *

{@code PrivateIp} objects that are created for use with the Oracle Cloud VMware Solution are * assigned to a VLAN and not a VNIC in a subnet. See the descriptions of the relevant attributes in @@ -65,6 +65,8 @@ public final class PrivateIp extends com.oracle.bmc.http.client.internal.Explici "subnetId", "timeCreated", "vnicId", + "ipState", + "lifetime", "routeTableId" }) public PrivateIp( @@ -81,6 +83,8 @@ public PrivateIp( String subnetId, java.util.Date timeCreated, String vnicId, + IpState ipState, + Lifetime lifetime, String routeTableId) { super(); this.availabilityDomain = availabilityDomain; @@ -96,6 +100,8 @@ public PrivateIp( this.subnetId = subnetId; this.timeCreated = timeCreated; this.vnicId = vnicId; + this.ipState = ipState; + this.lifetime = lifetime; this.routeTableId = routeTableId; } @@ -415,16 +421,54 @@ public Builder vnicId(String vnicId) { this.__explicitlySet__.add("vnicId"); return this; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise + * it is AVAILABLE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipState") + private IpState ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise + * it is AVAILABLE. + * + * @param ipState the value to set + * @return this builder + */ + public Builder ipState(IpState ipState) { + this.ipState = ipState; + this.__explicitlySet__.add("ipState"); + return this; + } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -454,6 +498,8 @@ public PrivateIp build() { this.subnetId, this.timeCreated, this.vnicId, + this.ipState, + this.lifetime, this.routeTableId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -502,6 +548,12 @@ public Builder copy(PrivateIp model) { if (model.wasPropertyExplicitlySet("vnicId")) { this.vnicId(model.getVnicId()); } + if (model.wasPropertyExplicitlySet("ipState")) { + this.ipState(model.getIpState()); + } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -805,16 +857,143 @@ public String getVnicId() { return vnicId; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + */ + public enum IpState implements com.oracle.bmc.http.internal.BmcEnum { + Assigned("ASSIGNED"), + Available("AVAILABLE"), + + /** + * 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(IpState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (IpState v : IpState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + IpState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static IpState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'IpState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipState") + private final IpState ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED, otherwise it + * is AVAILABLE. + * + * @return the value + */ + public IpState getIpState() { + return ipState; + } + + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + + /** + * 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(Lifetime.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Lifetime', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -850,6 +1029,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); + 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(")"); return sb.toString(); @@ -878,6 +1059,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.ipState, other.ipState) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && super.equals(other); } @@ -907,6 +1090,8 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.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) + super.hashCode(); return result; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateByoipRangeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateByoipRangeDetails.java index 39f098ecb50..93daa0a6aa5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateByoipRangeDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateByoipRangeDetails.java @@ -23,15 +23,25 @@ public final class UpdateByoipRangeDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"definedTags", "displayName", "freeformTags"}) + @java.beans.ConstructorProperties({ + "definedTags", + "displayName", + "freeformTags", + "ipAnycastId", + "monitorIp" + }) public UpdateByoipRangeDetails( java.util.Map> definedTags, String displayName, - java.util.Map freeformTags) { + java.util.Map freeformTags, + String ipAnycastId, + String monitorIp) { super(); this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; + this.ipAnycastId = ipAnycastId; + this.monitorIp = monitorIp; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -106,6 +116,40 @@ public Builder freeformTags(java.util.Map freeformTags) { this.__explicitlySet__.add("freeformTags"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the {@code IpAnycast} resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAnycastId") + private String ipAnycastId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the {@code IpAnycast} resource. + * + * @param ipAnycastId the value to set + * @return this builder + */ + public Builder ipAnycastId(String ipAnycastId) { + this.ipAnycastId = ipAnycastId; + this.__explicitlySet__.add("ipAnycastId"); + return this; + } + /** The IP address of the CIDR for Prefix Monitoring. */ + @com.fasterxml.jackson.annotation.JsonProperty("monitorIp") + private String monitorIp; + + /** + * The IP address of the CIDR for Prefix Monitoring. + * + * @param monitorIp the value to set + * @return this builder + */ + public Builder monitorIp(String monitorIp) { + this.monitorIp = monitorIp; + this.__explicitlySet__.add("monitorIp"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -113,7 +157,11 @@ public Builder freeformTags(java.util.Map freeformTags) { public UpdateByoipRangeDetails build() { UpdateByoipRangeDetails model = new UpdateByoipRangeDetails( - this.definedTags, this.displayName, this.freeformTags); + this.definedTags, + this.displayName, + this.freeformTags, + this.ipAnycastId, + this.monitorIp); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -131,6 +179,12 @@ public Builder copy(UpdateByoipRangeDetails model) { if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } + if (model.wasPropertyExplicitlySet("ipAnycastId")) { + this.ipAnycastId(model.getIpAnycastId()); + } + if (model.wasPropertyExplicitlySet("monitorIp")) { + this.monitorIp(model.getMonitorIp()); + } return this; } } @@ -207,6 +261,36 @@ public java.util.Map getFreeformTags() { return freeformTags; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the {@code IpAnycast} resource. + */ + @com.fasterxml.jackson.annotation.JsonProperty("ipAnycastId") + private final String ipAnycastId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the {@code IpAnycast} resource. + * + * @return the value + */ + public String getIpAnycastId() { + return ipAnycastId; + } + + /** The IP address of the CIDR for Prefix Monitoring. */ + @com.fasterxml.jackson.annotation.JsonProperty("monitorIp") + private final String monitorIp; + + /** + * The IP address of the CIDR for Prefix Monitoring. + * + * @return the value + */ + public String getMonitorIp() { + return monitorIp; + } + @Override public String toString() { return this.toString(true); @@ -225,6 +309,8 @@ 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(", ipAnycastId=").append(String.valueOf(this.ipAnycastId)); + sb.append(", monitorIp=").append(String.valueOf(this.monitorIp)); sb.append(")"); return sb.toString(); } @@ -242,6 +328,8 @@ 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.ipAnycastId, other.ipAnycastId) + && java.util.Objects.equals(this.monitorIp, other.monitorIp) && super.equals(other); } @@ -252,6 +340,8 @@ 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.ipAnycastId == null ? 43 : this.ipAnycastId.hashCode()); + result = (result * PRIME) + (this.monitorIp == null ? 43 : this.monitorIp.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } 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 b7b1daa4699..8d36d06426a 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 @@ -28,20 +28,23 @@ public final class UpdateIpv6Details "displayName", "freeformTags", "vnicId", - "routeTableId" + "routeTableId", + "lifetime" }) public UpdateIpv6Details( java.util.Map> definedTags, String displayName, java.util.Map freeformTags, String vnicId, - String routeTableId) { + String routeTableId, + Lifetime lifetime) { super(); this.definedTags = definedTags; this.displayName = displayName; this.freeformTags = freeformTags; this.vnicId = vnicId; this.routeTableId = routeTableId; + this.lifetime = lifetime; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -139,14 +142,18 @@ public Builder vnicId(String vnicId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -156,6 +163,21 @@ public Builder routeTableId(String routeTableId) { this.__explicitlySet__.add("routeTableId"); return this; } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -167,7 +189,8 @@ public UpdateIpv6Details build() { this.displayName, this.freeformTags, this.vnicId, - this.routeTableId); + this.routeTableId, + this.lifetime); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -191,6 +214,9 @@ public Builder copy(UpdateIpv6Details model) { if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } return this; } } @@ -286,14 +312,16 @@ public String getVnicId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -301,6 +329,52 @@ public String getRouteTableId() { return routeTableId; } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + map.put(v.getValue(), v); + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Lifetime: " + key); + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + @Override public String toString() { return this.toString(true); @@ -321,6 +395,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); + sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(")"); return sb.toString(); } @@ -340,6 +415,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.vnicId, other.vnicId) && java.util.Objects.equals(this.routeTableId, other.routeTableId) + && java.util.Objects.equals(this.lifetime, other.lifetime) && super.equals(other); } @@ -352,6 +428,7 @@ public int 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.routeTableId == null ? 43 : this.routeTableId.hashCode()); + result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdatePrivateIpDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdatePrivateIpDetails.java index f417f146d64..584ec8dcaa2 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdatePrivateIpDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdatePrivateIpDetails.java @@ -29,6 +29,7 @@ public final class UpdatePrivateIpDetails "freeformTags", "hostnameLabel", "vnicId", + "lifetime", "routeTableId" }) public UpdatePrivateIpDetails( @@ -37,6 +38,7 @@ public UpdatePrivateIpDetails( java.util.Map freeformTags, String hostnameLabel, String vnicId, + Lifetime lifetime, String routeTableId) { super(); this.definedTags = definedTags; @@ -44,6 +46,7 @@ public UpdatePrivateIpDetails( this.freeformTags = freeformTags; this.hostnameLabel = hostnameLabel; this.vnicId = vnicId; + this.lifetime = lifetime; this.routeTableId = routeTableId; } @@ -175,16 +178,35 @@ public Builder vnicId(String vnicId) { this.__explicitlySet__.add("vnicId"); return this; } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder + */ + public Builder lifetime(Lifetime lifetime) { + this.lifetime = lifetime; + this.__explicitlySet__.add("lifetime"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -206,6 +228,7 @@ public UpdatePrivateIpDetails build() { this.freeformTags, this.hostnameLabel, this.vnicId, + this.lifetime, this.routeTableId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -230,6 +253,9 @@ public Builder copy(UpdatePrivateIpDetails model) { if (model.wasPropertyExplicitlySet("vnicId")) { this.vnicId(model.getVnicId()); } + if (model.wasPropertyExplicitlySet("lifetime")) { + this.lifetime(model.getLifetime()); + } if (model.wasPropertyExplicitlySet("routeTableId")) { this.routeTableId(model.getRouteTableId()); } @@ -361,16 +387,64 @@ public String getVnicId() { return vnicId; } + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + public enum Lifetime implements com.oracle.bmc.http.internal.BmcEnum { + Ephemeral("EPHEMERAL"), + Reserved("RESERVED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Lifetime v : Lifetime.values()) { + map.put(v.getValue(), v); + } + } + + Lifetime(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Lifetime create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Lifetime: " + key); + } + }; + /** Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved */ + @com.fasterxml.jackson.annotation.JsonProperty("lifetime") + private final Lifetime lifetime; + + /** + * Lifetime of the IP address. There are two types of IPv6 IPs: - Ephemeral - Reserved + * + * @return the value + */ + public Lifetime getLifetime() { + return lifetime; + } + /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ @@ -398,6 +472,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", hostnameLabel=").append(String.valueOf(this.hostnameLabel)); sb.append(", vnicId=").append(String.valueOf(this.vnicId)); + sb.append(", lifetime=").append(String.valueOf(this.lifetime)); sb.append(", routeTableId=").append(String.valueOf(this.routeTableId)); sb.append(")"); return sb.toString(); @@ -418,6 +493,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.hostnameLabel, other.hostnameLabel) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.routeTableId, other.routeTableId) && super.equals(other); } @@ -433,6 +509,7 @@ public int hashCode() { (result * PRIME) + (this.hostnameLabel == null ? 43 : this.hostnameLabel.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.hashCode()); + result = (result * PRIME) + (this.lifetime == null ? 43 : this.lifetime.hashCode()); result = (result * PRIME) + (this.routeTableId == null ? 43 : this.routeTableId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java index a0478351957..88286d72e81 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVnicDetails.java @@ -163,8 +163,8 @@ public Builder securityAttributes( * {@code bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be * unique across all VNICs in the subnet and comply with [RFC * 952](https://tools.ietf.org/html/rfc952) and [RFC - * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link Vnic}} - * object and also the {@link PrivateIp} object returned by {@link + * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * @@ -180,8 +180,8 @@ public Builder securityAttributes( * {@code bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be * unique across all VNICs in the subnet and comply with [RFC * 952](https://tools.ietf.org/html/rfc952) and [RFC - * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link Vnic}} - * object and also the {@link PrivateIp} object returned by {@link + * 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * @@ -262,14 +262,18 @@ public Builder skipSourceDestCheck(Boolean skipSourceDestCheck) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -436,8 +440,8 @@ public java.util.Map> getSecurityAttribute * portion of the primary private IP's fully qualified domain name (FQDN) (for example, {@code * bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be unique across * all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and - * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link - * Vnic}} object and also the {@link PrivateIp} object returned by {@link + * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * @@ -452,8 +456,8 @@ public java.util.Map> getSecurityAttribute * portion of the primary private IP's fully qualified domain name (FQDN) (for example, {@code * bminstance1} in FQDN {@code bminstance1.subnet123.vcn1.oraclevcn.com}). Must be unique across * all VNICs in the subnet and comply with [RFC 952](https://tools.ietf.org/html/rfc952) and - * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@code {@link - * Vnic}} object and also the {@link PrivateIp} object returned by {@link + * [RFC 1123](https://tools.ietf.org/html/rfc1123). The value appears in the {@link Vnic} object + * and also the {@link PrivateIp} object returned by {@link * #listPrivateIps(ListPrivateIpsRequest) listPrivateIps} and {@link * #getPrivateIp(GetPrivateIpRequest) getPrivateIp}. * @@ -528,14 +532,16 @@ public Boolean getSkipSourceDestCheck() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java index 5166a51a6cb..7a89909bba1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java @@ -561,14 +561,18 @@ public Builder ipv6Addresses(java.util.List ipv6Addresses) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the route table the PrivateIp will use. + * of the route table the IP address or VNIC will use. For more information, see [Source + * Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @param routeTableId the value to set * @return this builder @@ -1145,14 +1149,16 @@ public java.util.List getIpv6Addresses() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). */ @com.fasterxml.jackson.annotation.JsonProperty("routeTableId") private final String routeTableId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the route table the PrivateIp will use. + * the route table the IP address or VNIC will use. For more information, see [Source Based + * Routing](https://docs.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#Overview_of_Routing_for_Your_VCN__source_routing). * * @return the value */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/Ipv6VnicDetachRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/Ipv6VnicDetachRequest.java new file mode 100644 index 00000000000..119c3c794ba --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/Ipv6VnicDetachRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use Ipv6VnicDetachRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class Ipv6VnicDetachRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the IPv6. + */ + private String ipv6Id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the IPv6. + */ + public String getIpv6Id() { + return ipv6Id; + } + /** + * 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< + Ipv6VnicDetachRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the IPv6. + */ + private String ipv6Id = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the IPv6. + * + * @param ipv6Id the value to set + * @return this builder instance + */ + public Builder ipv6Id(String ipv6Id) { + this.ipv6Id = ipv6Id; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(Ipv6VnicDetachRequest o) { + ipv6Id(o.getIpv6Id()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of Ipv6VnicDetachRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of Ipv6VnicDetachRequest + */ + public Ipv6VnicDetachRequest buildWithoutInvocationCallback() { + Ipv6VnicDetachRequest request = new Ipv6VnicDetachRequest(); + request.ipv6Id = ipv6Id; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new Ipv6VnicDetachRequest(ipv6Id, 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() + .ipv6Id(ipv6Id) + .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(",ipv6Id=").append(String.valueOf(this.ipv6Id)); + 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 Ipv6VnicDetachRequest)) { + return false; + } + + Ipv6VnicDetachRequest other = (Ipv6VnicDetachRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.ipv6Id, other.ipv6Id) + && 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.ipv6Id == null ? 43 : this.ipv6Id.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-core/src/main/java/com/oracle/bmc/core/requests/ListIpv6sRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListIpv6sRequest.java index 98210ab5705..2b01e34ced7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListIpv6sRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListIpv6sRequest.java @@ -80,6 +80,26 @@ public String getSubnetId() { public String getVnicId() { return vnicId; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + private String ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + public String getIpState() { + return ipState; + } + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + private String lifetime; + + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + public String getLifetime() { + return lifetime; + } /** * Unique identifier for the request. If you need to contact Oracle about a particular request, * please provide the request ID. @@ -194,6 +214,38 @@ public Builder vnicId(String vnicId) { return this; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + private String ipState = null; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + * + * @param ipState the value to set + * @return this builder instance + */ + public Builder ipState(String ipState) { + this.ipState = ipState; + return this; + } + + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + private String lifetime = null; + + /** + * Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder instance + */ + public Builder lifetime(String lifetime) { + this.lifetime = lifetime; + return this; + } + /** * Unique identifier for the request. If you need to contact Oracle about a particular * request, please provide the request ID. @@ -247,6 +299,8 @@ public Builder copy(ListIpv6sRequest o) { ipAddress(o.getIpAddress()); subnetId(o.getSubnetId()); vnicId(o.getVnicId()); + ipState(o.getIpState()); + lifetime(o.getLifetime()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -287,9 +341,12 @@ public ListIpv6sRequest buildWithoutInvocationCallback() { request.ipAddress = ipAddress; request.subnetId = subnetId; request.vnicId = vnicId; + request.ipState = ipState; + request.lifetime = lifetime; request.opcRequestId = opcRequestId; return request; - // new ListIpv6sRequest(limit, page, ipAddress, subnetId, vnicId, opcRequestId); + // new ListIpv6sRequest(limit, page, ipAddress, subnetId, vnicId, ipState, lifetime, + // opcRequestId); } } @@ -305,6 +362,8 @@ public Builder toBuilder() { .ipAddress(ipAddress) .subnetId(subnetId) .vnicId(vnicId) + .ipState(ipState) + .lifetime(lifetime) .opcRequestId(opcRequestId); } @@ -327,6 +386,8 @@ public String toString() { sb.append(",ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(",subnetId=").append(String.valueOf(this.subnetId)); sb.append(",vnicId=").append(String.valueOf(this.vnicId)); + sb.append(",ipState=").append(String.valueOf(this.ipState)); + sb.append(",lifetime=").append(String.valueOf(this.lifetime)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -348,6 +409,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.ipState, other.ipState) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -360,6 +423,8 @@ public int hashCode() { result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListPrivateIpsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListPrivateIpsRequest.java index 26a2d83f6b7..46b386930fa 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListPrivateIpsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListPrivateIpsRequest.java @@ -80,6 +80,26 @@ public String getSubnetId() { public String getVnicId() { return vnicId; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + private String ipState; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + public String getIpState() { + return ipState; + } + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + private String lifetime; + + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + public String getLifetime() { + return lifetime; + } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of * the VLAN. @@ -194,6 +214,38 @@ public Builder vnicId(String vnicId) { return this; } + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + */ + private String ipState = null; + + /** + * State of the IP address. If an IP address is assigned to a VNIC it is ASSIGNED otherwise + * AVAILABLE + * + * @param ipState the value to set + * @return this builder instance + */ + public Builder ipState(String ipState) { + this.ipState = ipState; + return this; + } + + /** Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved */ + private String lifetime = null; + + /** + * Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved + * + * @param lifetime the value to set + * @return this builder instance + */ + public Builder lifetime(String lifetime) { + this.lifetime = lifetime; + return this; + } + /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * of the VLAN. @@ -247,6 +299,8 @@ public Builder copy(ListPrivateIpsRequest o) { ipAddress(o.getIpAddress()); subnetId(o.getSubnetId()); vnicId(o.getVnicId()); + ipState(o.getIpState()); + lifetime(o.getLifetime()); vlanId(o.getVlanId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -287,9 +341,12 @@ public ListPrivateIpsRequest buildWithoutInvocationCallback() { request.ipAddress = ipAddress; request.subnetId = subnetId; request.vnicId = vnicId; + request.ipState = ipState; + request.lifetime = lifetime; request.vlanId = vlanId; return request; - // new ListPrivateIpsRequest(limit, page, ipAddress, subnetId, vnicId, vlanId); + // new ListPrivateIpsRequest(limit, page, ipAddress, subnetId, vnicId, ipState, + // lifetime, vlanId); } } @@ -305,6 +362,8 @@ public Builder toBuilder() { .ipAddress(ipAddress) .subnetId(subnetId) .vnicId(vnicId) + .ipState(ipState) + .lifetime(lifetime) .vlanId(vlanId); } @@ -327,6 +386,8 @@ public String toString() { sb.append(",ipAddress=").append(String.valueOf(this.ipAddress)); sb.append(",subnetId=").append(String.valueOf(this.subnetId)); sb.append(",vnicId=").append(String.valueOf(this.vnicId)); + sb.append(",ipState=").append(String.valueOf(this.ipState)); + sb.append(",lifetime=").append(String.valueOf(this.lifetime)); sb.append(",vlanId=").append(String.valueOf(this.vlanId)); sb.append(")"); return sb.toString(); @@ -348,6 +409,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.ipAddress, other.ipAddress) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.vnicId, other.vnicId) + && java.util.Objects.equals(this.ipState, other.ipState) + && java.util.Objects.equals(this.lifetime, other.lifetime) && java.util.Objects.equals(this.vlanId, other.vlanId); } @@ -360,6 +423,8 @@ public int hashCode() { result = (result * PRIME) + (this.ipAddress == null ? 43 : this.ipAddress.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.vnicId == null ? 43 : this.vnicId.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.vlanId == null ? 43 : this.vlanId.hashCode()); return result; } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/PrivateIpVnicDetachRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PrivateIpVnicDetachRequest.java new file mode 100644 index 00000000000..86a319db79a --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/PrivateIpVnicDetachRequest.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.requests; + +import com.oracle.bmc.core.model.*; +/** + * Example: Click here to see how to use PrivateIpVnicDetachRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PrivateIpVnicDetachRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the private IP or IPv6. + */ + private String privateIpId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the private IP or IPv6. + */ + public String getPrivateIpId() { + return privateIpId; + } + /** + * 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< + PrivateIpVnicDetachRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the private IP or IPv6. + */ + private String privateIpId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the private IP or IPv6. + * + * @param privateIpId the value to set + * @return this builder instance + */ + public Builder privateIpId(String privateIpId) { + this.privateIpId = privateIpId; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PrivateIpVnicDetachRequest o) { + privateIpId(o.getPrivateIpId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PrivateIpVnicDetachRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of PrivateIpVnicDetachRequest + */ + public PrivateIpVnicDetachRequest buildWithoutInvocationCallback() { + PrivateIpVnicDetachRequest request = new PrivateIpVnicDetachRequest(); + request.privateIpId = privateIpId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new PrivateIpVnicDetachRequest(privateIpId, 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() + .privateIpId(privateIpId) + .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(",privateIpId=").append(String.valueOf(this.privateIpId)); + 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 PrivateIpVnicDetachRequest)) { + return false; + } + + PrivateIpVnicDetachRequest other = (PrivateIpVnicDetachRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.privateIpId, other.privateIpId) + && 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.privateIpId == null ? 43 : this.privateIpId.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-core/src/main/java/com/oracle/bmc/core/responses/Ipv6VnicDetachResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/Ipv6VnicDetachResponse.java new file mode 100644 index 00000000000..c2aa3857833 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/Ipv6VnicDetachResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class Ipv6VnicDetachResponse 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 {@code Ipv6} instance. */ + private com.oracle.bmc.core.model.Ipv6 ipv6; + + /** + * The returned {@code Ipv6} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.Ipv6 getIpv6() { + return ipv6; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "ipv6" + }) + private Ipv6VnicDetachResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.Ipv6 ipv6) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.ipv6 = ipv6; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code Ipv6} instance. */ + private com.oracle.bmc.core.model.Ipv6 ipv6; + + /** + * The returned {@code Ipv6} instance. + * + * @param ipv6 the value to set + * @return this builder + */ + public Builder ipv6(com.oracle.bmc.core.model.Ipv6 ipv6) { + this.ipv6 = ipv6; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(Ipv6VnicDetachResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + ipv6(o.getIpv6()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public Ipv6VnicDetachResponse build() { + return new Ipv6VnicDetachResponse( + __httpStatusCode__, headers, etag, opcRequestId, ipv6); + } + } + + /** + * 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(",ipv6=").append(String.valueOf(ipv6)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Ipv6VnicDetachResponse)) { + return false; + } + + Ipv6VnicDetachResponse other = (Ipv6VnicDetachResponse) 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.ipv6, other.ipv6); + } + + @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.ipv6 == null ? 43 : this.ipv6.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/responses/PrivateIpVnicDetachResponse.java b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PrivateIpVnicDetachResponse.java new file mode 100644 index 00000000000..1f6ada06a30 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/responses/PrivateIpVnicDetachResponse.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.responses; + +import com.oracle.bmc.core.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class PrivateIpVnicDetachResponse 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 {@code PrivateIp} instance. */ + private com.oracle.bmc.core.model.PrivateIp privateIp; + + /** + * The returned {@code PrivateIp} instance. + * + * @return the value + */ + public com.oracle.bmc.core.model.PrivateIp getPrivateIp() { + return privateIp; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "privateIp" + }) + private PrivateIpVnicDetachResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.core.model.PrivateIp privateIp) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.privateIp = privateIp; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code PrivateIp} instance. */ + private com.oracle.bmc.core.model.PrivateIp privateIp; + + /** + * The returned {@code PrivateIp} instance. + * + * @param privateIp the value to set + * @return this builder + */ + public Builder privateIp(com.oracle.bmc.core.model.PrivateIp privateIp) { + this.privateIp = privateIp; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PrivateIpVnicDetachResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + privateIp(o.getPrivateIp()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PrivateIpVnicDetachResponse build() { + return new PrivateIpVnicDetachResponse( + __httpStatusCode__, headers, etag, opcRequestId, privateIp); + } + } + + /** + * 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(",privateIp=").append(String.valueOf(privateIp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateIpVnicDetachResponse)) { + return false; + } + + PrivateIpVnicDetachResponse other = (PrivateIpVnicDetachResponse) 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.privateIp, other.privateIp); + } + + @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.privateIp == null ? 43 : this.privateIp.hashCode()); + return result; + } +} diff --git a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json index f19b49157f9..bb280b0972d 100644 --- a/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json +++ b/bmc-core/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-core/reflect-config.json @@ -3123,6 +3123,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreateIpv6Details$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.CreateLocalPeeringGatewayDetails", @@ -3207,6 +3213,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.CreatePrivateIpDetails$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.CreatePublicIpDetails", @@ -6423,6 +6435,18 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.Ipv6$IpState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.Ipv6$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.Ipv6AddressIpv6SubnetCidrPairDetails", @@ -7155,6 +7179,18 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PrivateIp$IpState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.PrivateIp$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.PublicIp", @@ -8901,6 +8937,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdateIpv6Details$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.UpdateLaunchOptions", @@ -9025,6 +9067,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.core.model.UpdatePrivateIpDetails$Lifetime", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.core.model.UpdatePublicIpDetails", diff --git a/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties b/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties +++ b/bmc-core/src/main/resources/com/oracle/bmc/core/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 83a5024b153..febd9e9b26b 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties b/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties index d021df748ca..63e4f73c82b 100644 --- a/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties +++ b/bmc-dashboardservice/src/main/resources/com/oracle/bmc/dashboardservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210731") \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 566f0f09718..66cbb1385cf 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.57.2 + 3.58.0 diff --git a/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties b/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties +++ b/bmc-database/src/main/resources/com/oracle/bmc/database/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 691b49a784f..fce33269e51 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties b/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties index 9e6fa1d1764..5e3fb0292ef 100644 --- a/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties +++ b/bmc-databasemanagement/src/main/resources/com/oracle/bmc/databasemanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index a332667d44d..df7c3f8771e 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties index 56fcd16a604..ddde3657086 100644 --- a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties +++ b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 3fd42e7bd87..47fea345402 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties b/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties index 50a18eeb3b2..bb6a493e988 100644 --- a/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties +++ b/bmc-databasetools/src/main/resources/com/oracle/bmc/databasetools/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201005") \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 1deafa5aeca..2b43efb1229 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties b/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties index 1f6324fd92b..9e57024a24a 100644 --- a/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties +++ b/bmc-datacatalog/src/main/resources/com/oracle/bmc/datacatalog/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 12283f09e47..f2824a27347 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties b/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties index d5d6bf1c852..b67ff70f521 100644 --- a/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties +++ b/bmc-dataflow/src/main/resources/com/oracle/bmc/dataflow/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index c75d0d85097..ce5a6445187 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties b/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties index 03259e7e834..3fb450f9c86 100644 --- a/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties +++ b/bmc-dataintegration/src/main/resources/com/oracle/bmc/dataintegration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200430") \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 8989808174e..e3fa07bfb40 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties b/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties index 3371218eda2..81969dc0bcf 100644 --- a/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties +++ b/bmc-datalabelingservice/src/main/resources/com/oracle/bmc/datalabelingservice/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211001") \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index eadc3759a3f..6b7de125474 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties b/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties index 3371218eda2..81969dc0bcf 100644 --- a/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties +++ b/bmc-datalabelingservicedataplane/src/main/resources/com/oracle/bmc/datalabelingservicedataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211001") \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 92d0c0fa267..be096409fbc 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties b/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties index 1f8ec770a6d..526bdb209c3 100644 --- a/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties +++ b/bmc-datasafe/src/main/resources/com/oracle/bmc/datasafe/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 0bbb2a0e472..9b4e88c849d 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreatePipelineDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreatePipelineDetails.java index e4e5c02298c..ae1672d8637 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreatePipelineDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/CreatePipelineDetails.java @@ -31,6 +31,7 @@ public final class CreatePipelineDetails "configurationDetails", "logConfigurationDetails", "infrastructureConfigurationDetails", + "storageMountConfigurationDetailsList", "stepDetails", "freeformTags", "definedTags" @@ -43,6 +44,7 @@ public CreatePipelineDetails( PipelineConfigurationDetails configurationDetails, PipelineLogConfigurationDetails logConfigurationDetails, PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails, + java.util.List storageMountConfigurationDetailsList, java.util.List stepDetails, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -54,6 +56,7 @@ public CreatePipelineDetails( this.configurationDetails = configurationDetails; this.logConfigurationDetails = logConfigurationDetails; this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; this.stepDetails = stepDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -158,6 +161,24 @@ public Builder infrastructureConfigurationDetails( this.__explicitlySet__.add("infrastructureConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param storageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder storageMountConfigurationDetailsList( + java.util.List + storageMountConfigurationDetailsList) { + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; + this.__explicitlySet__.add("storageMountConfigurationDetailsList"); + return this; + } /** Array of step details for each step. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private java.util.List stepDetails; @@ -232,6 +253,7 @@ public CreatePipelineDetails build() { this.configurationDetails, this.logConfigurationDetails, this.infrastructureConfigurationDetails, + this.storageMountConfigurationDetailsList, this.stepDetails, this.freeformTags, this.definedTags); @@ -265,6 +287,10 @@ public Builder copy(CreatePipelineDetails model) { this.infrastructureConfigurationDetails( model.getInfrastructureConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("storageMountConfigurationDetailsList")) { + this.storageMountConfigurationDetailsList( + model.getStorageMountConfigurationDetailsList()); + } if (model.wasPropertyExplicitlySet("stepDetails")) { this.stepDetails(model.getStepDetails()); } @@ -368,6 +394,21 @@ public PipelineInfrastructureConfigurationDetails getInfrastructureConfiguration return infrastructureConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private final java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStorageMountConfigurationDetailsList() { + return storageMountConfigurationDetailsList; + } + /** Array of step details for each step. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private final java.util.List stepDetails; @@ -445,6 +486,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.logConfigurationDetails)); sb.append(", infrastructureConfigurationDetails=") .append(String.valueOf(this.infrastructureConfigurationDetails)); + sb.append(", storageMountConfigurationDetailsList=") + .append(String.valueOf(this.storageMountConfigurationDetailsList)); sb.append(", stepDetails=").append(String.valueOf(this.stepDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -472,6 +515,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.infrastructureConfigurationDetails, other.infrastructureConfigurationDetails) + && java.util.Objects.equals( + this.storageMountConfigurationDetailsList, + other.storageMountConfigurationDetailsList) && java.util.Objects.equals(this.stepDetails, other.stepDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -503,6 +549,11 @@ public int hashCode() { + (this.infrastructureConfigurationDetails == null ? 43 : this.infrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.storageMountConfigurationDetailsList == null + ? 43 + : this.storageMountConfigurationDetailsList.hashCode()); result = (result * PRIME) + (this.stepDetails == null ? 43 : this.stepDetails.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-datascience/src/main/java/com/oracle/bmc/datascience/model/Pipeline.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Pipeline.java index 7308486f9c0..cef19688faf 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Pipeline.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/Pipeline.java @@ -33,6 +33,7 @@ public final class Pipeline extends com.oracle.bmc.http.client.internal.Explicit "configurationDetails", "logConfigurationDetails", "infrastructureConfigurationDetails", + "storageMountConfigurationDetailsList", "stepDetails", "lifecycleState", "lifecycleDetails", @@ -52,6 +53,7 @@ public Pipeline( PipelineConfigurationDetails configurationDetails, PipelineLogConfigurationDetails logConfigurationDetails, PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails, + java.util.List storageMountConfigurationDetailsList, java.util.List stepDetails, PipelineLifecycleState lifecycleState, String lifecycleDetails, @@ -70,6 +72,7 @@ public Pipeline( this.configurationDetails = configurationDetails; this.logConfigurationDetails = logConfigurationDetails; this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; this.stepDetails = stepDetails; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; @@ -253,6 +256,24 @@ public Builder infrastructureConfigurationDetails( this.__explicitlySet__.add("infrastructureConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param storageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder storageMountConfigurationDetailsList( + java.util.List + storageMountConfigurationDetailsList) { + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; + this.__explicitlySet__.add("storageMountConfigurationDetailsList"); + return this; + } /** Array of step details for each step. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private java.util.List stepDetails; @@ -384,6 +405,7 @@ public Pipeline build() { this.configurationDetails, this.logConfigurationDetails, this.infrastructureConfigurationDetails, + this.storageMountConfigurationDetailsList, this.stepDetails, this.lifecycleState, this.lifecycleDetails, @@ -432,6 +454,10 @@ public Builder copy(Pipeline model) { this.infrastructureConfigurationDetails( model.getInfrastructureConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("storageMountConfigurationDetailsList")) { + this.storageMountConfigurationDetailsList( + model.getStorageMountConfigurationDetailsList()); + } if (model.wasPropertyExplicitlySet("stepDetails")) { this.stepDetails(model.getStepDetails()); } @@ -612,6 +638,21 @@ public PipelineInfrastructureConfigurationDetails getInfrastructureConfiguration return infrastructureConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private final java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStorageMountConfigurationDetailsList() { + return storageMountConfigurationDetailsList; + } + /** Array of step details for each step. */ @com.fasterxml.jackson.annotation.JsonProperty("stepDetails") private final java.util.List stepDetails; @@ -740,6 +781,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.logConfigurationDetails)); sb.append(", infrastructureConfigurationDetails=") .append(String.valueOf(this.infrastructureConfigurationDetails)); + sb.append(", storageMountConfigurationDetailsList=") + .append(String.valueOf(this.storageMountConfigurationDetailsList)); sb.append(", stepDetails=").append(String.valueOf(this.stepDetails)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); @@ -774,6 +817,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.infrastructureConfigurationDetails, other.infrastructureConfigurationDetails) + && java.util.Objects.equals( + this.storageMountConfigurationDetailsList, + other.storageMountConfigurationDetailsList) && java.util.Objects.equals(this.stepDetails, other.stepDetails) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) @@ -812,6 +858,11 @@ public int hashCode() { + (this.infrastructureConfigurationDetails == null ? 43 : this.infrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.storageMountConfigurationDetailsList == null + ? 43 + : this.storageMountConfigurationDetailsList.hashCode()); result = (result * PRIME) + (this.stepDetails == null ? 43 : this.stepDetails.hashCode()); result = (result * PRIME) diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java index b8a153195ba..aee6f41c18b 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepDetails.java @@ -84,6 +84,25 @@ public Builder stepContainerConfigurationDetails( this.__explicitlySet__.add("stepContainerConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param stepStorageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder stepStorageMountConfigurationDetailsList( + java.util.List + stepStorageMountConfigurationDetailsList) { + this.stepStorageMountConfigurationDetailsList = + stepStorageMountConfigurationDetailsList; + this.__explicitlySet__.add("stepStorageMountConfigurationDetailsList"); + return this; + } /** A flag to indicate whether the artifact has been uploaded for this step or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") private Boolean isArtifactUploaded; @@ -112,6 +131,7 @@ public PipelineContainerStepDetails build() { this.stepConfigurationDetails, this.stepInfrastructureConfigurationDetails, this.stepContainerConfigurationDetails, + this.stepStorageMountConfigurationDetailsList, this.isArtifactUploaded); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -141,6 +161,10 @@ public Builder copy(PipelineContainerStepDetails model) { this.stepContainerConfigurationDetails( model.getStepContainerConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepStorageMountConfigurationDetailsList")) { + this.stepStorageMountConfigurationDetailsList( + model.getStepStorageMountConfigurationDetailsList()); + } if (model.wasPropertyExplicitlySet("isArtifactUploaded")) { this.isArtifactUploaded(model.getIsArtifactUploaded()); } @@ -165,10 +189,13 @@ public PipelineContainerStepDetails( PipelineStepConfigurationDetails stepConfigurationDetails, PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails, PipelineContainerConfigurationDetails stepContainerConfigurationDetails, + java.util.List + stepStorageMountConfigurationDetailsList, Boolean isArtifactUploaded) { super(stepName, description, dependsOn, stepConfigurationDetails); this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; + this.stepStorageMountConfigurationDetailsList = stepStorageMountConfigurationDetailsList; this.isArtifactUploaded = isArtifactUploaded; } @@ -186,6 +213,21 @@ public PipelineContainerConfigurationDetails getStepContainerConfigurationDetail return stepContainerConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private final java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStepStorageMountConfigurationDetailsList() { + return stepStorageMountConfigurationDetailsList; + } + /** A flag to indicate whether the artifact has been uploaded for this step or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") private final Boolean isArtifactUploaded; @@ -218,6 +260,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); sb.append(", stepContainerConfigurationDetails=") .append(String.valueOf(this.stepContainerConfigurationDetails)); + sb.append(", stepStorageMountConfigurationDetailsList=") + .append(String.valueOf(this.stepStorageMountConfigurationDetailsList)); sb.append(", isArtifactUploaded=").append(String.valueOf(this.isArtifactUploaded)); sb.append(")"); return sb.toString(); @@ -239,6 +283,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.stepContainerConfigurationDetails, other.stepContainerConfigurationDetails) + && java.util.Objects.equals( + this.stepStorageMountConfigurationDetailsList, + other.stepStorageMountConfigurationDetailsList) && java.util.Objects.equals(this.isArtifactUploaded, other.isArtifactUploaded) && super.equals(other); } @@ -257,6 +304,11 @@ public int hashCode() { + (this.stepContainerConfigurationDetails == null ? 43 : this.stepContainerConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepStorageMountConfigurationDetailsList == null + ? 43 + : this.stepStorageMountConfigurationDetailsList.hashCode()); result = (result * PRIME) + (this.isArtifactUploaded == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java index a8bb608a3b5..71456d9bdb3 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineContainerStepUpdateDetails.java @@ -64,6 +64,25 @@ public Builder stepInfrastructureConfigurationDetails( this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param stepStorageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder stepStorageMountConfigurationDetailsList( + java.util.List + stepStorageMountConfigurationDetailsList) { + this.stepStorageMountConfigurationDetailsList = + stepStorageMountConfigurationDetailsList; + this.__explicitlySet__.add("stepStorageMountConfigurationDetailsList"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -74,7 +93,8 @@ public PipelineContainerStepUpdateDetails build() { this.stepName, this.description, this.stepConfigurationDetails, - this.stepInfrastructureConfigurationDetails); + this.stepInfrastructureConfigurationDetails, + this.stepStorageMountConfigurationDetailsList); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -96,6 +116,10 @@ public Builder copy(PipelineContainerStepUpdateDetails model) { this.stepInfrastructureConfigurationDetails( model.getStepInfrastructureConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepStorageMountConfigurationDetailsList")) { + this.stepStorageMountConfigurationDetailsList( + model.getStepStorageMountConfigurationDetailsList()); + } return this; } } @@ -114,9 +138,12 @@ public PipelineContainerStepUpdateDetails( String stepName, String description, PipelineStepConfigurationDetails stepConfigurationDetails, - PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails, + java.util.List + stepStorageMountConfigurationDetailsList) { super(stepName, description, stepConfigurationDetails); this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.stepStorageMountConfigurationDetailsList = stepStorageMountConfigurationDetailsList; } @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") @@ -126,6 +153,21 @@ public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigura return stepInfrastructureConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private final java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStepStorageMountConfigurationDetailsList() { + return stepStorageMountConfigurationDetailsList; + } + @Override public String toString() { return this.toString(true); @@ -143,6 +185,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", stepInfrastructureConfigurationDetails=") .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); + sb.append(", stepStorageMountConfigurationDetailsList=") + .append(String.valueOf(this.stepStorageMountConfigurationDetailsList)); sb.append(")"); return sb.toString(); } @@ -160,6 +204,9 @@ public boolean equals(Object o) { return java.util.Objects.equals( this.stepInfrastructureConfigurationDetails, other.stepInfrastructureConfigurationDetails) + && java.util.Objects.equals( + this.stepStorageMountConfigurationDetailsList, + other.stepStorageMountConfigurationDetailsList) && super.equals(other); } @@ -172,6 +219,11 @@ public int hashCode() { + (this.stepInfrastructureConfigurationDetails == null ? 43 : this.stepInfrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepStorageMountConfigurationDetailsList == null + ? 43 + : this.stepStorageMountConfigurationDetailsList.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepDetails.java index 8e6259f182b..d72176efca2 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepDetails.java @@ -74,6 +74,25 @@ public Builder stepInfrastructureConfigurationDetails( this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param stepStorageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder stepStorageMountConfigurationDetailsList( + java.util.List + stepStorageMountConfigurationDetailsList) { + this.stepStorageMountConfigurationDetailsList = + stepStorageMountConfigurationDetailsList; + this.__explicitlySet__.add("stepStorageMountConfigurationDetailsList"); + return this; + } /** A flag to indicate whether the artifact has been uploaded for this step or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") private Boolean isArtifactUploaded; @@ -101,6 +120,7 @@ public PipelineCustomScriptStepDetails build() { this.dependsOn, this.stepConfigurationDetails, this.stepInfrastructureConfigurationDetails, + this.stepStorageMountConfigurationDetailsList, this.isArtifactUploaded); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -126,6 +146,10 @@ public Builder copy(PipelineCustomScriptStepDetails model) { this.stepInfrastructureConfigurationDetails( model.getStepInfrastructureConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepStorageMountConfigurationDetailsList")) { + this.stepStorageMountConfigurationDetailsList( + model.getStepStorageMountConfigurationDetailsList()); + } if (model.wasPropertyExplicitlySet("isArtifactUploaded")) { this.isArtifactUploaded(model.getIsArtifactUploaded()); } @@ -149,9 +173,12 @@ public PipelineCustomScriptStepDetails( java.util.List dependsOn, PipelineStepConfigurationDetails stepConfigurationDetails, PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails, + java.util.List + stepStorageMountConfigurationDetailsList, Boolean isArtifactUploaded) { super(stepName, description, dependsOn, stepConfigurationDetails); this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.stepStorageMountConfigurationDetailsList = stepStorageMountConfigurationDetailsList; this.isArtifactUploaded = isArtifactUploaded; } @@ -162,6 +189,21 @@ public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigura return stepInfrastructureConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private final java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStepStorageMountConfigurationDetailsList() { + return stepStorageMountConfigurationDetailsList; + } + /** A flag to indicate whether the artifact has been uploaded for this step or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isArtifactUploaded") private final Boolean isArtifactUploaded; @@ -192,6 +234,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", stepInfrastructureConfigurationDetails=") .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); + sb.append(", stepStorageMountConfigurationDetailsList=") + .append(String.valueOf(this.stepStorageMountConfigurationDetailsList)); sb.append(", isArtifactUploaded=").append(String.valueOf(this.isArtifactUploaded)); sb.append(")"); return sb.toString(); @@ -210,6 +254,9 @@ public boolean equals(Object o) { return java.util.Objects.equals( this.stepInfrastructureConfigurationDetails, other.stepInfrastructureConfigurationDetails) + && java.util.Objects.equals( + this.stepStorageMountConfigurationDetailsList, + other.stepStorageMountConfigurationDetailsList) && java.util.Objects.equals(this.isArtifactUploaded, other.isArtifactUploaded) && super.equals(other); } @@ -223,6 +270,11 @@ public int hashCode() { + (this.stepInfrastructureConfigurationDetails == null ? 43 : this.stepInfrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepStorageMountConfigurationDetailsList == null + ? 43 + : this.stepStorageMountConfigurationDetailsList.hashCode()); result = (result * PRIME) + (this.isArtifactUploaded == null diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java index 7c194ebb762..d09232d5b83 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineCustomScriptStepUpdateDetails.java @@ -65,6 +65,25 @@ public Builder stepInfrastructureConfigurationDetails( this.__explicitlySet__.add("stepInfrastructureConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param stepStorageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder stepStorageMountConfigurationDetailsList( + java.util.List + stepStorageMountConfigurationDetailsList) { + this.stepStorageMountConfigurationDetailsList = + stepStorageMountConfigurationDetailsList; + this.__explicitlySet__.add("stepStorageMountConfigurationDetailsList"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -75,7 +94,8 @@ public PipelineCustomScriptStepUpdateDetails build() { this.stepName, this.description, this.stepConfigurationDetails, - this.stepInfrastructureConfigurationDetails); + this.stepInfrastructureConfigurationDetails, + this.stepStorageMountConfigurationDetailsList); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -97,6 +117,10 @@ public Builder copy(PipelineCustomScriptStepUpdateDetails model) { this.stepInfrastructureConfigurationDetails( model.getStepInfrastructureConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepStorageMountConfigurationDetailsList")) { + this.stepStorageMountConfigurationDetailsList( + model.getStepStorageMountConfigurationDetailsList()); + } return this; } } @@ -115,9 +139,12 @@ public PipelineCustomScriptStepUpdateDetails( String stepName, String description, PipelineStepConfigurationDetails stepConfigurationDetails, - PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails) { + PipelineInfrastructureConfigurationDetails stepInfrastructureConfigurationDetails, + java.util.List + stepStorageMountConfigurationDetailsList) { super(stepName, description, stepConfigurationDetails); this.stepInfrastructureConfigurationDetails = stepInfrastructureConfigurationDetails; + this.stepStorageMountConfigurationDetailsList = stepStorageMountConfigurationDetailsList; } @com.fasterxml.jackson.annotation.JsonProperty("stepInfrastructureConfigurationDetails") @@ -127,6 +154,21 @@ public PipelineInfrastructureConfigurationDetails getStepInfrastructureConfigura return stepInfrastructureConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("stepStorageMountConfigurationDetailsList") + private final java.util.List + stepStorageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStepStorageMountConfigurationDetailsList() { + return stepStorageMountConfigurationDetailsList; + } + @Override public String toString() { return this.toString(true); @@ -144,6 +186,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", stepInfrastructureConfigurationDetails=") .append(String.valueOf(this.stepInfrastructureConfigurationDetails)); + sb.append(", stepStorageMountConfigurationDetailsList=") + .append(String.valueOf(this.stepStorageMountConfigurationDetailsList)); sb.append(")"); return sb.toString(); } @@ -161,6 +205,9 @@ public boolean equals(Object o) { return java.util.Objects.equals( this.stepInfrastructureConfigurationDetails, other.stepInfrastructureConfigurationDetails) + && java.util.Objects.equals( + this.stepStorageMountConfigurationDetailsList, + other.stepStorageMountConfigurationDetailsList) && super.equals(other); } @@ -173,6 +220,11 @@ public int hashCode() { + (this.stepInfrastructureConfigurationDetails == null ? 43 : this.stepInfrastructureConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepStorageMountConfigurationDetailsList == null + ? 43 + : this.stepStorageMountConfigurationDetailsList.hashCode()); return result; } } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowConfigurationDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowConfigurationDetails.java new file mode 100644 index 00000000000..d6023935da3 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowConfigurationDetails.java @@ -0,0 +1,419 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The configuration details of a Dataflow step.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineDataflowConfigurationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineDataflowConfigurationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "configuration", + "driverShape", + "driverShapeConfigDetails", + "executorShape", + "executorShapeConfigDetails", + "numExecutors", + "warehouseBucketUri", + "logsBucketUri" + }) + public PipelineDataflowConfigurationDetails( + Object configuration, + String driverShape, + PipelineShapeConfigDetails driverShapeConfigDetails, + String executorShape, + PipelineShapeConfigDetails executorShapeConfigDetails, + Integer numExecutors, + String warehouseBucketUri, + String logsBucketUri) { + super(); + this.configuration = configuration; + this.driverShape = driverShape; + this.driverShapeConfigDetails = driverShapeConfigDetails; + this.executorShape = executorShape; + this.executorShapeConfigDetails = executorShapeConfigDetails; + this.numExecutors = numExecutors; + this.warehouseBucketUri = warehouseBucketUri; + this.logsBucketUri = logsBucketUri; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The Spark configuration passed to the running process. */ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private Object configuration; + + /** + * The Spark configuration passed to the running process. + * + * @param configuration the value to set + * @return this builder + */ + public Builder configuration(Object configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + return this; + } + /** The VM shape for the driver. */ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + private String driverShape; + + /** + * The VM shape for the driver. + * + * @param driverShape the value to set + * @return this builder + */ + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("driverShapeConfigDetails") + private PipelineShapeConfigDetails driverShapeConfigDetails; + + public Builder driverShapeConfigDetails( + PipelineShapeConfigDetails driverShapeConfigDetails) { + this.driverShapeConfigDetails = driverShapeConfigDetails; + this.__explicitlySet__.add("driverShapeConfigDetails"); + return this; + } + /** The VM shape for the executors. */ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + /** + * The VM shape for the executors. + * + * @param executorShape the value to set + * @return this builder + */ + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShapeConfigDetails") + private PipelineShapeConfigDetails executorShapeConfigDetails; + + public Builder executorShapeConfigDetails( + PipelineShapeConfigDetails executorShapeConfigDetails) { + this.executorShapeConfigDetails = executorShapeConfigDetails; + this.__explicitlySet__.add("executorShapeConfigDetails"); + return this; + } + /** The number of executor VMs requested. */ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + /** + * The number of executor VMs requested. + * + * @param numExecutors the value to set + * @return this builder + */ + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse + * directory for BATCH SQL runs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private String warehouseBucketUri; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse + * directory for BATCH SQL runs. + * + * @param warehouseBucketUri the value to set + * @return this builder + */ + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be + * uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + private String logsBucketUri; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be + * uploaded. + * + * @param logsBucketUri the value to set + * @return this builder + */ + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineDataflowConfigurationDetails build() { + PipelineDataflowConfigurationDetails model = + new PipelineDataflowConfigurationDetails( + this.configuration, + this.driverShape, + this.driverShapeConfigDetails, + this.executorShape, + this.executorShapeConfigDetails, + this.numExecutors, + this.warehouseBucketUri, + this.logsBucketUri); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineDataflowConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("configuration")) { + this.configuration(model.getConfiguration()); + } + if (model.wasPropertyExplicitlySet("driverShape")) { + this.driverShape(model.getDriverShape()); + } + if (model.wasPropertyExplicitlySet("driverShapeConfigDetails")) { + this.driverShapeConfigDetails(model.getDriverShapeConfigDetails()); + } + if (model.wasPropertyExplicitlySet("executorShape")) { + this.executorShape(model.getExecutorShape()); + } + if (model.wasPropertyExplicitlySet("executorShapeConfigDetails")) { + this.executorShapeConfigDetails(model.getExecutorShapeConfigDetails()); + } + if (model.wasPropertyExplicitlySet("numExecutors")) { + this.numExecutors(model.getNumExecutors()); + } + if (model.wasPropertyExplicitlySet("warehouseBucketUri")) { + this.warehouseBucketUri(model.getWarehouseBucketUri()); + } + if (model.wasPropertyExplicitlySet("logsBucketUri")) { + this.logsBucketUri(model.getLogsBucketUri()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The Spark configuration passed to the running process. */ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private final Object configuration; + + /** + * The Spark configuration passed to the running process. + * + * @return the value + */ + public Object getConfiguration() { + return configuration; + } + + /** The VM shape for the driver. */ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + private final String driverShape; + + /** + * The VM shape for the driver. + * + * @return the value + */ + public String getDriverShape() { + return driverShape; + } + + @com.fasterxml.jackson.annotation.JsonProperty("driverShapeConfigDetails") + private final PipelineShapeConfigDetails driverShapeConfigDetails; + + public PipelineShapeConfigDetails getDriverShapeConfigDetails() { + return driverShapeConfigDetails; + } + + /** The VM shape for the executors. */ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private final String executorShape; + + /** + * The VM shape for the executors. + * + * @return the value + */ + public String getExecutorShape() { + return executorShape; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShapeConfigDetails") + private final PipelineShapeConfigDetails executorShapeConfigDetails; + + public PipelineShapeConfigDetails getExecutorShapeConfigDetails() { + return executorShapeConfigDetails; + } + + /** The number of executor VMs requested. */ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private final Integer numExecutors; + + /** + * The number of executor VMs requested. + * + * @return the value + */ + public Integer getNumExecutors() { + return numExecutors; + } + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + */ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private final String warehouseBucketUri; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * + * @return the value + */ + public String getWarehouseBucketUri() { + return warehouseBucketUri; + } + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + private final String logsBucketUri; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * + * @return the value + */ + public String getLogsBucketUri() { + return logsBucketUri; + } + + @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("PipelineDataflowConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("configuration=").append(String.valueOf(this.configuration)); + sb.append(", driverShape=").append(String.valueOf(this.driverShape)); + sb.append(", driverShapeConfigDetails=") + .append(String.valueOf(this.driverShapeConfigDetails)); + sb.append(", executorShape=").append(String.valueOf(this.executorShape)); + sb.append(", executorShapeConfigDetails=") + .append(String.valueOf(this.executorShapeConfigDetails)); + sb.append(", numExecutors=").append(String.valueOf(this.numExecutors)); + sb.append(", warehouseBucketUri=").append(String.valueOf(this.warehouseBucketUri)); + sb.append(", logsBucketUri=").append(String.valueOf(this.logsBucketUri)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineDataflowConfigurationDetails)) { + return false; + } + + PipelineDataflowConfigurationDetails other = (PipelineDataflowConfigurationDetails) o; + return java.util.Objects.equals(this.configuration, other.configuration) + && java.util.Objects.equals(this.driverShape, other.driverShape) + && java.util.Objects.equals( + this.driverShapeConfigDetails, other.driverShapeConfigDetails) + && java.util.Objects.equals(this.executorShape, other.executorShape) + && java.util.Objects.equals( + this.executorShapeConfigDetails, other.executorShapeConfigDetails) + && java.util.Objects.equals(this.numExecutors, other.numExecutors) + && java.util.Objects.equals(this.warehouseBucketUri, other.warehouseBucketUri) + && java.util.Objects.equals(this.logsBucketUri, other.logsBucketUri) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.configuration == null ? 43 : this.configuration.hashCode()); + result = (result * PRIME) + (this.driverShape == null ? 43 : this.driverShape.hashCode()); + result = + (result * PRIME) + + (this.driverShapeConfigDetails == null + ? 43 + : this.driverShapeConfigDetails.hashCode()); + result = + (result * PRIME) + + (this.executorShape == null ? 43 : this.executorShape.hashCode()); + result = + (result * PRIME) + + (this.executorShapeConfigDetails == null + ? 43 + : this.executorShapeConfigDetails.hashCode()); + result = (result * PRIME) + (this.numExecutors == null ? 43 : this.numExecutors.hashCode()); + result = + (result * PRIME) + + (this.warehouseBucketUri == null + ? 43 + : this.warehouseBucketUri.hashCode()); + result = + (result * PRIME) + + (this.logsBucketUri == null ? 43 : this.logsBucketUri.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepDetails.java new file mode 100644 index 00000000000..ab5d1938873 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepDetails.java @@ -0,0 +1,237 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The type of step where the dataflow application is pre-created by the user.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineDataflowStepDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineDataflowStepDetails extends PipelineStepDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + 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("dependsOn") + private java.util.List dependsOn; + + public Builder dependsOn(java.util.List dependsOn) { + this.dependsOn = dependsOn; + this.__explicitlySet__.add("dependsOn"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepConfigurationDetails") + private PipelineStepConfigurationDetails stepConfigurationDetails; + + public Builder stepConfigurationDetails( + PipelineStepConfigurationDetails stepConfigurationDetails) { + this.stepConfigurationDetails = stepConfigurationDetails; + this.__explicitlySet__.add("stepConfigurationDetails"); + return this; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the dataflow application to be used as a step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + private String applicationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the dataflow application to be used as a step. + * + * @param applicationId the value to set + * @return this builder + */ + public Builder applicationId(String applicationId) { + this.applicationId = applicationId; + this.__explicitlySet__.add("applicationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public Builder stepDataflowConfigurationDetails( + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; + this.__explicitlySet__.add("stepDataflowConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineDataflowStepDetails build() { + PipelineDataflowStepDetails model = + new PipelineDataflowStepDetails( + this.stepName, + this.description, + this.dependsOn, + this.stepConfigurationDetails, + this.applicationId, + this.stepDataflowConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineDataflowStepDetails model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dependsOn")) { + this.dependsOn(model.getDependsOn()); + } + if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { + this.stepConfigurationDetails(model.getStepConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("applicationId")) { + this.applicationId(model.getApplicationId()); + } + if (model.wasPropertyExplicitlySet("stepDataflowConfigurationDetails")) { + this.stepDataflowConfigurationDetails(model.getStepDataflowConfigurationDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineDataflowStepDetails( + String stepName, + String description, + java.util.List dependsOn, + PipelineStepConfigurationDetails stepConfigurationDetails, + String applicationId, + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { + super(stepName, description, dependsOn, stepConfigurationDetails); + this.applicationId = applicationId; + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the dataflow application to be used as a step. + */ + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + private final String applicationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the dataflow application to be used as a step. + * + * @return the value + */ + public String getApplicationId() { + return applicationId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private final PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public PipelineDataflowConfigurationDetails getStepDataflowConfigurationDetails() { + return stepDataflowConfigurationDetails; + } + + @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("PipelineDataflowStepDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", applicationId=").append(String.valueOf(this.applicationId)); + sb.append(", stepDataflowConfigurationDetails=") + .append(String.valueOf(this.stepDataflowConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineDataflowStepDetails)) { + return false; + } + + PipelineDataflowStepDetails other = (PipelineDataflowStepDetails) o; + return java.util.Objects.equals(this.applicationId, other.applicationId) + && java.util.Objects.equals( + this.stepDataflowConfigurationDetails, + other.stepDataflowConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.applicationId == null ? 43 : this.applicationId.hashCode()); + result = + (result * PRIME) + + (this.stepDataflowConfigurationDetails == null + ? 43 + : this.stepDataflowConfigurationDetails.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepRun.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepRun.java new file mode 100644 index 00000000000..106feda14dd --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepRun.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * Detail of each Dataflow Step 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineDataflowStepRun.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineDataflowStepRun extends PipelineStepRun { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + 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; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the dataflow run triggered for this step run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataflowRunId") + private String dataflowRunId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the dataflow run triggered for this step run. + * + * @param dataflowRunId the value to set + * @return this builder + */ + public Builder dataflowRunId(String dataflowRunId) { + this.dataflowRunId = dataflowRunId; + this.__explicitlySet__.add("dataflowRunId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineDataflowStepRun build() { + PipelineDataflowStepRun model = + new PipelineDataflowStepRun( + this.timeStarted, + this.timeFinished, + this.stepName, + this.lifecycleState, + this.lifecycleDetails, + this.dataflowRunId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineDataflowStepRun model) { + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("dataflowRunId")) { + this.dataflowRunId(model.getDataflowRunId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineDataflowStepRun( + java.util.Date timeStarted, + java.util.Date timeFinished, + String stepName, + LifecycleState lifecycleState, + String lifecycleDetails, + String dataflowRunId) { + super(timeStarted, timeFinished, stepName, lifecycleState, lifecycleDetails); + this.dataflowRunId = dataflowRunId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the dataflow run triggered for this step run. + */ + @com.fasterxml.jackson.annotation.JsonProperty("dataflowRunId") + private final String dataflowRunId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the dataflow run triggered for this step run. + * + * @return the value + */ + public String getDataflowRunId() { + return dataflowRunId; + } + + @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("PipelineDataflowStepRun("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataflowRunId=").append(String.valueOf(this.dataflowRunId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineDataflowStepRun)) { + return false; + } + + PipelineDataflowStepRun other = (PipelineDataflowStepRun) o; + return java.util.Objects.equals(this.dataflowRunId, other.dataflowRunId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataflowRunId == null ? 43 : this.dataflowRunId.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepUpdateDetails.java new file mode 100644 index 00000000000..16e0bd0b884 --- /dev/null +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineDataflowStepUpdateDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datascience.model; + +/** + * The type of step where the dataflow application is pre-created by the user.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PipelineDataflowStepUpdateDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "stepType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PipelineDataflowStepUpdateDetails extends PipelineStepUpdateDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("stepName") + private String stepName; + + public Builder stepName(String stepName) { + this.stepName = stepName; + this.__explicitlySet__.add("stepName"); + 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("stepConfigurationDetails") + private PipelineStepConfigurationDetails stepConfigurationDetails; + + public Builder stepConfigurationDetails( + PipelineStepConfigurationDetails stepConfigurationDetails) { + this.stepConfigurationDetails = stepConfigurationDetails; + this.__explicitlySet__.add("stepConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public Builder stepDataflowConfigurationDetails( + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; + this.__explicitlySet__.add("stepDataflowConfigurationDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PipelineDataflowStepUpdateDetails build() { + PipelineDataflowStepUpdateDetails model = + new PipelineDataflowStepUpdateDetails( + this.stepName, + this.description, + this.stepConfigurationDetails, + this.stepDataflowConfigurationDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PipelineDataflowStepUpdateDetails model) { + if (model.wasPropertyExplicitlySet("stepName")) { + this.stepName(model.getStepName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("stepConfigurationDetails")) { + this.stepConfigurationDetails(model.getStepConfigurationDetails()); + } + if (model.wasPropertyExplicitlySet("stepDataflowConfigurationDetails")) { + this.stepDataflowConfigurationDetails(model.getStepDataflowConfigurationDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PipelineDataflowStepUpdateDetails( + String stepName, + String description, + PipelineStepConfigurationDetails stepConfigurationDetails, + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { + super(stepName, description, stepConfigurationDetails); + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private final PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public PipelineDataflowConfigurationDetails getStepDataflowConfigurationDetails() { + return stepDataflowConfigurationDetails; + } + + @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("PipelineDataflowStepUpdateDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", stepDataflowConfigurationDetails=") + .append(String.valueOf(this.stepDataflowConfigurationDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PipelineDataflowStepUpdateDetails)) { + return false; + } + + PipelineDataflowStepUpdateDetails other = (PipelineDataflowStepUpdateDetails) o; + return java.util.Objects.equals( + this.stepDataflowConfigurationDetails, + other.stepDataflowConfigurationDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.stepDataflowConfigurationDetails == null + ? 43 + : this.stepDataflowConfigurationDetails.hashCode()); + return result; + } +} diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java index 387064b3099..8efe26c9b22 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepDetails.java @@ -28,6 +28,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineMLJobStepDetails.class, name = "ML_JOB"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineDataflowStepDetails.class, + name = "DATAFLOW"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineCustomScriptStepDetails.class, name = "CUSTOM_SCRIPT") @@ -167,6 +170,7 @@ public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), Container("CONTAINER"), + Dataflow("DATAFLOW"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java index aedd230dd4c..03288e5c24d 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepOverrideDetails.java @@ -26,16 +26,19 @@ public final class PipelineStepOverrideDetails @java.beans.ConstructorProperties({ "stepName", "stepConfigurationDetails", - "stepContainerConfigurationDetails" + "stepContainerConfigurationDetails", + "stepDataflowConfigurationDetails" }) public PipelineStepOverrideDetails( String stepName, PipelineStepConfigurationDetails stepConfigurationDetails, - PipelineContainerConfigurationDetails stepContainerConfigurationDetails) { + PipelineContainerConfigurationDetails stepContainerConfigurationDetails, + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { super(); this.stepName = stepName; this.stepConfigurationDetails = stepConfigurationDetails; this.stepContainerConfigurationDetails = stepContainerConfigurationDetails; + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -76,6 +79,16 @@ public Builder stepContainerConfigurationDetails( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public Builder stepDataflowConfigurationDetails( + PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails) { + this.stepDataflowConfigurationDetails = stepDataflowConfigurationDetails; + this.__explicitlySet__.add("stepDataflowConfigurationDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -84,7 +97,8 @@ public PipelineStepOverrideDetails build() { new PipelineStepOverrideDetails( this.stepName, this.stepConfigurationDetails, - this.stepContainerConfigurationDetails); + this.stepContainerConfigurationDetails, + this.stepDataflowConfigurationDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -103,6 +117,9 @@ public Builder copy(PipelineStepOverrideDetails model) { this.stepContainerConfigurationDetails( model.getStepContainerConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("stepDataflowConfigurationDetails")) { + this.stepDataflowConfigurationDetails(model.getStepDataflowConfigurationDetails()); + } return this; } } @@ -143,6 +160,13 @@ public PipelineContainerConfigurationDetails getStepContainerConfigurationDetail return stepContainerConfigurationDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("stepDataflowConfigurationDetails") + private final PipelineDataflowConfigurationDetails stepDataflowConfigurationDetails; + + public PipelineDataflowConfigurationDetails getStepDataflowConfigurationDetails() { + return stepDataflowConfigurationDetails; + } + @Override public String toString() { return this.toString(true); @@ -163,6 +187,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.stepConfigurationDetails)); sb.append(", stepContainerConfigurationDetails=") .append(String.valueOf(this.stepContainerConfigurationDetails)); + sb.append(", stepDataflowConfigurationDetails=") + .append(String.valueOf(this.stepDataflowConfigurationDetails)); sb.append(")"); return sb.toString(); } @@ -183,6 +209,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.stepContainerConfigurationDetails, other.stepContainerConfigurationDetails) + && java.util.Objects.equals( + this.stepDataflowConfigurationDetails, + other.stepDataflowConfigurationDetails) && super.equals(other); } @@ -201,6 +230,11 @@ public int hashCode() { + (this.stepContainerConfigurationDetails == null ? 43 : this.stepContainerConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.stepDataflowConfigurationDetails == null + ? 43 + : this.stepDataflowConfigurationDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java index 49dffd09050..55564402e4e 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepRun.java @@ -30,7 +30,10 @@ name = "CUSTOM_SCRIPT"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineMLJobStepRun.class, - name = "ML_JOB") + name = "ML_JOB"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineDataflowStepRun.class, + name = "DATAFLOW") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -247,6 +250,7 @@ public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), Container("CONTAINER"), + Dataflow("DATAFLOW"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java index 115a1c52bf7..0612a4e76af 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/PipelineStepUpdateDetails.java @@ -22,6 +22,9 @@ property = "stepType", defaultImpl = PipelineStepUpdateDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PipelineDataflowStepUpdateDetails.class, + name = "DATAFLOW"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = PipelineMLJobStepUpdateDetails.class, name = "ML_JOB"), @@ -141,6 +144,7 @@ public enum StepType implements com.oracle.bmc.http.internal.BmcEnum { MlJob("ML_JOB"), CustomScript("CUSTOM_SCRIPT"), Container("CONTAINER"), + Dataflow("DATAFLOW"), ; private final String value; diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java index 1e2ecec1afd..c2f5fba43e1 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/model/UpdatePipelineDetails.java @@ -29,6 +29,7 @@ public final class UpdatePipelineDetails "configurationDetails", "infrastructureConfigurationDetails", "logConfigurationDetails", + "storageMountConfigurationDetailsList", "stepDetails", "freeformTags", "definedTags" @@ -39,6 +40,7 @@ public UpdatePipelineDetails( PipelineConfigurationDetails configurationDetails, PipelineInfrastructureConfigurationDetails infrastructureConfigurationDetails, PipelineLogConfigurationDetails logConfigurationDetails, + java.util.List storageMountConfigurationDetailsList, java.util.List stepDetails, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -48,6 +50,7 @@ public UpdatePipelineDetails( this.configurationDetails = configurationDetails; this.infrastructureConfigurationDetails = infrastructureConfigurationDetails; this.logConfigurationDetails = logConfigurationDetails; + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; this.stepDetails = stepDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -114,6 +117,24 @@ public Builder logConfigurationDetails( this.__explicitlySet__.add("logConfigurationDetails"); return this; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @param storageMountConfigurationDetailsList the value to set + * @return this builder + */ + public Builder storageMountConfigurationDetailsList( + java.util.List + storageMountConfigurationDetailsList) { + this.storageMountConfigurationDetailsList = storageMountConfigurationDetailsList; + this.__explicitlySet__.add("storageMountConfigurationDetailsList"); + return this; + } /** * Array of update details for each step. Only step configurations and step infrastructure * configurations are allowed to be updated. @@ -190,6 +211,7 @@ public UpdatePipelineDetails build() { this.configurationDetails, this.infrastructureConfigurationDetails, this.logConfigurationDetails, + this.storageMountConfigurationDetailsList, this.stepDetails, this.freeformTags, this.definedTags); @@ -217,6 +239,10 @@ public Builder copy(UpdatePipelineDetails model) { if (model.wasPropertyExplicitlySet("logConfigurationDetails")) { this.logConfigurationDetails(model.getLogConfigurationDetails()); } + if (model.wasPropertyExplicitlySet("storageMountConfigurationDetailsList")) { + this.storageMountConfigurationDetailsList( + model.getStorageMountConfigurationDetailsList()); + } if (model.wasPropertyExplicitlySet("stepDetails")) { this.stepDetails(model.getStepDetails()); } @@ -286,6 +312,21 @@ public PipelineLogConfigurationDetails getLogConfigurationDetails() { return logConfigurationDetails; } + /** The storage mount details to mount to the instance running the pipeline step. */ + @com.fasterxml.jackson.annotation.JsonProperty("storageMountConfigurationDetailsList") + private final java.util.List + storageMountConfigurationDetailsList; + + /** + * The storage mount details to mount to the instance running the pipeline step. + * + * @return the value + */ + public java.util.List + getStorageMountConfigurationDetailsList() { + return storageMountConfigurationDetailsList; + } + /** * Array of update details for each step. Only step configurations and step infrastructure * configurations are allowed to be updated. @@ -365,6 +406,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.infrastructureConfigurationDetails)); sb.append(", logConfigurationDetails=") .append(String.valueOf(this.logConfigurationDetails)); + sb.append(", storageMountConfigurationDetailsList=") + .append(String.valueOf(this.storageMountConfigurationDetailsList)); sb.append(", stepDetails=").append(String.valueOf(this.stepDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -390,6 +433,9 @@ public boolean equals(Object o) { other.infrastructureConfigurationDetails) && java.util.Objects.equals( this.logConfigurationDetails, other.logConfigurationDetails) + && java.util.Objects.equals( + this.storageMountConfigurationDetailsList, + other.storageMountConfigurationDetailsList) && java.util.Objects.equals(this.stepDetails, other.stepDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -417,6 +463,11 @@ public int hashCode() { + (this.logConfigurationDetails == null ? 43 : this.logConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.storageMountConfigurationDetailsList == null + ? 43 + : this.storageMountConfigurationDetailsList.hashCode()); result = (result * PRIME) + (this.stepDetails == null ? 43 : this.stepDetails.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-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json b/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json index 2410a2609fa..6d1b42f97aa 100644 --- a/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json +++ b/bmc-datascience/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datascience/reflect-config.json @@ -1534,6 +1534,62 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowConfigurationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowConfigurationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepRun", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepRun$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepUpdateDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datascience.model.PipelineDataflowStepUpdateDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datascience.model.PipelineDefaultConfigurationDetails", diff --git a/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties b/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties index 16a6e13339d..12cc5f2b07a 100644 --- a/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties +++ b/bmc-datascience/src/main/resources/com/oracle/bmc/datascience/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190101") \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml new file mode 100644 index 00000000000..6e55edbd26e --- /dev/null +++ b/bmc-dblm/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 3.58.0 + ../pom.xml + + oci-java-sdk-dblm + Oracle Cloud Infrastructure SDK - Dblm + This project contains the SDK used for Oracle Cloud Infrastructure Dblm + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 3.58.0 + + + \ No newline at end of file diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagement.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagement.java new file mode 100644 index 00000000000..6562e887952 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagement.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; + +/** + * A description of the Dblm 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. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public interface DbLifeCycleManagement 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); + + /** + * Creates a VulnerabilityScan. + * + * @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 + * CreateVulnerabilityScan API. + */ + CreateVulnerabilityScanResponse createVulnerabilityScan(CreateVulnerabilityScanRequest request); + + /** + * Gets a Vulnerability + * + * @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 GetVulnerability + * API. + */ + GetVulnerabilityResponse getVulnerability(GetVulnerabilityRequest request); + + /** + * Gets information about a VulnerabilityScan. + * + * @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 + * GetVulnerabilityScan API. + */ + GetVulnerabilityScanResponse getVulnerabilityScan(GetVulnerabilityScanRequest request); + + /** + * Gets details of the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. 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); + + /** + * Gets an AggregatedVulnerabilityData + * + * @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 + * ListAggregatedVulnerabilityData API. + */ + ListAggregatedVulnerabilityDataResponse listAggregatedVulnerabilityData( + ListAggregatedVulnerabilityDataRequest request); + + /** + * List of notifications + * + * @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 ListNotifications + * API. + */ + ListNotificationsResponse listNotifications(ListNotificationsRequest request); + + /** + * Gets the vulnerabilities summary list + * + * @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 ListVulnerabilities + * API. + */ + ListVulnerabilitiesResponse listVulnerabilities(ListVulnerabilitiesRequest request); + + /** + * Lists the summary of vulnerable and clean resourcees + * + * @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 + * ListVulnerabilityResources API. + */ + ListVulnerabilityResourcesResponse listVulnerabilityResources( + ListVulnerabilityResourcesRequest request); + + /** + * Gets a list of VulnerabilityScans. + * + * @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 + * ListVulnerabilityScans API. + */ + ListVulnerabilityScansResponse listVulnerabilityScans(ListVulnerabilityScansRequest request); + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. 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); + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. 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); + + /** + * Lists the work requests in a 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); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DbLifeCycleManagementWaiters 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. + */ + DbLifeCycleManagementPaginators getPaginators(); +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsync.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsync.java new file mode 100644 index 00000000000..e72b39ac879 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsync.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; + +/** A description of the Dblm API */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public interface DbLifeCycleManagementAsync 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); + + /** + * Creates a VulnerabilityScan. + * + * @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 createVulnerabilityScan( + CreateVulnerabilityScanRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateVulnerabilityScanRequest, CreateVulnerabilityScanResponse> + handler); + + /** + * Gets a Vulnerability + * + * @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 getVulnerability( + GetVulnerabilityRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets information about a VulnerabilityScan. + * + * @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 getVulnerabilityScan( + GetVulnerabilityScanRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetVulnerabilityScanRequest, GetVulnerabilityScanResponse> + handler); + + /** + * Gets details of the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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); + + /** + * Gets an AggregatedVulnerabilityData + * + * @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 + listAggregatedVulnerabilityData( + ListAggregatedVulnerabilityDataRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAggregatedVulnerabilityDataRequest, + ListAggregatedVulnerabilityDataResponse> + handler); + + /** + * List of notifications + * + * @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 listNotifications( + ListNotificationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListNotificationsRequest, ListNotificationsResponse> + handler); + + /** + * Gets the vulnerabilities summary list + * + * @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 listVulnerabilities( + ListVulnerabilitiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilitiesRequest, ListVulnerabilitiesResponse> + handler); + + /** + * Lists the summary of vulnerable and clean resourcees + * + * @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 listVulnerabilityResources( + ListVulnerabilityResourcesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilityResourcesRequest, ListVulnerabilityResourcesResponse> + handler); + + /** + * Gets a list of VulnerabilityScans. + * + * @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 listVulnerabilityScans( + ListVulnerabilityScansRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilityScansRequest, ListVulnerabilityScansResponse> + handler); + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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); + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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); + + /** + * Lists the work requests in a 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); +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsyncClient.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsyncClient.java new file mode 100644 index 00000000000..7d2a918e1c5 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementAsyncClient.java @@ -0,0 +1,681 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for DbLifeCycleManagement service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class DbLifeCycleManagementAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements DbLifeCycleManagementAsync { + /** Service instance for DbLifeCycleManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DBLIFECYCLEMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dbmgmt.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DbLifeCycleManagementAsyncClient.class); + + DbLifeCycleManagementAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, DbLifeCycleManagementAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "dblm"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DbLifeCycleManagementAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DbLifeCycleManagementAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future createVulnerabilityScan( + CreateVulnerabilityScanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVulnerabilityScanRequest, CreateVulnerabilityScanResponse> + handler) { + Objects.requireNonNull( + request.getCreateVulnerabilityScanDetails(), + "createVulnerabilityScanDetails is required"); + + return clientCall(request, CreateVulnerabilityScanResponse::builder) + .logger(LOG, "createVulnerabilityScan") + .serviceDetails("DbLifeCycleManagement", "CreateVulnerabilityScan", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVulnerabilityScanRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScan.class, + CreateVulnerabilityScanResponse.Builder::vulnerabilityScan) + .handleResponseHeaderString( + "location", CreateVulnerabilityScanResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateVulnerabilityScanResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateVulnerabilityScanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateVulnerabilityScanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVulnerabilityScanResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getVulnerability( + GetVulnerabilityRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVulnerabilityRequest, GetVulnerabilityResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, GetVulnerabilityResponse::builder) + .logger(LOG, "getVulnerability") + .serviceDetails("DbLifeCycleManagement", "GetVulnerability", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVulnerabilityRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.DblmVulnerability.class, + GetVulnerabilityResponse.Builder::dblmVulnerability) + .handleResponseHeaderString("etag", GetVulnerabilityResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVulnerabilityResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getVulnerabilityScan( + GetVulnerabilityScanRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetVulnerabilityScanRequest, GetVulnerabilityScanResponse> + handler) { + + Validate.notBlank( + request.getVulnerabilityScanId(), "vulnerabilityScanId must not be blank"); + + return clientCall(request, GetVulnerabilityScanResponse::builder) + .logger(LOG, "getVulnerabilityScan") + .serviceDetails("DbLifeCycleManagement", "GetVulnerabilityScan", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVulnerabilityScanRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .appendPathParam(request.getVulnerabilityScanId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScan.class, + GetVulnerabilityScanResponse.Builder::vulnerabilityScan) + .handleResponseHeaderString("etag", GetVulnerabilityScanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVulnerabilityScanResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("DbLifeCycleManagement", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listAggregatedVulnerabilityData( + ListAggregatedVulnerabilityDataRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAggregatedVulnerabilityDataRequest, + ListAggregatedVulnerabilityDataResponse> + handler) { + + return clientCall(request, ListAggregatedVulnerabilityDataResponse::builder) + .logger(LOG, "listAggregatedVulnerabilityData") + .serviceDetails("DbLifeCycleManagement", "ListAggregatedVulnerabilityData", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAggregatedVulnerabilityDataRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("aggregatedVulnerabilityData") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("timeCreatedGreaterThan", request.getTimeCreatedGreaterThan()) + .appendQueryParam("timeEndedLessThan", request.getTimeEndedLessThan()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection.class, + ListAggregatedVulnerabilityDataResponse.Builder + ::aggregatedVulnerabilityCollection) + .handleResponseHeaderString( + "etag", ListAggregatedVulnerabilityDataResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ListAggregatedVulnerabilityDataResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listNotifications( + ListNotificationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListNotificationsRequest, ListNotificationsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListNotificationsResponse::builder) + .logger(LOG, "listNotifications") + .serviceDetails("DbLifeCycleManagement", "ListNotifications", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNotificationsRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("notifications") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.NotificationCollection.class, + ListNotificationsResponse.Builder::notificationCollection) + .handleResponseHeaderString( + "opc-next-page", ListNotificationsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListNotificationsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listVulnerabilities( + ListVulnerabilitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilitiesRequest, ListVulnerabilitiesResponse> + handler) { + + return clientCall(request, ListVulnerabilitiesResponse::builder) + .logger(LOG, "listVulnerabilities") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilitiesRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("vulnerabilities") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendListQueryParam( + "severityType", + request.getSeverityType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("searchBy", request.getSearchBy()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityCollection.class, + ListVulnerabilitiesResponse.Builder::vulnerabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilitiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listVulnerabilityResources( + ListVulnerabilityResourcesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilityResourcesRequest, + ListVulnerabilityResourcesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVulnerabilityResourcesResponse::builder) + .logger(LOG, "listVulnerabilityResources") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilityResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilityResourcesRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("resources") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendQueryParam("cveId", request.getCveId()) + .appendListQueryParam( + "severityType", + request.getSeverityType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "patchRecommendation", + request.getPatchRecommendation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityResourceCollection.class, + ListVulnerabilityResourcesResponse.Builder::vulnerabilityResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilityResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilityResourcesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listVulnerabilityScans( + ListVulnerabilityScansRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListVulnerabilityScansRequest, ListVulnerabilityScansResponse> + handler) { + + return clientCall(request, ListVulnerabilityScansResponse::builder) + .logger(LOG, "listVulnerabilityScans") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilityScans", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilityScansRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .appendQueryParam("vulnerabilityScanId", request.getVulnerabilityScanId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("timeCreatedGreaterThan", request.getTimeCreatedGreaterThan()) + .appendQueryParam("timeEndedLessThan", request.getTimeEndedLessThan()) + .appendListQueryParam( + "vulnerabilityScanStatus", + request.getVulnerabilityScanStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("vulnerabilityScanType", request.getVulnerabilityScanType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScanCollection.class, + ListVulnerabilityScansResponse.Builder::vulnerabilityScanCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilityScansResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilityScansResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementClient.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementClient.java new file mode 100644 index 00000000000..57a70dec245 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementClient.java @@ -0,0 +1,730 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class DbLifeCycleManagementClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements DbLifeCycleManagement { + /** Service instance for DbLifeCycleManagement. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DBLIFECYCLEMANAGEMENT") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dbmgmt.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DbLifeCycleManagementClient.class); + + private final DbLifeCycleManagementWaiters waiters; + + private final DbLifeCycleManagementPaginators paginators; + + DbLifeCycleManagementClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + + 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("DbLifeCycleManagement-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DbLifeCycleManagementWaiters(executorService, this); + + this.paginators = new DbLifeCycleManagementPaginators(this); + } + + /** + * 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< + Builder, DbLifeCycleManagementClient> { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "dblm"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + 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 DbLifeCycleManagementClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DbLifeCycleManagementClient( + this, authenticationDetailsProvider, executorService); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public CreateVulnerabilityScanResponse createVulnerabilityScan( + CreateVulnerabilityScanRequest request) { + Objects.requireNonNull( + request.getCreateVulnerabilityScanDetails(), + "createVulnerabilityScanDetails is required"); + + return clientCall(request, CreateVulnerabilityScanResponse::builder) + .logger(LOG, "createVulnerabilityScan") + .serviceDetails("DbLifeCycleManagement", "CreateVulnerabilityScan", "") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CreateVulnerabilityScanRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScan.class, + CreateVulnerabilityScanResponse.Builder::vulnerabilityScan) + .handleResponseHeaderString( + "location", CreateVulnerabilityScanResponse.Builder::location) + .handleResponseHeaderString( + "content-location", + CreateVulnerabilityScanResponse.Builder::contentLocation) + .handleResponseHeaderString("etag", CreateVulnerabilityScanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-work-request-id", + CreateVulnerabilityScanResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", CreateVulnerabilityScanResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetVulnerabilityResponse getVulnerability(GetVulnerabilityRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, GetVulnerabilityResponse::builder) + .logger(LOG, "getVulnerability") + .serviceDetails("DbLifeCycleManagement", "GetVulnerability", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVulnerabilityRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.DblmVulnerability.class, + GetVulnerabilityResponse.Builder::dblmVulnerability) + .handleResponseHeaderString("etag", GetVulnerabilityResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVulnerabilityResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetVulnerabilityScanResponse getVulnerabilityScan(GetVulnerabilityScanRequest request) { + + Validate.notBlank( + request.getVulnerabilityScanId(), "vulnerabilityScanId must not be blank"); + + return clientCall(request, GetVulnerabilityScanResponse::builder) + .logger(LOG, "getVulnerabilityScan") + .serviceDetails("DbLifeCycleManagement", "GetVulnerabilityScan", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetVulnerabilityScanRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .appendPathParam(request.getVulnerabilityScanId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScan.class, + GetVulnerabilityScanResponse.Builder::vulnerabilityScan) + .handleResponseHeaderString("etag", GetVulnerabilityScanResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetVulnerabilityScanResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, GetWorkRequestResponse::builder) + .logger(LOG, "getWorkRequest") + .serviceDetails("DbLifeCycleManagement", "GetWorkRequest", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetWorkRequestRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.WorkRequest.class, + GetWorkRequestResponse.Builder::workRequest) + .handleResponseHeaderString("etag", GetWorkRequestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) + .handleResponseHeaderInteger( + "retry-after", GetWorkRequestResponse.Builder::retryAfter) + .callSync(); + } + + @Override + public ListAggregatedVulnerabilityDataResponse listAggregatedVulnerabilityData( + ListAggregatedVulnerabilityDataRequest request) { + + return clientCall(request, ListAggregatedVulnerabilityDataResponse::builder) + .logger(LOG, "listAggregatedVulnerabilityData") + .serviceDetails("DbLifeCycleManagement", "ListAggregatedVulnerabilityData", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAggregatedVulnerabilityDataRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("aggregatedVulnerabilityData") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("timeCreatedGreaterThan", request.getTimeCreatedGreaterThan()) + .appendQueryParam("timeEndedLessThan", request.getTimeEndedLessThan()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection.class, + ListAggregatedVulnerabilityDataResponse.Builder + ::aggregatedVulnerabilityCollection) + .handleResponseHeaderString( + "etag", ListAggregatedVulnerabilityDataResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + ListAggregatedVulnerabilityDataResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListNotificationsResponse listNotifications(ListNotificationsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListNotificationsResponse::builder) + .logger(LOG, "listNotifications") + .serviceDetails("DbLifeCycleManagement", "ListNotifications", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListNotificationsRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("notifications") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.NotificationCollection.class, + ListNotificationsResponse.Builder::notificationCollection) + .handleResponseHeaderString( + "opc-next-page", ListNotificationsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListNotificationsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListVulnerabilitiesResponse listVulnerabilities(ListVulnerabilitiesRequest request) { + + return clientCall(request, ListVulnerabilitiesResponse::builder) + .logger(LOG, "listVulnerabilities") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilities", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilitiesRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("vulnerabilities") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendListQueryParam( + "severityType", + request.getSeverityType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("searchBy", request.getSearchBy()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityCollection.class, + ListVulnerabilitiesResponse.Builder::vulnerabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilitiesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListVulnerabilityResourcesResponse listVulnerabilityResources( + ListVulnerabilityResourcesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListVulnerabilityResourcesResponse::builder) + .logger(LOG, "listVulnerabilityResources") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilityResources", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilityResourcesRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerability") + .appendPathParam("resources") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("databaseRelease", request.getDatabaseRelease()) + .appendQueryParam("cveId", request.getCveId()) + .appendListQueryParam( + "severityType", + request.getSeverityType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "patchRecommendation", + request.getPatchRecommendation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityResourceCollection.class, + ListVulnerabilityResourcesResponse.Builder::vulnerabilityResourceCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilityResourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilityResourcesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListVulnerabilityScansResponse listVulnerabilityScans( + ListVulnerabilityScansRequest request) { + + return clientCall(request, ListVulnerabilityScansResponse::builder) + .logger(LOG, "listVulnerabilityScans") + .serviceDetails("DbLifeCycleManagement", "ListVulnerabilityScans", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListVulnerabilityScansRequest::builder) + .basePath("/20240102") + .appendPathParam("vulnerabilityScans") + .appendQueryParam("vulnerabilityScanId", request.getVulnerabilityScanId()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendQueryParam("timeCreatedGreaterThan", request.getTimeCreatedGreaterThan()) + .appendQueryParam("timeEndedLessThan", request.getTimeEndedLessThan()) + .appendListQueryParam( + "vulnerabilityScanStatus", + request.getVulnerabilityScanStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendEnumQueryParam("vulnerabilityScanType", request.getVulnerabilityScanType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.VulnerabilityScanCollection.class, + ListVulnerabilityScansResponse.Builder::vulnerabilityScanCollection) + .handleResponseHeaderString( + "opc-request-id", ListVulnerabilityScansResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListVulnerabilityScansResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestErrorsResponse::builder) + .logger(LOG, "listWorkRequestErrors") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequestErrors", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestErrorsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("errors") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestErrorCollection.class, + ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + return clientCall(request, ListWorkRequestLogsResponse::builder) + .logger(LOG, "listWorkRequestLogs") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequestLogs", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestLogsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("logs") + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection.class, + ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + + return clientCall(request, ListWorkRequestsResponse::builder) + .logger(LOG, "listWorkRequests") + .serviceDetails("DbLifeCycleManagement", "ListWorkRequests", "") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListWorkRequestsRequest::builder) + .basePath("/20240102") + .appendPathParam("workRequests") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("workRequestId", request.getWorkRequestId()) + .appendEnumQueryParam("status", request.getStatus()) + .appendQueryParam("resourceId", request.getResourceId()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("limit", request.getLimit()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.dblm.model.WorkRequestSummaryCollection.class, + ListWorkRequestsResponse.Builder::workRequestSummaryCollection) + .handleResponseHeaderString( + "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public DbLifeCycleManagementWaiters getWaiters() { + return waiters; + } + + @Override + public DbLifeCycleManagementPaginators getPaginators() { + return paginators; + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider, null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + null); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @param executorService {@link Builder#executorService} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public DbLifeCycleManagementClient( + 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( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider, + executorService); + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementPaginators.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementPaginators.java new file mode 100644 index 00000000000..182b89e3327 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementPaginators.java @@ -0,0 +1,762 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DbLifeCycleManagement 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. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class DbLifeCycleManagementPaginators { + private final DbLifeCycleManagement client; + + public DbLifeCycleManagementPaginators(DbLifeCycleManagement client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listVulnerabilities 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 listVulnerabilitiesResponseIterator( + final ListVulnerabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVulnerabilitiesRequest.Builder, + ListVulnerabilitiesRequest, + ListVulnerabilitiesResponse>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilitiesRequest.Builder get() { + return ListVulnerabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilitiesRequest.Builder>, + ListVulnerabilitiesRequest>() { + @Override + public ListVulnerabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilitiesRequest.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< + ListVulnerabilitiesRequest, ListVulnerabilitiesResponse>() { + @Override + public ListVulnerabilitiesResponse apply(ListVulnerabilitiesRequest request) { + return client.listVulnerabilities(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.dblm.model.VulnerabilitySummary} objects contained in responses from the + * listVulnerabilities 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.dblm.model.VulnerabilitySummary} objects contained in responses received + * from the service. + */ + public Iterable + listVulnerabilitiesRecordIterator(final ListVulnerabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVulnerabilitiesRequest.Builder, + ListVulnerabilitiesRequest, + ListVulnerabilitiesResponse, + com.oracle.bmc.dblm.model.VulnerabilitySummary>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilitiesRequest.Builder get() { + return ListVulnerabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilitiesRequest.Builder>, + ListVulnerabilitiesRequest>() { + @Override + public ListVulnerabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilitiesRequest.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< + ListVulnerabilitiesRequest, ListVulnerabilitiesResponse>() { + @Override + public ListVulnerabilitiesResponse apply(ListVulnerabilitiesRequest request) { + return client.listVulnerabilities(request); + } + }, + new java.util.function.Function< + ListVulnerabilitiesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListVulnerabilitiesResponse response) { + return response.getVulnerabilityCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listVulnerabilityResources 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 listVulnerabilityResourcesResponseIterator( + final ListVulnerabilityResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVulnerabilityResourcesRequest.Builder, + ListVulnerabilityResourcesRequest, + ListVulnerabilityResourcesResponse>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilityResourcesRequest.Builder get() { + return ListVulnerabilityResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilityResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityResourcesRequest.Builder>, + ListVulnerabilityResourcesRequest>() { + @Override + public ListVulnerabilityResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityResourcesRequest.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< + ListVulnerabilityResourcesRequest, ListVulnerabilityResourcesResponse>() { + @Override + public ListVulnerabilityResourcesResponse apply( + ListVulnerabilityResourcesRequest request) { + return client.listVulnerabilityResources(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.dblm.model.VulnerabilityResourceSummary} objects contained in responses from + * the listVulnerabilityResources 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.dblm.model.VulnerabilityResourceSummary} objects contained in responses + * received from the service. + */ + public Iterable + listVulnerabilityResourcesRecordIterator( + final ListVulnerabilityResourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVulnerabilityResourcesRequest.Builder, + ListVulnerabilityResourcesRequest, + ListVulnerabilityResourcesResponse, + com.oracle.bmc.dblm.model.VulnerabilityResourceSummary>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilityResourcesRequest.Builder get() { + return ListVulnerabilityResourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilityResourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityResourcesRequest.Builder>, + ListVulnerabilityResourcesRequest>() { + @Override + public ListVulnerabilityResourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityResourcesRequest.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< + ListVulnerabilityResourcesRequest, ListVulnerabilityResourcesResponse>() { + @Override + public ListVulnerabilityResourcesResponse apply( + ListVulnerabilityResourcesRequest request) { + return client.listVulnerabilityResources(request); + } + }, + new java.util.function.Function< + ListVulnerabilityResourcesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListVulnerabilityResourcesResponse response) { + return response.getVulnerabilityResourceCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listVulnerabilityScans 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 listVulnerabilityScansResponseIterator( + final ListVulnerabilityScansRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListVulnerabilityScansRequest.Builder, + ListVulnerabilityScansRequest, + ListVulnerabilityScansResponse>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilityScansRequest.Builder get() { + return ListVulnerabilityScansRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilityScansResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityScansRequest.Builder>, + ListVulnerabilityScansRequest>() { + @Override + public ListVulnerabilityScansRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityScansRequest.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< + ListVulnerabilityScansRequest, ListVulnerabilityScansResponse>() { + @Override + public ListVulnerabilityScansResponse apply( + ListVulnerabilityScansRequest request) { + return client.listVulnerabilityScans(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.dblm.model.VulnerabilityScanSummary} objects contained in responses from the + * listVulnerabilityScans 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.dblm.model.VulnerabilityScanSummary} objects contained in responses + * received from the service. + */ + public Iterable + listVulnerabilityScansRecordIterator(final ListVulnerabilityScansRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListVulnerabilityScansRequest.Builder, + ListVulnerabilityScansRequest, + ListVulnerabilityScansResponse, + com.oracle.bmc.dblm.model.VulnerabilityScanSummary>( + new java.util.function.Supplier() { + @Override + public ListVulnerabilityScansRequest.Builder get() { + return ListVulnerabilityScansRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListVulnerabilityScansResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityScansRequest.Builder>, + ListVulnerabilityScansRequest>() { + @Override + public ListVulnerabilityScansRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListVulnerabilityScansRequest.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< + ListVulnerabilityScansRequest, ListVulnerabilityScansResponse>() { + @Override + public ListVulnerabilityScansResponse apply( + ListVulnerabilityScansRequest request) { + return client.listVulnerabilityScans(request); + } + }, + new java.util.function.Function< + ListVulnerabilityScansResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListVulnerabilityScansResponse response) { + return response.getVulnerabilityScanCollection().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.dblm.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.dblm.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.dblm.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.dblm.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.dblm.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.dblm.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.dblm.model.WorkRequestSummary} 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.dblm.model.WorkRequestSummary} 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.dblm.model.WorkRequestSummary>( + 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.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementWaiters.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementWaiters.java new file mode 100644 index 00000000000..abc8bf0efda --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/DbLifeCycleManagementWaiters.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm; + +import com.oracle.bmc.dblm.requests.*; +import com.oracle.bmc.dblm.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DbLifeCycleManagement. + * + *

The default configuration used is defined by {@link + * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class DbLifeCycleManagementWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DbLifeCycleManagement client; + + public DbLifeCycleManagementWaiters( + java.util.concurrent.ExecutorService executorService, DbLifeCycleManagement 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 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 + forVulnerabilityScan( + GetVulnerabilityScanRequest request, + com.oracle.bmc.dblm.model.VulnerabilityScan.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 forVulnerabilityScan( + 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 + forVulnerabilityScan( + GetVulnerabilityScanRequest request, + com.oracle.bmc.dblm.model.VulnerabilityScan.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 forVulnerabilityScan( + 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 + forVulnerabilityScan( + GetVulnerabilityScanRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.dblm.model.VulnerabilityScan.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 forVulnerabilityScan( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for VulnerabilityScan. + private com.oracle.bmc.waiter.Waiter + forVulnerabilityScan( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetVulnerabilityScanRequest request, + final com.oracle.bmc.dblm.model.VulnerabilityScan.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< + GetVulnerabilityScanRequest, GetVulnerabilityScanResponse>() { + @Override + public GetVulnerabilityScanResponse apply( + GetVulnerabilityScanRequest request) { + return client.getVulnerabilityScan(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetVulnerabilityScanResponse response) { + return targetStatesSet.contains( + response.getVulnerabilityScan().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.dblm.model.VulnerabilityScan.LifecycleState + .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-dblm/src/main/java/com/oracle/bmc/dblm/model/ActionType.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ActionType.java new file mode 100644 index 00000000000..2acccdf8788 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ActionType.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Possible types of actions. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + 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(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-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilityCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilityCollection.java new file mode 100644 index 00000000000..97e9f241bc8 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilityCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The aggregated vulnerability data.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AggregatedVulnerabilityCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AggregatedVulnerabilityCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AggregatedVulnerabilityCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of data */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of data + * + * @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 AggregatedVulnerabilityCollection build() { + AggregatedVulnerabilityCollection model = + new AggregatedVulnerabilityCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AggregatedVulnerabilityCollection 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 data */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of data + * + * @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("AggregatedVulnerabilityCollection("); + 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 AggregatedVulnerabilityCollection)) { + return false; + } + + AggregatedVulnerabilityCollection other = (AggregatedVulnerabilityCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilitySummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilitySummary.java new file mode 100644 index 00000000000..b67e91f8e15 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/AggregatedVulnerabilitySummary.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Singular information of an aggregated vulnerability datapoint.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AggregatedVulnerabilitySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AggregatedVulnerabilitySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timestamp", + "vulnerabilitiesCount", + "registeredResourcesCount" + }) + public AggregatedVulnerabilitySummary( + java.util.Date timestamp, + Integer vulnerabilitiesCount, + Integer registeredResourcesCount) { + super(); + this.timestamp = timestamp; + this.vulnerabilitiesCount = vulnerabilitiesCount; + this.registeredResourcesCount = registeredResourcesCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** UTC timestamp when the scan completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * UTC timestamp when the scan completed. + * + * @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; + } + /** Unresolved vulnerabilities that were found by the scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesCount") + private Integer vulnerabilitiesCount; + + /** + * Unresolved vulnerabilities that were found by the scan. + * + * @param vulnerabilitiesCount the value to set + * @return this builder + */ + public Builder vulnerabilitiesCount(Integer vulnerabilitiesCount) { + this.vulnerabilitiesCount = vulnerabilitiesCount; + this.__explicitlySet__.add("vulnerabilitiesCount"); + return this; + } + /** Registered databases against which the scan ran. */ + @com.fasterxml.jackson.annotation.JsonProperty("registeredResourcesCount") + private Integer registeredResourcesCount; + + /** + * Registered databases against which the scan ran. + * + * @param registeredResourcesCount the value to set + * @return this builder + */ + public Builder registeredResourcesCount(Integer registeredResourcesCount) { + this.registeredResourcesCount = registeredResourcesCount; + this.__explicitlySet__.add("registeredResourcesCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AggregatedVulnerabilitySummary build() { + AggregatedVulnerabilitySummary model = + new AggregatedVulnerabilitySummary( + this.timestamp, + this.vulnerabilitiesCount, + this.registeredResourcesCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AggregatedVulnerabilitySummary model) { + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + if (model.wasPropertyExplicitlySet("vulnerabilitiesCount")) { + this.vulnerabilitiesCount(model.getVulnerabilitiesCount()); + } + if (model.wasPropertyExplicitlySet("registeredResourcesCount")) { + this.registeredResourcesCount(model.getRegisteredResourcesCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** UTC timestamp when the scan completed. */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * UTC timestamp when the scan completed. + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + /** Unresolved vulnerabilities that were found by the scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesCount") + private final Integer vulnerabilitiesCount; + + /** + * Unresolved vulnerabilities that were found by the scan. + * + * @return the value + */ + public Integer getVulnerabilitiesCount() { + return vulnerabilitiesCount; + } + + /** Registered databases against which the scan ran. */ + @com.fasterxml.jackson.annotation.JsonProperty("registeredResourcesCount") + private final Integer registeredResourcesCount; + + /** + * Registered databases against which the scan ran. + * + * @return the value + */ + public Integer getRegisteredResourcesCount() { + return registeredResourcesCount; + } + + @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("AggregatedVulnerabilitySummary("); + sb.append("super=").append(super.toString()); + sb.append("timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", vulnerabilitiesCount=").append(String.valueOf(this.vulnerabilitiesCount)); + sb.append(", registeredResourcesCount=") + .append(String.valueOf(this.registeredResourcesCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AggregatedVulnerabilitySummary)) { + return false; + } + + AggregatedVulnerabilitySummary other = (AggregatedVulnerabilitySummary) o; + return java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.vulnerabilitiesCount, other.vulnerabilitiesCount) + && java.util.Objects.equals( + this.registeredResourcesCount, other.registeredResourcesCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilitiesCount == null + ? 43 + : this.vulnerabilitiesCount.hashCode()); + result = + (result * PRIME) + + (this.registeredResourcesCount == null + ? 43 + : this.registeredResourcesCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ChildPdb.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ChildPdb.java new file mode 100644 index 00000000000..753ff90c8f8 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ChildPdb.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Child PDB for a CDB.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ChildPdb.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChildPdb extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "pdbId", + "name", + "openMode", + "restricted", + "recoveryStatus", + "lastChangedBy" + }) + public ChildPdb( + String pdbId, + String name, + String openMode, + String restricted, + String recoveryStatus, + String lastChangedBy) { + super(); + this.pdbId = pdbId; + this.name = name; + this.openMode = openMode; + this.restricted = restricted; + this.recoveryStatus = recoveryStatus; + this.lastChangedBy = lastChangedBy; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Identifier for the pluggable database. */ + @com.fasterxml.jackson.annotation.JsonProperty("pdbId") + private String pdbId; + + /** + * Identifier for the pluggable database. + * + * @param pdbId the value to set + * @return this builder + */ + public Builder pdbId(String pdbId) { + this.pdbId = pdbId; + this.__explicitlySet__.add("pdbId"); + return this; + } + /** Name fo the pluggable database. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name fo the pluggable database. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Open mode */ + @com.fasterxml.jackson.annotation.JsonProperty("openMode") + private String openMode; + + /** + * Open mode + * + * @param openMode the value to set + * @return this builder + */ + public Builder openMode(String openMode) { + this.openMode = openMode; + this.__explicitlySet__.add("openMode"); + return this; + } + /** Restricted */ + @com.fasterxml.jackson.annotation.JsonProperty("restricted") + private String restricted; + + /** + * Restricted + * + * @param restricted the value to set + * @return this builder + */ + public Builder restricted(String restricted) { + this.restricted = restricted; + this.__explicitlySet__.add("restricted"); + return this; + } + /** Recovery status */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryStatus") + private String recoveryStatus; + + /** + * Recovery status + * + * @param recoveryStatus the value to set + * @return this builder + */ + public Builder recoveryStatus(String recoveryStatus) { + this.recoveryStatus = recoveryStatus; + this.__explicitlySet__.add("recoveryStatus"); + return this; + } + /** Last changed by */ + @com.fasterxml.jackson.annotation.JsonProperty("lastChangedBy") + private String lastChangedBy; + + /** + * Last changed by + * + * @param lastChangedBy the value to set + * @return this builder + */ + public Builder lastChangedBy(String lastChangedBy) { + this.lastChangedBy = lastChangedBy; + this.__explicitlySet__.add("lastChangedBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChildPdb build() { + ChildPdb model = + new ChildPdb( + this.pdbId, + this.name, + this.openMode, + this.restricted, + this.recoveryStatus, + this.lastChangedBy); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChildPdb model) { + if (model.wasPropertyExplicitlySet("pdbId")) { + this.pdbId(model.getPdbId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("openMode")) { + this.openMode(model.getOpenMode()); + } + if (model.wasPropertyExplicitlySet("restricted")) { + this.restricted(model.getRestricted()); + } + if (model.wasPropertyExplicitlySet("recoveryStatus")) { + this.recoveryStatus(model.getRecoveryStatus()); + } + if (model.wasPropertyExplicitlySet("lastChangedBy")) { + this.lastChangedBy(model.getLastChangedBy()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Identifier for the pluggable database. */ + @com.fasterxml.jackson.annotation.JsonProperty("pdbId") + private final String pdbId; + + /** + * Identifier for the pluggable database. + * + * @return the value + */ + public String getPdbId() { + return pdbId; + } + + /** Name fo the pluggable database. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name fo the pluggable database. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Open mode */ + @com.fasterxml.jackson.annotation.JsonProperty("openMode") + private final String openMode; + + /** + * Open mode + * + * @return the value + */ + public String getOpenMode() { + return openMode; + } + + /** Restricted */ + @com.fasterxml.jackson.annotation.JsonProperty("restricted") + private final String restricted; + + /** + * Restricted + * + * @return the value + */ + public String getRestricted() { + return restricted; + } + + /** Recovery status */ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryStatus") + private final String recoveryStatus; + + /** + * Recovery status + * + * @return the value + */ + public String getRecoveryStatus() { + return recoveryStatus; + } + + /** Last changed by */ + @com.fasterxml.jackson.annotation.JsonProperty("lastChangedBy") + private final String lastChangedBy; + + /** + * Last changed by + * + * @return the value + */ + public String getLastChangedBy() { + return lastChangedBy; + } + + @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("ChildPdb("); + sb.append("super=").append(super.toString()); + sb.append("pdbId=").append(String.valueOf(this.pdbId)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", openMode=").append(String.valueOf(this.openMode)); + sb.append(", restricted=").append(String.valueOf(this.restricted)); + sb.append(", recoveryStatus=").append(String.valueOf(this.recoveryStatus)); + sb.append(", lastChangedBy=").append(String.valueOf(this.lastChangedBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChildPdb)) { + return false; + } + + ChildPdb other = (ChildPdb) o; + return java.util.Objects.equals(this.pdbId, other.pdbId) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.openMode, other.openMode) + && java.util.Objects.equals(this.restricted, other.restricted) + && java.util.Objects.equals(this.recoveryStatus, other.recoveryStatus) + && java.util.Objects.equals(this.lastChangedBy, other.lastChangedBy) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.pdbId == null ? 43 : this.pdbId.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.openMode == null ? 43 : this.openMode.hashCode()); + result = (result * PRIME) + (this.restricted == null ? 43 : this.restricted.hashCode()); + result = + (result * PRIME) + + (this.recoveryStatus == null ? 43 : this.recoveryStatus.hashCode()); + result = + (result * PRIME) + + (this.lastChangedBy == null ? 43 : this.lastChangedBy.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/CreateVulnerabilityScanDetails.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/CreateVulnerabilityScanDetails.java new file mode 100644 index 00000000000..efa73c250d3 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/CreateVulnerabilityScanDetails.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The data to create a VulnerabilityScan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateVulnerabilityScanDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateVulnerabilityScanDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId", "vulnerabilityScanType"}) + public CreateVulnerabilityScanDetails( + String compartmentId, VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType) { + super(); + this.compartmentId = compartmentId; + this.vulnerabilityScanType = vulnerabilityScanType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Compartment Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment Identifier + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType; + + /** + * Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH + * + * @param vulnerabilityScanType the value to set + * @return this builder + */ + public Builder vulnerabilityScanType( + VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType) { + this.vulnerabilityScanType = vulnerabilityScanType; + this.__explicitlySet__.add("vulnerabilityScanType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateVulnerabilityScanDetails build() { + CreateVulnerabilityScanDetails model = + new CreateVulnerabilityScanDetails( + this.compartmentId, this.vulnerabilityScanType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateVulnerabilityScanDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanType")) { + this.vulnerabilityScanType(model.getVulnerabilityScanType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Compartment Identifier */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment Identifier + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private final VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType; + + /** + * Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH + * + * @return the value + */ + public VulnerabilityScan.VulnerabilityScanType getVulnerabilityScanType() { + return vulnerabilityScanType; + } + + @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("CreateVulnerabilityScanDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", vulnerabilityScanType=").append(String.valueOf(this.vulnerabilityScanType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVulnerabilityScanDetails)) { + return false; + } + + CreateVulnerabilityScanDetails other = (CreateVulnerabilityScanDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.vulnerabilityScanType, other.vulnerabilityScanType) + && 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.vulnerabilityScanType == null + ? 43 + : this.vulnerabilityScanType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/DblmVulnerability.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/DblmVulnerability.java new file mode 100644 index 00000000000..abfed868d85 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/DblmVulnerability.java @@ -0,0 +1,570 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * A Dblm Vulnerability is a description of a Dblm Vulnerability. + * + *

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.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DblmVulnerability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DblmVulnerability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "resources", + "message", + "timeEnabled", + "lifecycleState", + "resourcesSummary", + "vulnerabilitiesSummary", + "patchRecommendationsSummary", + "freeformTags", + "systemTags" + }) + public DblmVulnerability( + String compartmentId, + java.util.List resources, + String message, + java.util.Date timeEnabled, + LifecycleState lifecycleState, + Object resourcesSummary, + Object vulnerabilitiesSummary, + Object patchRecommendationsSummary, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.compartmentId = compartmentId; + this.resources = resources; + this.message = message; + this.timeEnabled = timeEnabled; + this.lifecycleState = lifecycleState; + this.resourcesSummary = resourcesSummary; + this.vulnerabilitiesSummary = vulnerabilitiesSummary; + this.patchRecommendationsSummary = patchRecommendationsSummary; + this.freeformTags = freeformTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Compartment Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * Compartment Identifier. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** Resources objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * Resources objects. + * + * @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; + } + /** A message describing the status of the feature's state. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A message describing the status of the feature's state. + * + * @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 the the Vulnerability was enabled. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private java.util.Date timeEnabled; + + /** + * The time the the Vulnerability was enabled. An RFC3339 formatted datetime string. + * + * @param timeEnabled the value to set + * @return this builder + */ + public Builder timeEnabled(java.util.Date timeEnabled) { + this.timeEnabled = timeEnabled; + this.__explicitlySet__.add("timeEnabled"); + return this; + } + /** The current state of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the feature. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Summary of dblm registered and unregistered resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourcesSummary") + private Object resourcesSummary; + + /** + * Summary of dblm registered and unregistered resources. + * + * @param resourcesSummary the value to set + * @return this builder + */ + public Builder resourcesSummary(Object resourcesSummary) { + this.resourcesSummary = resourcesSummary; + this.__explicitlySet__.add("resourcesSummary"); + return this; + } + /** Summary of vulnerabilities found in registered resources grouped by severity. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesSummary") + private Object vulnerabilitiesSummary; + + /** + * Summary of vulnerabilities found in registered resources grouped by severity. + * + * @param vulnerabilitiesSummary the value to set + * @return this builder + */ + public Builder vulnerabilitiesSummary(Object vulnerabilitiesSummary) { + this.vulnerabilitiesSummary = vulnerabilitiesSummary; + this.__explicitlySet__.add("vulnerabilitiesSummary"); + return this; + } + /** Summary of the patch recommendations for databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsSummary") + private Object patchRecommendationsSummary; + + /** + * Summary of the patch recommendations for databases. + * + * @param patchRecommendationsSummary the value to set + * @return this builder + */ + public Builder patchRecommendationsSummary(Object patchRecommendationsSummary) { + this.patchRecommendationsSummary = patchRecommendationsSummary; + this.__explicitlySet__.add("patchRecommendationsSummary"); + 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"}} + */ + @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. 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; + } + /** + * 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 DblmVulnerability build() { + DblmVulnerability model = + new DblmVulnerability( + this.compartmentId, + this.resources, + this.message, + this.timeEnabled, + this.lifecycleState, + this.resourcesSummary, + this.vulnerabilitiesSummary, + this.patchRecommendationsSummary, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DblmVulnerability model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timeEnabled")) { + this.timeEnabled(model.getTimeEnabled()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("resourcesSummary")) { + this.resourcesSummary(model.getResourcesSummary()); + } + if (model.wasPropertyExplicitlySet("vulnerabilitiesSummary")) { + this.vulnerabilitiesSummary(model.getVulnerabilitiesSummary()); + } + if (model.wasPropertyExplicitlySet("patchRecommendationsSummary")) { + this.patchRecommendationsSummary(model.getPatchRecommendationsSummary()); + } + 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); + } + + /** Compartment Identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * Compartment Identifier. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Resources objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * Resources objects. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** A message describing the status of the feature's state. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A message describing the status of the feature's state. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** The time the the Vulnerability was enabled. An RFC3339 formatted datetime string. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnabled") + private final java.util.Date timeEnabled; + + /** + * The time the the Vulnerability was enabled. An RFC3339 formatted datetime string. + * + * @return the value + */ + public java.util.Date getTimeEnabled() { + return timeEnabled; + } + + /** The current state of the feature. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Failed("FAILED"), + NeedsAttention("NEEDS_ATTENTION"), + 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(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 feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the feature. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Summary of dblm registered and unregistered resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourcesSummary") + private final Object resourcesSummary; + + /** + * Summary of dblm registered and unregistered resources. + * + * @return the value + */ + public Object getResourcesSummary() { + return resourcesSummary; + } + + /** Summary of vulnerabilities found in registered resources grouped by severity. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesSummary") + private final Object vulnerabilitiesSummary; + + /** + * Summary of vulnerabilities found in registered resources grouped by severity. + * + * @return the value + */ + public Object getVulnerabilitiesSummary() { + return vulnerabilitiesSummary; + } + + /** Summary of the patch recommendations for databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsSummary") + private final Object patchRecommendationsSummary; + + /** + * Summary of the patch recommendations for databases. + * + * @return the value + */ + public Object getPatchRecommendationsSummary() { + return patchRecommendationsSummary; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. 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. Exists for + * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * + * @return the value + */ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * 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("DblmVulnerability("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timeEnabled=").append(String.valueOf(this.timeEnabled)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", resourcesSummary=").append(String.valueOf(this.resourcesSummary)); + sb.append(", vulnerabilitiesSummary=").append(String.valueOf(this.vulnerabilitiesSummary)); + sb.append(", patchRecommendationsSummary=") + .append(String.valueOf(this.patchRecommendationsSummary)); + 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 DblmVulnerability)) { + return false; + } + + DblmVulnerability other = (DblmVulnerability) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timeEnabled, other.timeEnabled) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.resourcesSummary, other.resourcesSummary) + && java.util.Objects.equals( + this.vulnerabilitiesSummary, other.vulnerabilitiesSummary) + && java.util.Objects.equals( + this.patchRecommendationsSummary, other.patchRecommendationsSummary) + && 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.resources == null ? 43 : this.resources.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timeEnabled == null ? 43 : this.timeEnabled.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.resourcesSummary == null ? 43 : this.resourcesSummary.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilitiesSummary == null + ? 43 + : this.vulnerabilitiesSummary.hashCode()); + result = + (result * PRIME) + + (this.patchRecommendationsSummary == null + ? 43 + : this.patchRecommendationsSummary.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-dblm/src/main/java/com/oracle/bmc/dblm/model/HostInfo.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/HostInfo.java new file mode 100644 index 00000000000..1843760b7cc --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/HostInfo.java @@ -0,0 +1,167 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The Host Info.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = HostInfo.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class HostInfo extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"hostName", "hostCores"}) + public HostInfo(String hostName, Integer hostCores) { + super(); + this.hostName = hostName; + this.hostCores = hostCores; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private String hostName; + + /** + * The name of the host. + * + * @param hostName the value to set + * @return this builder + */ + public Builder hostName(String hostName) { + this.hostName = hostName; + this.__explicitlySet__.add("hostName"); + return this; + } + /** Number of host cores. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostCores") + private Integer hostCores; + + /** + * Number of host cores. + * + * @param hostCores the value to set + * @return this builder + */ + public Builder hostCores(Integer hostCores) { + this.hostCores = hostCores; + this.__explicitlySet__.add("hostCores"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostInfo build() { + HostInfo model = new HostInfo(this.hostName, this.hostCores); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostInfo model) { + if (model.wasPropertyExplicitlySet("hostName")) { + this.hostName(model.getHostName()); + } + if (model.wasPropertyExplicitlySet("hostCores")) { + this.hostCores(model.getHostCores()); + } + 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 host. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostName") + private final String hostName; + + /** + * The name of the host. + * + * @return the value + */ + public String getHostName() { + return hostName; + } + + /** Number of host cores. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostCores") + private final Integer hostCores; + + /** + * Number of host cores. + * + * @return the value + */ + public Integer getHostCores() { + return hostCores; + } + + @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("HostInfo("); + sb.append("super=").append(super.toString()); + sb.append("hostName=").append(String.valueOf(this.hostName)); + sb.append(", hostCores=").append(String.valueOf(this.hostCores)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HostInfo)) { + return false; + } + + HostInfo other = (HostInfo) o; + return java.util.Objects.equals(this.hostName, other.hostName) + && java.util.Objects.equals(this.hostCores, other.hostCores) + && 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.hostCores == null ? 43 : this.hostCores.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/MetricError.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/MetricError.java new file mode 100644 index 00000000000..855a025ab56 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/MetricError.java @@ -0,0 +1,329 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Metric error content.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MetricError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MetricError extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "timeGenerated", + "errorType", + "contentType", + "data", + "subject", + "level" + }) + public MetricError( + java.util.Date timeGenerated, + String errorType, + String contentType, + String data, + String subject, + String level) { + super(); + this.timeGenerated = timeGenerated; + this.errorType = errorType; + this.contentType = contentType; + this.data = data; + this.subject = subject; + this.level = level; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Time the error record was generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private java.util.Date timeGenerated; + + /** + * Time the error record was generated + * + * @param timeGenerated the value to set + * @return this builder + */ + public Builder timeGenerated(java.util.Date timeGenerated) { + this.timeGenerated = timeGenerated; + this.__explicitlySet__.add("timeGenerated"); + return this; + } + /** Error type */ + @com.fasterxml.jackson.annotation.JsonProperty("errorType") + private String errorType; + + /** + * Error type + * + * @param errorType the value to set + * @return this builder + */ + public Builder errorType(String errorType) { + this.errorType = errorType; + this.__explicitlySet__.add("errorType"); + return this; + } + /** Content type */ + @com.fasterxml.jackson.annotation.JsonProperty("contentType") + private String contentType; + + /** + * Content type + * + * @param contentType the value to set + * @return this builder + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + this.__explicitlySet__.add("contentType"); + return this; + } + /** Data */ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private String data; + + /** + * Data + * + * @param data the value to set + * @return this builder + */ + public Builder data(String data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + /** Subject */ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private String subject; + + /** + * Subject + * + * @param subject the value to set + * @return this builder + */ + public Builder subject(String subject) { + this.subject = subject; + this.__explicitlySet__.add("subject"); + return this; + } + /** Level */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private String level; + + /** + * Level + * + * @param level the value to set + * @return this builder + */ + public Builder level(String level) { + this.level = level; + this.__explicitlySet__.add("level"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MetricError build() { + MetricError model = + new MetricError( + this.timeGenerated, + this.errorType, + this.contentType, + this.data, + this.subject, + this.level); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MetricError model) { + if (model.wasPropertyExplicitlySet("timeGenerated")) { + this.timeGenerated(model.getTimeGenerated()); + } + if (model.wasPropertyExplicitlySet("errorType")) { + this.errorType(model.getErrorType()); + } + if (model.wasPropertyExplicitlySet("contentType")) { + this.contentType(model.getContentType()); + } + if (model.wasPropertyExplicitlySet("data")) { + this.data(model.getData()); + } + if (model.wasPropertyExplicitlySet("subject")) { + this.subject(model.getSubject()); + } + if (model.wasPropertyExplicitlySet("level")) { + this.level(model.getLevel()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Time the error record was generated */ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private final java.util.Date timeGenerated; + + /** + * Time the error record was generated + * + * @return the value + */ + public java.util.Date getTimeGenerated() { + return timeGenerated; + } + + /** Error type */ + @com.fasterxml.jackson.annotation.JsonProperty("errorType") + private final String errorType; + + /** + * Error type + * + * @return the value + */ + public String getErrorType() { + return errorType; + } + + /** Content type */ + @com.fasterxml.jackson.annotation.JsonProperty("contentType") + private final String contentType; + + /** + * Content type + * + * @return the value + */ + public String getContentType() { + return contentType; + } + + /** Data */ + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final String data; + + /** + * Data + * + * @return the value + */ + public String getData() { + return data; + } + + /** Subject */ + @com.fasterxml.jackson.annotation.JsonProperty("subject") + private final String subject; + + /** + * Subject + * + * @return the value + */ + public String getSubject() { + return subject; + } + + /** Level */ + @com.fasterxml.jackson.annotation.JsonProperty("level") + private final String level; + + /** + * Level + * + * @return the value + */ + public String getLevel() { + return level; + } + + @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("MetricError("); + sb.append("super=").append(super.toString()); + sb.append("timeGenerated=").append(String.valueOf(this.timeGenerated)); + sb.append(", errorType=").append(String.valueOf(this.errorType)); + sb.append(", contentType=").append(String.valueOf(this.contentType)); + sb.append(", data=").append(String.valueOf(this.data)); + sb.append(", subject=").append(String.valueOf(this.subject)); + sb.append(", level=").append(String.valueOf(this.level)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MetricError)) { + return false; + } + + MetricError other = (MetricError) o; + return java.util.Objects.equals(this.timeGenerated, other.timeGenerated) + && java.util.Objects.equals(this.errorType, other.errorType) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.data, other.data) + && java.util.Objects.equals(this.subject, other.subject) + && java.util.Objects.equals(this.level, other.level) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.timeGenerated == null ? 43 : this.timeGenerated.hashCode()); + result = (result * PRIME) + (this.errorType == null ? 43 : this.errorType.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + result = (result * PRIME) + (this.subject == null ? 43 : this.subject.hashCode()); + result = (result * PRIME) + (this.level == null ? 43 : this.level.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationCollection.java new file mode 100644 index 00000000000..fe76b0e56d5 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Collection of notifications for new CVEs and CPUs.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NotificationCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NotificationCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public NotificationCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Items for notifications. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Items for notifications. + * + * @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 NotificationCollection build() { + NotificationCollection model = new NotificationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NotificationCollection 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); + } + + /** Items for notifications. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Items for notifications. + * + * @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("NotificationCollection("); + 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 NotificationCollection)) { + return false; + } + + NotificationCollection other = (NotificationCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationSummary.java new file mode 100644 index 00000000000..dc06064ba19 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/NotificationSummary.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Notifications
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NotificationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class NotificationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "notificationType", + "notificationText", + "id", + "timePublished" + }) + public NotificationSummary( + NotificationType notificationType, + String notificationText, + String id, + java.util.Date timePublished) { + super(); + this.notificationType = notificationType; + this.notificationText = notificationText; + this.id = id; + this.timePublished = timePublished; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Notification type */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationType") + private NotificationType notificationType; + + /** + * Notification type + * + * @param notificationType the value to set + * @return this builder + */ + public Builder notificationType(NotificationType notificationType) { + this.notificationType = notificationType; + this.__explicitlySet__.add("notificationType"); + return this; + } + /** Notification text */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationText") + private String notificationText; + + /** + * Notification text + * + * @param notificationText the value to set + * @return this builder + */ + public Builder notificationText(String notificationText) { + this.notificationText = notificationText; + this.__explicitlySet__.add("notificationText"); + return this; + } + /** Notification identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * Notification identifier. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Published date */ + @com.fasterxml.jackson.annotation.JsonProperty("timePublished") + private java.util.Date timePublished; + + /** + * Published date + * + * @param timePublished the value to set + * @return this builder + */ + public Builder timePublished(java.util.Date timePublished) { + this.timePublished = timePublished; + this.__explicitlySet__.add("timePublished"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NotificationSummary build() { + NotificationSummary model = + new NotificationSummary( + this.notificationType, + this.notificationText, + this.id, + this.timePublished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NotificationSummary model) { + if (model.wasPropertyExplicitlySet("notificationType")) { + this.notificationType(model.getNotificationType()); + } + if (model.wasPropertyExplicitlySet("notificationText")) { + this.notificationText(model.getNotificationText()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("timePublished")) { + this.timePublished(model.getTimePublished()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Notification type */ + public enum NotificationType implements com.oracle.bmc.http.internal.BmcEnum { + Cve("CVE"), + Advisory("ADVISORY"), + Patch("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(NotificationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (NotificationType v : NotificationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + NotificationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static NotificationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'NotificationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Notification type */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationType") + private final NotificationType notificationType; + + /** + * Notification type + * + * @return the value + */ + public NotificationType getNotificationType() { + return notificationType; + } + + /** Notification text */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationText") + private final String notificationText; + + /** + * Notification text + * + * @return the value + */ + public String getNotificationText() { + return notificationText; + } + + /** Notification identifier. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * Notification identifier. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Published date */ + @com.fasterxml.jackson.annotation.JsonProperty("timePublished") + private final java.util.Date timePublished; + + /** + * Published date + * + * @return the value + */ + public java.util.Date getTimePublished() { + return timePublished; + } + + @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("NotificationSummary("); + sb.append("super=").append(super.toString()); + sb.append("notificationType=").append(String.valueOf(this.notificationType)); + sb.append(", notificationText=").append(String.valueOf(this.notificationText)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", timePublished=").append(String.valueOf(this.timePublished)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NotificationSummary)) { + return false; + } + + NotificationSummary other = (NotificationSummary) o; + return java.util.Objects.equals(this.notificationType, other.notificationType) + && java.util.Objects.equals(this.notificationText, other.notificationText) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.timePublished, other.timePublished) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.notificationType == null ? 43 : this.notificationType.hashCode()); + result = + (result * PRIME) + + (this.notificationText == null ? 43 : this.notificationText.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.timePublished == null ? 43 : this.timePublished.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationStatus.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationStatus.java new file mode 100644 index 00000000000..1e373a5b30a --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationStatus.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Possible operation status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * 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-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationType.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationType.java new file mode 100644 index 00000000000..3b17b75c7a0 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/OperationType.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Possible operation types. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { + DblmSubscribe("DBLM_SUBSCRIBE"), + DblmEnable("DBLM_ENABLE"), + ScanVulCve("SCAN_VUL_CVE"), + ScanVulPatch("SCAN_VUL_PATCH"), + ScanVulImage("SCAN_VUL_IMAGE"), + UpdateSubscription("UPDATE_SUBSCRIPTION"), + UpdateSubscribedResource("UPDATE_SUBSCRIBED_RESOURCE"), + CreateSharedDatastore("CREATE_SHARED_DATASTORE"), + DeleteSharedDatastore("DELETE_SHARED_DATASTORE"), + + /** + * 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-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationSummary.java new file mode 100644 index 00000000000..208a6c1216e --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationSummary.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Total count summary of patch recommendations for databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRecommendationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchRecommendationSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"total", "upToDate", "patchAvailable"}) + public PatchRecommendationSummary(Integer total, Integer upToDate, Integer patchAvailable) { + super(); + this.total = total; + this.upToDate = upToDate; + this.patchAvailable = patchAvailable; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Total number of databases pending to be updated and/or with latest patches. */ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private Integer total; + + /** + * Total number of databases pending to be updated and/or with latest patches. + * + * @param total the value to set + * @return this builder + */ + public Builder total(Integer total) { + this.total = total; + this.__explicitlySet__.add("total"); + return this; + } + /** Number of databases with latest patches. */ + @com.fasterxml.jackson.annotation.JsonProperty("upToDate") + private Integer upToDate; + + /** + * Number of databases with latest patches. + * + * @param upToDate the value to set + * @return this builder + */ + public Builder upToDate(Integer upToDate) { + this.upToDate = upToDate; + this.__explicitlySet__.add("upToDate"); + return this; + } + /** Number of databases pending to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchAvailable") + private Integer patchAvailable; + + /** + * Number of databases pending to be updated. + * + * @param patchAvailable the value to set + * @return this builder + */ + public Builder patchAvailable(Integer patchAvailable) { + this.patchAvailable = patchAvailable; + this.__explicitlySet__.add("patchAvailable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PatchRecommendationSummary build() { + PatchRecommendationSummary model = + new PatchRecommendationSummary(this.total, this.upToDate, this.patchAvailable); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRecommendationSummary model) { + if (model.wasPropertyExplicitlySet("total")) { + this.total(model.getTotal()); + } + if (model.wasPropertyExplicitlySet("upToDate")) { + this.upToDate(model.getUpToDate()); + } + if (model.wasPropertyExplicitlySet("patchAvailable")) { + this.patchAvailable(model.getPatchAvailable()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Total number of databases pending to be updated and/or with latest patches. */ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private final Integer total; + + /** + * Total number of databases pending to be updated and/or with latest patches. + * + * @return the value + */ + public Integer getTotal() { + return total; + } + + /** Number of databases with latest patches. */ + @com.fasterxml.jackson.annotation.JsonProperty("upToDate") + private final Integer upToDate; + + /** + * Number of databases with latest patches. + * + * @return the value + */ + public Integer getUpToDate() { + return upToDate; + } + + /** Number of databases pending to be updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchAvailable") + private final Integer patchAvailable; + + /** + * Number of databases pending to be updated. + * + * @return the value + */ + public Integer getPatchAvailable() { + return patchAvailable; + } + + @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("PatchRecommendationSummary("); + sb.append("super=").append(super.toString()); + sb.append("total=").append(String.valueOf(this.total)); + sb.append(", upToDate=").append(String.valueOf(this.upToDate)); + sb.append(", patchAvailable=").append(String.valueOf(this.patchAvailable)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PatchRecommendationSummary)) { + return false; + } + + PatchRecommendationSummary other = (PatchRecommendationSummary) o; + return java.util.Objects.equals(this.total, other.total) + && java.util.Objects.equals(this.upToDate, other.upToDate) + && java.util.Objects.equals(this.patchAvailable, other.patchAvailable) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.total == null ? 43 : this.total.hashCode()); + result = (result * PRIME) + (this.upToDate == null ? 43 : this.upToDate.hashCode()); + result = + (result * PRIME) + + (this.patchAvailable == null ? 43 : this.patchAvailable.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationsDetailsSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationsDetailsSummary.java new file mode 100644 index 00000000000..3aaad20e355 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/PatchRecommendationsDetailsSummary.java @@ -0,0 +1,335 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Summary of patch recommendations for databases.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PatchRecommendationsDetailsSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PatchRecommendationsDetailsSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "patchName", + "abstractText", + "classificationName", + "timeEvaluated", + "hasFixForCve", + "timeReleased" + }) + public PatchRecommendationsDetailsSummary( + String patchName, + String abstractText, + String classificationName, + java.util.Date timeEvaluated, + Boolean hasFixForCve, + java.util.Date timeReleased) { + super(); + this.patchName = patchName; + this.abstractText = abstractText; + this.classificationName = classificationName; + this.timeEvaluated = timeEvaluated; + this.hasFixForCve = hasFixForCve; + this.timeReleased = timeReleased; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchName") + private String patchName; + + /** + * Name of the patch recommendation. + * + * @param patchName the value to set + * @return this builder + */ + public Builder patchName(String patchName) { + this.patchName = patchName; + this.__explicitlySet__.add("patchName"); + return this; + } + /** Description of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("abstractText") + private String abstractText; + + /** + * Description of the patch recommendation. + * + * @param abstractText the value to set + * @return this builder + */ + public Builder abstractText(String abstractText) { + this.abstractText = abstractText; + this.__explicitlySet__.add("abstractText"); + return this; + } + /** Classification of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("classificationName") + private String classificationName; + + /** + * Classification of the patch recommendation. + * + * @param classificationName the value to set + * @return this builder + */ + public Builder classificationName(String classificationName) { + this.classificationName = classificationName; + this.__explicitlySet__.add("classificationName"); + return this; + } + /** Evaluation date for the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEvaluated") + private java.util.Date timeEvaluated; + + /** + * Evaluation date for the patch recommendation. + * + * @param timeEvaluated the value to set + * @return this builder + */ + public Builder timeEvaluated(java.util.Date timeEvaluated) { + this.timeEvaluated = timeEvaluated; + this.__explicitlySet__.add("timeEvaluated"); + return this; + } + /** If the patch has a fix for a CVE. */ + @com.fasterxml.jackson.annotation.JsonProperty("hasFixForCve") + private Boolean hasFixForCve; + + /** + * If the patch has a fix for a CVE. + * + * @param hasFixForCve the value to set + * @return this builder + */ + public Builder hasFixForCve(Boolean hasFixForCve) { + this.hasFixForCve = hasFixForCve; + this.__explicitlySet__.add("hasFixForCve"); + return this; + } + /** Release date for the patch. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private java.util.Date timeReleased; + + /** + * Release date for the patch. + * + * @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 PatchRecommendationsDetailsSummary build() { + PatchRecommendationsDetailsSummary model = + new PatchRecommendationsDetailsSummary( + this.patchName, + this.abstractText, + this.classificationName, + this.timeEvaluated, + this.hasFixForCve, + this.timeReleased); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PatchRecommendationsDetailsSummary model) { + if (model.wasPropertyExplicitlySet("patchName")) { + this.patchName(model.getPatchName()); + } + if (model.wasPropertyExplicitlySet("abstractText")) { + this.abstractText(model.getAbstractText()); + } + if (model.wasPropertyExplicitlySet("classificationName")) { + this.classificationName(model.getClassificationName()); + } + if (model.wasPropertyExplicitlySet("timeEvaluated")) { + this.timeEvaluated(model.getTimeEvaluated()); + } + if (model.wasPropertyExplicitlySet("hasFixForCve")) { + this.hasFixForCve(model.getHasFixForCve()); + } + 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); + } + + /** Name of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchName") + private final String patchName; + + /** + * Name of the patch recommendation. + * + * @return the value + */ + public String getPatchName() { + return patchName; + } + + /** Description of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("abstractText") + private final String abstractText; + + /** + * Description of the patch recommendation. + * + * @return the value + */ + public String getAbstractText() { + return abstractText; + } + + /** Classification of the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("classificationName") + private final String classificationName; + + /** + * Classification of the patch recommendation. + * + * @return the value + */ + public String getClassificationName() { + return classificationName; + } + + /** Evaluation date for the patch recommendation. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeEvaluated") + private final java.util.Date timeEvaluated; + + /** + * Evaluation date for the patch recommendation. + * + * @return the value + */ + public java.util.Date getTimeEvaluated() { + return timeEvaluated; + } + + /** If the patch has a fix for a CVE. */ + @com.fasterxml.jackson.annotation.JsonProperty("hasFixForCve") + private final Boolean hasFixForCve; + + /** + * If the patch has a fix for a CVE. + * + * @return the value + */ + public Boolean getHasFixForCve() { + return hasFixForCve; + } + + /** Release date for the patch. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeReleased") + private final java.util.Date timeReleased; + + /** + * Release date for the patch. + * + * @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("PatchRecommendationsDetailsSummary("); + sb.append("super=").append(super.toString()); + sb.append("patchName=").append(String.valueOf(this.patchName)); + sb.append(", abstractText=").append(String.valueOf(this.abstractText)); + sb.append(", classificationName=").append(String.valueOf(this.classificationName)); + sb.append(", timeEvaluated=").append(String.valueOf(this.timeEvaluated)); + sb.append(", hasFixForCve=").append(String.valueOf(this.hasFixForCve)); + 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 PatchRecommendationsDetailsSummary)) { + return false; + } + + PatchRecommendationsDetailsSummary other = (PatchRecommendationsDetailsSummary) o; + return java.util.Objects.equals(this.patchName, other.patchName) + && java.util.Objects.equals(this.abstractText, other.abstractText) + && java.util.Objects.equals(this.classificationName, other.classificationName) + && java.util.Objects.equals(this.timeEvaluated, other.timeEvaluated) + && java.util.Objects.equals(this.hasFixForCve, other.hasFixForCve) + && 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.patchName == null ? 43 : this.patchName.hashCode()); + result = (result * PRIME) + (this.abstractText == null ? 43 : this.abstractText.hashCode()); + result = + (result * PRIME) + + (this.classificationName == null + ? 43 + : this.classificationName.hashCode()); + result = + (result * PRIME) + + (this.timeEvaluated == null ? 43 : this.timeEvaluated.hashCode()); + result = (result * PRIME) + (this.hasFixForCve == null ? 43 : this.hasFixForCve.hashCode()); + result = (result * PRIME) + (this.timeReleased == null ? 43 : this.timeReleased.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceInfo.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceInfo.java new file mode 100644 index 00000000000..d6b8ec97442 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceInfo.java @@ -0,0 +1,525 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The Resource Info.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceInfo.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceInfo extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "resourceCompartmentId", + "resourceName", + "resourceId", + "resourceType", + "deploymentType", + "connectorId", + "isClusterDb", + "hostInfo", + "dbVersion", + "dbPlatformType", + "licenseType" + }) + public ResourceInfo( + String resourceCompartmentId, + String resourceName, + String resourceId, + String resourceType, + String deploymentType, + String connectorId, + Boolean isClusterDb, + java.util.List hostInfo, + String dbVersion, + String dbPlatformType, + String licenseType) { + super(); + this.resourceCompartmentId = resourceCompartmentId; + this.resourceName = resourceName; + this.resourceId = resourceId; + this.resourceType = resourceType; + this.deploymentType = deploymentType; + this.connectorId = connectorId; + this.isClusterDb = isClusterDb; + this.hostInfo = hostInfo; + this.dbVersion = dbVersion; + this.dbPlatformType = dbPlatformType; + this.licenseType = licenseType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The compartmentId of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private String resourceCompartmentId; + + /** + * The compartmentId of the resource. + * + * @param resourceCompartmentId the value to set + * @return this builder + */ + public Builder resourceCompartmentId(String resourceCompartmentId) { + this.resourceCompartmentId = resourceCompartmentId; + this.__explicitlySet__.add("resourceCompartmentId"); + return this; + } + /** The name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private String resourceName; + + /** + * The name of the resource. + * + * @param resourceName the value to set + * @return this builder + */ + public Builder resourceName(String resourceName) { + this.resourceName = resourceName; + this.__explicitlySet__.add("resourceName"); + return this; + } + /** The Id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + /** + * The Id of the resource. + * + * @param resourceId the value to set + * @return this builder + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + /** The type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private String resourceType; + + /** + * The type of the resource. + * + * @param resourceType the value to set + * @return this builder + */ + public Builder resourceType(String resourceType) { + this.resourceType = resourceType; + this.__explicitlySet__.add("resourceType"); + return this; + } + /** The deployment type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private String deploymentType; + + /** + * The deployment type of the resource. + * + * @param deploymentType the value to set + * @return this builder + */ + public Builder deploymentType(String deploymentType) { + this.deploymentType = deploymentType; + this.__explicitlySet__.add("deploymentType"); + return this; + } + /** The connector Id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private String connectorId; + + /** + * The connector Id of the resource. + * + * @param connectorId the value to set + * @return this builder + */ + public Builder connectorId(String connectorId) { + this.connectorId = connectorId; + this.__explicitlySet__.add("connectorId"); + return this; + } + /** True if it is a cluster db. */ + @com.fasterxml.jackson.annotation.JsonProperty("isClusterDb") + private Boolean isClusterDb; + + /** + * True if it is a cluster db. + * + * @param isClusterDb the value to set + * @return this builder + */ + public Builder isClusterDb(Boolean isClusterDb) { + this.isClusterDb = isClusterDb; + this.__explicitlySet__.add("isClusterDb"); + return this; + } + /** host info objects */ + @com.fasterxml.jackson.annotation.JsonProperty("hostInfo") + private java.util.List hostInfo; + + /** + * host info objects + * + * @param hostInfo the value to set + * @return this builder + */ + public Builder hostInfo(java.util.List hostInfo) { + this.hostInfo = hostInfo; + this.__explicitlySet__.add("hostInfo"); + return this; + } + /** The version of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + /** + * The version of the resource. + * + * @param dbVersion the value to set + * @return this builder + */ + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + /** The platform type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbPlatformType") + private String dbPlatformType; + + /** + * The platform type of the resource. + * + * @param dbPlatformType the value to set + * @return this builder + */ + public Builder dbPlatformType(String dbPlatformType) { + this.dbPlatformType = dbPlatformType; + this.__explicitlySet__.add("dbPlatformType"); + return this; + } + /** The License Type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseType") + private String licenseType; + + /** + * The License Type of the resource. + * + * @param licenseType the value to set + * @return this builder + */ + public Builder licenseType(String licenseType) { + this.licenseType = licenseType; + this.__explicitlySet__.add("licenseType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceInfo build() { + ResourceInfo model = + new ResourceInfo( + this.resourceCompartmentId, + this.resourceName, + this.resourceId, + this.resourceType, + this.deploymentType, + this.connectorId, + this.isClusterDb, + this.hostInfo, + this.dbVersion, + this.dbPlatformType, + this.licenseType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceInfo model) { + if (model.wasPropertyExplicitlySet("resourceCompartmentId")) { + this.resourceCompartmentId(model.getResourceCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resourceName")) { + this.resourceName(model.getResourceName()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("resourceType")) { + this.resourceType(model.getResourceType()); + } + if (model.wasPropertyExplicitlySet("deploymentType")) { + this.deploymentType(model.getDeploymentType()); + } + if (model.wasPropertyExplicitlySet("connectorId")) { + this.connectorId(model.getConnectorId()); + } + if (model.wasPropertyExplicitlySet("isClusterDb")) { + this.isClusterDb(model.getIsClusterDb()); + } + if (model.wasPropertyExplicitlySet("hostInfo")) { + this.hostInfo(model.getHostInfo()); + } + if (model.wasPropertyExplicitlySet("dbVersion")) { + this.dbVersion(model.getDbVersion()); + } + if (model.wasPropertyExplicitlySet("dbPlatformType")) { + this.dbPlatformType(model.getDbPlatformType()); + } + if (model.wasPropertyExplicitlySet("licenseType")) { + this.licenseType(model.getLicenseType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The compartmentId of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceCompartmentId") + private final String resourceCompartmentId; + + /** + * The compartmentId of the resource. + * + * @return the value + */ + public String getResourceCompartmentId() { + return resourceCompartmentId; + } + + /** The name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceName") + private final String resourceName; + + /** + * The name of the resource. + * + * @return the value + */ + public String getResourceName() { + return resourceName; + } + + /** The Id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private final String resourceId; + + /** + * The Id of the resource. + * + * @return the value + */ + public String getResourceId() { + return resourceId; + } + + /** The type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("resourceType") + private final String resourceType; + + /** + * The type of the resource. + * + * @return the value + */ + public String getResourceType() { + return resourceType; + } + + /** The deployment type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("deploymentType") + private final String deploymentType; + + /** + * The deployment type of the resource. + * + * @return the value + */ + public String getDeploymentType() { + return deploymentType; + } + + /** The connector Id of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectorId") + private final String connectorId; + + /** + * The connector Id of the resource. + * + * @return the value + */ + public String getConnectorId() { + return connectorId; + } + + /** True if it is a cluster db. */ + @com.fasterxml.jackson.annotation.JsonProperty("isClusterDb") + private final Boolean isClusterDb; + + /** + * True if it is a cluster db. + * + * @return the value + */ + public Boolean getIsClusterDb() { + return isClusterDb; + } + + /** host info objects */ + @com.fasterxml.jackson.annotation.JsonProperty("hostInfo") + private final java.util.List hostInfo; + + /** + * host info objects + * + * @return the value + */ + public java.util.List getHostInfo() { + return hostInfo; + } + + /** The version of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private final String dbVersion; + + /** + * The version of the resource. + * + * @return the value + */ + public String getDbVersion() { + return dbVersion; + } + + /** The platform type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbPlatformType") + private final String dbPlatformType; + + /** + * The platform type of the resource. + * + * @return the value + */ + public String getDbPlatformType() { + return dbPlatformType; + } + + /** The License Type of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseType") + private final String licenseType; + + /** + * The License Type of the resource. + * + * @return the value + */ + public String getLicenseType() { + return licenseType; + } + + @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("ResourceInfo("); + sb.append("super=").append(super.toString()); + sb.append("resourceCompartmentId=").append(String.valueOf(this.resourceCompartmentId)); + sb.append(", resourceName=").append(String.valueOf(this.resourceName)); + sb.append(", resourceId=").append(String.valueOf(this.resourceId)); + sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", deploymentType=").append(String.valueOf(this.deploymentType)); + sb.append(", connectorId=").append(String.valueOf(this.connectorId)); + sb.append(", isClusterDb=").append(String.valueOf(this.isClusterDb)); + sb.append(", hostInfo=").append(String.valueOf(this.hostInfo)); + sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); + sb.append(", dbPlatformType=").append(String.valueOf(this.dbPlatformType)); + sb.append(", licenseType=").append(String.valueOf(this.licenseType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceInfo)) { + return false; + } + + ResourceInfo other = (ResourceInfo) o; + return java.util.Objects.equals(this.resourceCompartmentId, other.resourceCompartmentId) + && java.util.Objects.equals(this.resourceName, other.resourceName) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.deploymentType, other.deploymentType) + && java.util.Objects.equals(this.connectorId, other.connectorId) + && java.util.Objects.equals(this.isClusterDb, other.isClusterDb) + && java.util.Objects.equals(this.hostInfo, other.hostInfo) + && java.util.Objects.equals(this.dbVersion, other.dbVersion) + && java.util.Objects.equals(this.dbPlatformType, other.dbPlatformType) + && java.util.Objects.equals(this.licenseType, other.licenseType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.resourceCompartmentId == null + ? 43 + : this.resourceCompartmentId.hashCode()); + result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.deploymentType == null ? 43 : this.deploymentType.hashCode()); + result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.hashCode()); + result = (result * PRIME) + (this.isClusterDb == null ? 43 : this.isClusterDb.hashCode()); + result = (result * PRIME) + (this.hostInfo == null ? 43 : this.hostInfo.hashCode()); + result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); + result = + (result * PRIME) + + (this.dbPlatformType == null ? 43 : this.dbPlatformType.hashCode()); + result = (result * PRIME) + (this.licenseType == null ? 43 : this.licenseType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceSummary.java new file mode 100644 index 00000000000..99ed2125843 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourceSummary.java @@ -0,0 +1,358 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Summary of dblm registered and unregistered 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ResourceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "totalResourcesCount", + "registeredResourcesCount", + "notRegisteredResourcesCount", + "vulnerableResourcesCount", + "cleanResourcesCount", + "errorResourcesCount" + }) + public ResourceSummary( + Integer totalResourcesCount, + Integer registeredResourcesCount, + Integer notRegisteredResourcesCount, + Integer vulnerableResourcesCount, + Integer cleanResourcesCount, + Integer errorResourcesCount) { + super(); + this.totalResourcesCount = totalResourcesCount; + this.registeredResourcesCount = registeredResourcesCount; + this.notRegisteredResourcesCount = notRegisteredResourcesCount; + this.vulnerableResourcesCount = vulnerableResourcesCount; + this.cleanResourcesCount = cleanResourcesCount; + this.errorResourcesCount = errorResourcesCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The total number of resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalResourcesCount") + private Integer totalResourcesCount; + + /** + * The total number of resources. + * + * @param totalResourcesCount the value to set + * @return this builder + */ + public Builder totalResourcesCount(Integer totalResourcesCount) { + this.totalResourcesCount = totalResourcesCount; + this.__explicitlySet__.add("totalResourcesCount"); + return this; + } + /** The total number of registered resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("registeredResourcesCount") + private Integer registeredResourcesCount; + + /** + * The total number of registered resources. + * + * @param registeredResourcesCount the value to set + * @return this builder + */ + public Builder registeredResourcesCount(Integer registeredResourcesCount) { + this.registeredResourcesCount = registeredResourcesCount; + this.__explicitlySet__.add("registeredResourcesCount"); + return this; + } + /** The total number of resources that are not registered. */ + @com.fasterxml.jackson.annotation.JsonProperty("notRegisteredResourcesCount") + private Integer notRegisteredResourcesCount; + + /** + * The total number of resources that are not registered. + * + * @param notRegisteredResourcesCount the value to set + * @return this builder + */ + public Builder notRegisteredResourcesCount(Integer notRegisteredResourcesCount) { + this.notRegisteredResourcesCount = notRegisteredResourcesCount; + this.__explicitlySet__.add("notRegisteredResourcesCount"); + return this; + } + /** Total number of resources that have 1 or more vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerableResourcesCount") + private Integer vulnerableResourcesCount; + + /** + * Total number of resources that have 1 or more vulnerabilities. + * + * @param vulnerableResourcesCount the value to set + * @return this builder + */ + public Builder vulnerableResourcesCount(Integer vulnerableResourcesCount) { + this.vulnerableResourcesCount = vulnerableResourcesCount; + this.__explicitlySet__.add("vulnerableResourcesCount"); + return this; + } + /** Total number of resources that have 0 vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("cleanResourcesCount") + private Integer cleanResourcesCount; + + /** + * Total number of resources that have 0 vulnerabilities. + * + * @param cleanResourcesCount the value to set + * @return this builder + */ + public Builder cleanResourcesCount(Integer cleanResourcesCount) { + this.cleanResourcesCount = cleanResourcesCount; + this.__explicitlySet__.add("cleanResourcesCount"); + return this; + } + /** Total number of resources that contain an error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorResourcesCount") + private Integer errorResourcesCount; + + /** + * Total number of resources that contain an error. + * + * @param errorResourcesCount the value to set + * @return this builder + */ + public Builder errorResourcesCount(Integer errorResourcesCount) { + this.errorResourcesCount = errorResourcesCount; + this.__explicitlySet__.add("errorResourcesCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ResourceSummary build() { + ResourceSummary model = + new ResourceSummary( + this.totalResourcesCount, + this.registeredResourcesCount, + this.notRegisteredResourcesCount, + this.vulnerableResourcesCount, + this.cleanResourcesCount, + this.errorResourcesCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ResourceSummary model) { + if (model.wasPropertyExplicitlySet("totalResourcesCount")) { + this.totalResourcesCount(model.getTotalResourcesCount()); + } + if (model.wasPropertyExplicitlySet("registeredResourcesCount")) { + this.registeredResourcesCount(model.getRegisteredResourcesCount()); + } + if (model.wasPropertyExplicitlySet("notRegisteredResourcesCount")) { + this.notRegisteredResourcesCount(model.getNotRegisteredResourcesCount()); + } + if (model.wasPropertyExplicitlySet("vulnerableResourcesCount")) { + this.vulnerableResourcesCount(model.getVulnerableResourcesCount()); + } + if (model.wasPropertyExplicitlySet("cleanResourcesCount")) { + this.cleanResourcesCount(model.getCleanResourcesCount()); + } + if (model.wasPropertyExplicitlySet("errorResourcesCount")) { + this.errorResourcesCount(model.getErrorResourcesCount()); + } + 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 resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("totalResourcesCount") + private final Integer totalResourcesCount; + + /** + * The total number of resources. + * + * @return the value + */ + public Integer getTotalResourcesCount() { + return totalResourcesCount; + } + + /** The total number of registered resources. */ + @com.fasterxml.jackson.annotation.JsonProperty("registeredResourcesCount") + private final Integer registeredResourcesCount; + + /** + * The total number of registered resources. + * + * @return the value + */ + public Integer getRegisteredResourcesCount() { + return registeredResourcesCount; + } + + /** The total number of resources that are not registered. */ + @com.fasterxml.jackson.annotation.JsonProperty("notRegisteredResourcesCount") + private final Integer notRegisteredResourcesCount; + + /** + * The total number of resources that are not registered. + * + * @return the value + */ + public Integer getNotRegisteredResourcesCount() { + return notRegisteredResourcesCount; + } + + /** Total number of resources that have 1 or more vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerableResourcesCount") + private final Integer vulnerableResourcesCount; + + /** + * Total number of resources that have 1 or more vulnerabilities. + * + * @return the value + */ + public Integer getVulnerableResourcesCount() { + return vulnerableResourcesCount; + } + + /** Total number of resources that have 0 vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("cleanResourcesCount") + private final Integer cleanResourcesCount; + + /** + * Total number of resources that have 0 vulnerabilities. + * + * @return the value + */ + public Integer getCleanResourcesCount() { + return cleanResourcesCount; + } + + /** Total number of resources that contain an error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorResourcesCount") + private final Integer errorResourcesCount; + + /** + * Total number of resources that contain an error. + * + * @return the value + */ + public Integer getErrorResourcesCount() { + return errorResourcesCount; + } + + @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("ResourceSummary("); + sb.append("super=").append(super.toString()); + sb.append("totalResourcesCount=").append(String.valueOf(this.totalResourcesCount)); + sb.append(", registeredResourcesCount=") + .append(String.valueOf(this.registeredResourcesCount)); + sb.append(", notRegisteredResourcesCount=") + .append(String.valueOf(this.notRegisteredResourcesCount)); + sb.append(", vulnerableResourcesCount=") + .append(String.valueOf(this.vulnerableResourcesCount)); + sb.append(", cleanResourcesCount=").append(String.valueOf(this.cleanResourcesCount)); + sb.append(", errorResourcesCount=").append(String.valueOf(this.errorResourcesCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResourceSummary)) { + return false; + } + + ResourceSummary other = (ResourceSummary) o; + return java.util.Objects.equals(this.totalResourcesCount, other.totalResourcesCount) + && java.util.Objects.equals( + this.registeredResourcesCount, other.registeredResourcesCount) + && java.util.Objects.equals( + this.notRegisteredResourcesCount, other.notRegisteredResourcesCount) + && java.util.Objects.equals( + this.vulnerableResourcesCount, other.vulnerableResourcesCount) + && java.util.Objects.equals(this.cleanResourcesCount, other.cleanResourcesCount) + && java.util.Objects.equals(this.errorResourcesCount, other.errorResourcesCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.totalResourcesCount == null + ? 43 + : this.totalResourcesCount.hashCode()); + result = + (result * PRIME) + + (this.registeredResourcesCount == null + ? 43 + : this.registeredResourcesCount.hashCode()); + result = + (result * PRIME) + + (this.notRegisteredResourcesCount == null + ? 43 + : this.notRegisteredResourcesCount.hashCode()); + result = + (result * PRIME) + + (this.vulnerableResourcesCount == null + ? 43 + : this.vulnerableResourcesCount.hashCode()); + result = + (result * PRIME) + + (this.cleanResourcesCount == null + ? 43 + : this.cleanResourcesCount.hashCode()); + result = + (result * PRIME) + + (this.errorResourcesCount == null + ? 43 + : this.errorResourcesCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourcesSeverities.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourcesSeverities.java new file mode 100644 index 00000000000..d5d748533de --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/ResourcesSeverities.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Applicable severity types are critical, high, medium, low, info and none. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum ResourcesSeverities implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + Info("INFO"), + None("NONE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ResourcesSeverities v : ResourcesSeverities.values()) { + map.put(v.getValue(), v); + } + } + + ResourcesSeverities(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ResourcesSeverities create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ResourcesSeverities: " + key); + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/SortOrder.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/SortOrder.java new file mode 100644 index 00000000000..276deb391d8 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/SortOrder.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Sort orders. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + 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-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitiesSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitiesSummary.java new file mode 100644 index 00000000000..392f286669f --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitiesSummary.java @@ -0,0 +1,317 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Summary of vulnerabilities found in registered resources grouped by severity.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilitiesSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilitiesSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"total", "critical", "high", "medium", "info", "low"}) + public VulnerabilitiesSummary( + Integer total, + Integer critical, + Integer high, + Integer medium, + Integer info, + Integer low) { + super(); + this.total = total; + this.critical = critical; + this.high = high; + this.medium = medium; + this.info = info; + this.low = low; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Total number of vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private Integer total; + + /** + * Total number of vulnerabilities. + * + * @param total the value to set + * @return this builder + */ + public Builder total(Integer total) { + this.total = total; + this.__explicitlySet__.add("total"); + return this; + } + /** Cummulative number of resources that have critical level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("critical") + private Integer critical; + + /** + * Cummulative number of resources that have critical level vulnerabilities. + * + * @param critical the value to set + * @return this builder + */ + public Builder critical(Integer critical) { + this.critical = critical; + this.__explicitlySet__.add("critical"); + return this; + } + /** Cummulative number of resources that have high level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("high") + private Integer high; + + /** + * Cummulative number of resources that have high level vulnerabilities. + * + * @param high the value to set + * @return this builder + */ + public Builder high(Integer high) { + this.high = high; + this.__explicitlySet__.add("high"); + return this; + } + /** Cummulative number of resources that have medium level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("medium") + private Integer medium; + + /** + * Cummulative number of resources that have medium level vulnerabilities. + * + * @param medium the value to set + * @return this builder + */ + public Builder medium(Integer medium) { + this.medium = medium; + this.__explicitlySet__.add("medium"); + return this; + } + /** Cummulative number of resources that have info level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("info") + private Integer info; + + /** + * Cummulative number of resources that have info level vulnerabilities. + * + * @param info the value to set + * @return this builder + */ + public Builder info(Integer info) { + this.info = info; + this.__explicitlySet__.add("info"); + return this; + } + /** Cummulative number of resources that have low level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("low") + private Integer low; + + /** + * Cummulative number of resources that have low level vulnerabilities. + * + * @param low the value to set + * @return this builder + */ + public Builder low(Integer low) { + this.low = low; + this.__explicitlySet__.add("low"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VulnerabilitiesSummary build() { + VulnerabilitiesSummary model = + new VulnerabilitiesSummary( + this.total, this.critical, this.high, this.medium, this.info, this.low); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilitiesSummary model) { + if (model.wasPropertyExplicitlySet("total")) { + this.total(model.getTotal()); + } + if (model.wasPropertyExplicitlySet("critical")) { + this.critical(model.getCritical()); + } + if (model.wasPropertyExplicitlySet("high")) { + this.high(model.getHigh()); + } + if (model.wasPropertyExplicitlySet("medium")) { + this.medium(model.getMedium()); + } + if (model.wasPropertyExplicitlySet("info")) { + this.info(model.getInfo()); + } + if (model.wasPropertyExplicitlySet("low")) { + this.low(model.getLow()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Total number of vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("total") + private final Integer total; + + /** + * Total number of vulnerabilities. + * + * @return the value + */ + public Integer getTotal() { + return total; + } + + /** Cummulative number of resources that have critical level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("critical") + private final Integer critical; + + /** + * Cummulative number of resources that have critical level vulnerabilities. + * + * @return the value + */ + public Integer getCritical() { + return critical; + } + + /** Cummulative number of resources that have high level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("high") + private final Integer high; + + /** + * Cummulative number of resources that have high level vulnerabilities. + * + * @return the value + */ + public Integer getHigh() { + return high; + } + + /** Cummulative number of resources that have medium level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("medium") + private final Integer medium; + + /** + * Cummulative number of resources that have medium level vulnerabilities. + * + * @return the value + */ + public Integer getMedium() { + return medium; + } + + /** Cummulative number of resources that have info level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("info") + private final Integer info; + + /** + * Cummulative number of resources that have info level vulnerabilities. + * + * @return the value + */ + public Integer getInfo() { + return info; + } + + /** Cummulative number of resources that have low level vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("low") + private final Integer low; + + /** + * Cummulative number of resources that have low level vulnerabilities. + * + * @return the value + */ + public Integer getLow() { + return low; + } + + @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("VulnerabilitiesSummary("); + sb.append("super=").append(super.toString()); + sb.append("total=").append(String.valueOf(this.total)); + sb.append(", critical=").append(String.valueOf(this.critical)); + sb.append(", high=").append(String.valueOf(this.high)); + sb.append(", medium=").append(String.valueOf(this.medium)); + sb.append(", info=").append(String.valueOf(this.info)); + sb.append(", low=").append(String.valueOf(this.low)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VulnerabilitiesSummary)) { + return false; + } + + VulnerabilitiesSummary other = (VulnerabilitiesSummary) o; + return java.util.Objects.equals(this.total, other.total) + && java.util.Objects.equals(this.critical, other.critical) + && java.util.Objects.equals(this.high, other.high) + && java.util.Objects.equals(this.medium, other.medium) + && java.util.Objects.equals(this.info, other.info) + && java.util.Objects.equals(this.low, other.low) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.total == null ? 43 : this.total.hashCode()); + result = (result * PRIME) + (this.critical == null ? 43 : this.critical.hashCode()); + result = (result * PRIME) + (this.high == null ? 43 : this.high.hashCode()); + result = (result * PRIME) + (this.medium == null ? 43 : this.medium.hashCode()); + result = (result * PRIME) + (this.info == null ? 43 : this.info.hashCode()); + result = (result * PRIME) + (this.low == null ? 43 : this.low.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityCollection.java new file mode 100644 index 00000000000..336a3e44618 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Collection of vulnerabilities, with aggregation for 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VulnerabilityCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of vulnerability summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Collection of vulnerability summary 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 VulnerabilityCollection build() { + VulnerabilityCollection model = new VulnerabilityCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityCollection 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); + } + + /** Collection of vulnerability summary items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Collection of vulnerability summary 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("VulnerabilityCollection("); + 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 VulnerabilityCollection)) { + return false; + } + + VulnerabilityCollection other = (VulnerabilityCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceCollection.java new file mode 100644 index 00000000000..ee0865bb531 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Collection of assessed resources that may or may not have vulnerabilities
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityResourceCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityResourceCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VulnerabilityResourceCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Collection of assessed resources */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Collection of assessed 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 VulnerabilityResourceCollection build() { + VulnerabilityResourceCollection model = new VulnerabilityResourceCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityResourceCollection 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); + } + + /** Collection of assessed resources */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Collection of assessed 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("VulnerabilityResourceCollection("); + 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 VulnerabilityResourceCollection)) { + return false; + } + + VulnerabilityResourceCollection other = (VulnerabilityResourceCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceSummary.java new file mode 100644 index 00000000000..f369229090b --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityResourceSummary.java @@ -0,0 +1,659 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The assessed 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityResourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityResourceSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "name", + "version", + "release", + "platform", + "timeConfigCollected", + "timeScanEnded", + "imageId", + "subscribedImage", + "metricErrors", + "childPdbs", + "vulnerabilitiesSummary", + "patchRecommendationsSummary", + "patchRecommendationsDetails" + }) + public VulnerabilityResourceSummary( + String id, + String name, + String version, + String release, + String platform, + java.util.Date timeConfigCollected, + java.util.Date timeScanEnded, + String imageId, + String subscribedImage, + java.util.List metricErrors, + java.util.List childPdbs, + Object vulnerabilitiesSummary, + Object patchRecommendationsSummary, + java.util.List patchRecommendationsDetails) { + super(); + this.id = id; + this.name = name; + this.version = version; + this.release = release; + this.platform = platform; + this.timeConfigCollected = timeConfigCollected; + this.timeScanEnded = timeScanEnded; + this.imageId = imageId; + this.subscribedImage = subscribedImage; + this.metricErrors = metricErrors; + this.childPdbs = childPdbs; + this.vulnerabilitiesSummary = vulnerabilitiesSummary; + this.patchRecommendationsSummary = patchRecommendationsSummary; + this.patchRecommendationsDetails = patchRecommendationsDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource ID for this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The resource ID for this resource. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** The name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the resource. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** A string representing the version of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + /** + * A string representing the version of the resource. + * + * @param version the value to set + * @return this builder + */ + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + /** A string representing the release of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("release") + private String release; + + /** + * A string representing the release of the resource. + * + * @param release the value to set + * @return this builder + */ + public Builder release(String release) { + this.release = release; + this.__explicitlySet__.add("release"); + return this; + } + /** A string representing the platform of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private String platform; + + /** + * A string representing the platform of the resource. + * + * @param platform the value to set + * @return this builder + */ + public Builder platform(String platform) { + this.platform = platform; + this.__explicitlySet__.add("platform"); + return this; + } + /** Time when the latest configuration collection happened. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConfigCollected") + private java.util.Date timeConfigCollected; + + /** + * Time when the latest configuration collection happened. + * + * @param timeConfigCollected the value to set + * @return this builder + */ + public Builder timeConfigCollected(java.util.Date timeConfigCollected) { + this.timeConfigCollected = timeConfigCollected; + this.__explicitlySet__.add("timeConfigCollected"); + return this; + } + /** Time when the latest scan happened for the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScanEnded") + private java.util.Date timeScanEnded; + + /** + * Time when the latest scan happened for the resource. + * + * @param timeScanEnded the value to set + * @return this builder + */ + public Builder timeScanEnded(java.util.Date timeScanEnded) { + this.timeScanEnded = timeScanEnded; + this.__explicitlySet__.add("timeScanEnded"); + return this; + } + /** Identifier for the resource is subscribed to. */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private String imageId; + + /** + * Identifier for the resource is subscribed to. + * + * @param imageId the value to set + * @return this builder + */ + public Builder imageId(String imageId) { + this.imageId = imageId; + this.__explicitlySet__.add("imageId"); + return this; + } + /** Image the resource is subscribed to. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedImage") + private String subscribedImage; + + /** + * Image the resource is subscribed to. + * + * @param subscribedImage the value to set + * @return this builder + */ + public Builder subscribedImage(String subscribedImage) { + this.subscribedImage = subscribedImage; + this.__explicitlySet__.add("subscribedImage"); + return this; + } + /** Metric errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricErrors") + private java.util.List metricErrors; + + /** + * Metric errors. + * + * @param metricErrors the value to set + * @return this builder + */ + public Builder metricErrors(java.util.List metricErrors) { + this.metricErrors = metricErrors; + this.__explicitlySet__.add("metricErrors"); + return this; + } + /** PDBs for a CDB. */ + @com.fasterxml.jackson.annotation.JsonProperty("childPdbs") + private java.util.List childPdbs; + + /** + * PDBs for a CDB. + * + * @param childPdbs the value to set + * @return this builder + */ + public Builder childPdbs(java.util.List childPdbs) { + this.childPdbs = childPdbs; + this.__explicitlySet__.add("childPdbs"); + return this; + } + /** Summary of the resources that are registered and may or may not have vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesSummary") + private Object vulnerabilitiesSummary; + + /** + * Summary of the resources that are registered and may or may not have vulnerabilities. + * + * @param vulnerabilitiesSummary the value to set + * @return this builder + */ + public Builder vulnerabilitiesSummary(Object vulnerabilitiesSummary) { + this.vulnerabilitiesSummary = vulnerabilitiesSummary; + this.__explicitlySet__.add("vulnerabilitiesSummary"); + return this; + } + /** Summary of the patch recommendations for databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsSummary") + private Object patchRecommendationsSummary; + + /** + * Summary of the patch recommendations for databases. + * + * @param patchRecommendationsSummary the value to set + * @return this builder + */ + public Builder patchRecommendationsSummary(Object patchRecommendationsSummary) { + this.patchRecommendationsSummary = patchRecommendationsSummary; + this.__explicitlySet__.add("patchRecommendationsSummary"); + return this; + } + /** List of the patch recommendations for databases */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsDetails") + private java.util.List patchRecommendationsDetails; + + /** + * List of the patch recommendations for databases + * + * @param patchRecommendationsDetails the value to set + * @return this builder + */ + public Builder patchRecommendationsDetails( + java.util.List patchRecommendationsDetails) { + this.patchRecommendationsDetails = patchRecommendationsDetails; + this.__explicitlySet__.add("patchRecommendationsDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VulnerabilityResourceSummary build() { + VulnerabilityResourceSummary model = + new VulnerabilityResourceSummary( + this.id, + this.name, + this.version, + this.release, + this.platform, + this.timeConfigCollected, + this.timeScanEnded, + this.imageId, + this.subscribedImage, + this.metricErrors, + this.childPdbs, + this.vulnerabilitiesSummary, + this.patchRecommendationsSummary, + this.patchRecommendationsDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityResourceSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("version")) { + this.version(model.getVersion()); + } + if (model.wasPropertyExplicitlySet("release")) { + this.release(model.getRelease()); + } + if (model.wasPropertyExplicitlySet("platform")) { + this.platform(model.getPlatform()); + } + if (model.wasPropertyExplicitlySet("timeConfigCollected")) { + this.timeConfigCollected(model.getTimeConfigCollected()); + } + if (model.wasPropertyExplicitlySet("timeScanEnded")) { + this.timeScanEnded(model.getTimeScanEnded()); + } + if (model.wasPropertyExplicitlySet("imageId")) { + this.imageId(model.getImageId()); + } + if (model.wasPropertyExplicitlySet("subscribedImage")) { + this.subscribedImage(model.getSubscribedImage()); + } + if (model.wasPropertyExplicitlySet("metricErrors")) { + this.metricErrors(model.getMetricErrors()); + } + if (model.wasPropertyExplicitlySet("childPdbs")) { + this.childPdbs(model.getChildPdbs()); + } + if (model.wasPropertyExplicitlySet("vulnerabilitiesSummary")) { + this.vulnerabilitiesSummary(model.getVulnerabilitiesSummary()); + } + if (model.wasPropertyExplicitlySet("patchRecommendationsSummary")) { + this.patchRecommendationsSummary(model.getPatchRecommendationsSummary()); + } + if (model.wasPropertyExplicitlySet("patchRecommendationsDetails")) { + this.patchRecommendationsDetails(model.getPatchRecommendationsDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The resource ID for this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The resource ID for this resource. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The name of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name of the resource. + * + * @return the value + */ + public String getName() { + return name; + } + + /** A string representing the version of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("version") + private final String version; + + /** + * A string representing the version of the resource. + * + * @return the value + */ + public String getVersion() { + return version; + } + + /** A string representing the release of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("release") + private final String release; + + /** + * A string representing the release of the resource. + * + * @return the value + */ + public String getRelease() { + return release; + } + + /** A string representing the platform of the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("platform") + private final String platform; + + /** + * A string representing the platform of the resource. + * + * @return the value + */ + public String getPlatform() { + return platform; + } + + /** Time when the latest configuration collection happened. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeConfigCollected") + private final java.util.Date timeConfigCollected; + + /** + * Time when the latest configuration collection happened. + * + * @return the value + */ + public java.util.Date getTimeConfigCollected() { + return timeConfigCollected; + } + + /** Time when the latest scan happened for the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeScanEnded") + private final java.util.Date timeScanEnded; + + /** + * Time when the latest scan happened for the resource. + * + * @return the value + */ + public java.util.Date getTimeScanEnded() { + return timeScanEnded; + } + + /** Identifier for the resource is subscribed to. */ + @com.fasterxml.jackson.annotation.JsonProperty("imageId") + private final String imageId; + + /** + * Identifier for the resource is subscribed to. + * + * @return the value + */ + public String getImageId() { + return imageId; + } + + /** Image the resource is subscribed to. */ + @com.fasterxml.jackson.annotation.JsonProperty("subscribedImage") + private final String subscribedImage; + + /** + * Image the resource is subscribed to. + * + * @return the value + */ + public String getSubscribedImage() { + return subscribedImage; + } + + /** Metric errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricErrors") + private final java.util.List metricErrors; + + /** + * Metric errors. + * + * @return the value + */ + public java.util.List getMetricErrors() { + return metricErrors; + } + + /** PDBs for a CDB. */ + @com.fasterxml.jackson.annotation.JsonProperty("childPdbs") + private final java.util.List childPdbs; + + /** + * PDBs for a CDB. + * + * @return the value + */ + public java.util.List getChildPdbs() { + return childPdbs; + } + + /** Summary of the resources that are registered and may or may not have vulnerabilities. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilitiesSummary") + private final Object vulnerabilitiesSummary; + + /** + * Summary of the resources that are registered and may or may not have vulnerabilities. + * + * @return the value + */ + public Object getVulnerabilitiesSummary() { + return vulnerabilitiesSummary; + } + + /** Summary of the patch recommendations for databases. */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsSummary") + private final Object patchRecommendationsSummary; + + /** + * Summary of the patch recommendations for databases. + * + * @return the value + */ + public Object getPatchRecommendationsSummary() { + return patchRecommendationsSummary; + } + + /** List of the patch recommendations for databases */ + @com.fasterxml.jackson.annotation.JsonProperty("patchRecommendationsDetails") + private final java.util.List patchRecommendationsDetails; + + /** + * List of the patch recommendations for databases + * + * @return the value + */ + public java.util.List getPatchRecommendationsDetails() { + return patchRecommendationsDetails; + } + + @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("VulnerabilityResourceSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", name=").append(String.valueOf(this.name)); + sb.append(", version=").append(String.valueOf(this.version)); + sb.append(", release=").append(String.valueOf(this.release)); + sb.append(", platform=").append(String.valueOf(this.platform)); + sb.append(", timeConfigCollected=").append(String.valueOf(this.timeConfigCollected)); + sb.append(", timeScanEnded=").append(String.valueOf(this.timeScanEnded)); + sb.append(", imageId=").append(String.valueOf(this.imageId)); + sb.append(", subscribedImage=").append(String.valueOf(this.subscribedImage)); + sb.append(", metricErrors=").append(String.valueOf(this.metricErrors)); + sb.append(", childPdbs=").append(String.valueOf(this.childPdbs)); + sb.append(", vulnerabilitiesSummary=").append(String.valueOf(this.vulnerabilitiesSummary)); + sb.append(", patchRecommendationsSummary=") + .append(String.valueOf(this.patchRecommendationsSummary)); + sb.append(", patchRecommendationsDetails=") + .append(String.valueOf(this.patchRecommendationsDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VulnerabilityResourceSummary)) { + return false; + } + + VulnerabilityResourceSummary other = (VulnerabilityResourceSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.version, other.version) + && java.util.Objects.equals(this.release, other.release) + && java.util.Objects.equals(this.platform, other.platform) + && java.util.Objects.equals(this.timeConfigCollected, other.timeConfigCollected) + && java.util.Objects.equals(this.timeScanEnded, other.timeScanEnded) + && java.util.Objects.equals(this.imageId, other.imageId) + && java.util.Objects.equals(this.subscribedImage, other.subscribedImage) + && java.util.Objects.equals(this.metricErrors, other.metricErrors) + && java.util.Objects.equals(this.childPdbs, other.childPdbs) + && java.util.Objects.equals( + this.vulnerabilitiesSummary, other.vulnerabilitiesSummary) + && java.util.Objects.equals( + this.patchRecommendationsSummary, other.patchRecommendationsSummary) + && java.util.Objects.equals( + this.patchRecommendationsDetails, other.patchRecommendationsDetails) + && 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.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); + result = (result * PRIME) + (this.release == null ? 43 : this.release.hashCode()); + result = (result * PRIME) + (this.platform == null ? 43 : this.platform.hashCode()); + result = + (result * PRIME) + + (this.timeConfigCollected == null + ? 43 + : this.timeConfigCollected.hashCode()); + result = + (result * PRIME) + + (this.timeScanEnded == null ? 43 : this.timeScanEnded.hashCode()); + result = (result * PRIME) + (this.imageId == null ? 43 : this.imageId.hashCode()); + result = + (result * PRIME) + + (this.subscribedImage == null ? 43 : this.subscribedImage.hashCode()); + result = (result * PRIME) + (this.metricErrors == null ? 43 : this.metricErrors.hashCode()); + result = (result * PRIME) + (this.childPdbs == null ? 43 : this.childPdbs.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilitiesSummary == null + ? 43 + : this.vulnerabilitiesSummary.hashCode()); + result = + (result * PRIME) + + (this.patchRecommendationsSummary == null + ? 43 + : this.patchRecommendationsSummary.hashCode()); + result = + (result * PRIME) + + (this.patchRecommendationsDetails == null + ? 43 + : this.patchRecommendationsDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityRiskLevel.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityRiskLevel.java new file mode 100644 index 00000000000..56654fceb35 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityRiskLevel.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Risk level of the vulnerability. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum VulnerabilityRiskLevel implements com.oracle.bmc.http.internal.BmcEnum { + Critical("CRITICAL"), + High("HIGH"), + Medium("MEDIUM"), + Low("LOW"), + Info("INFO"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VulnerabilityRiskLevel v : VulnerabilityRiskLevel.values()) { + map.put(v.getValue(), v); + } + } + + VulnerabilityRiskLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VulnerabilityRiskLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VulnerabilityRiskLevel: " + key); + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScan.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScan.java new file mode 100644 index 00000000000..a8ad7be0986 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScan.java @@ -0,0 +1,801 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * A VulnerabilityScan is a description of a VulnerabilityScan. + * + *

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.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityScan.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityScan + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "vulnerabilityScanType", + "vulnerabilityScanStatus", + "vulnerabilityScanMessage", + "timeCreated", + "timeEnded", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public VulnerabilityScan( + String id, + String displayName, + String compartmentId, + VulnerabilityScanType vulnerabilityScanType, + VulnerabilityScanStatus vulnerabilityScanStatus, + String vulnerabilityScanMessage, + java.util.Date timeCreated, + java.util.Date timeEnded, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.vulnerabilityScanType = vulnerabilityScanType; + this.vulnerabilityScanStatus = vulnerabilityScanStatus; + this.vulnerabilityScanMessage = vulnerabilityScanMessage; + this.timeCreated = timeCreated; + this.timeEnded = timeEnded; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + * + * @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. It does not have to be unique, and it is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. It does not have to be unique, and it 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; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.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; + } + /** Scan type is CVE, PATCH or IMAGE_PATCH */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private VulnerabilityScanType vulnerabilityScanType; + + /** + * Scan type is CVE, PATCH or IMAGE_PATCH + * + * @param vulnerabilityScanType the value to set + * @return this builder + */ + public Builder vulnerabilityScanType(VulnerabilityScanType vulnerabilityScanType) { + this.vulnerabilityScanType = vulnerabilityScanType; + this.__explicitlySet__.add("vulnerabilityScanType"); + return this; + } + /** The status of the vulnerability scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanStatus") + private VulnerabilityScanStatus vulnerabilityScanStatus; + + /** + * The status of the vulnerability scan. + * + * @param vulnerabilityScanStatus the value to set + * @return this builder + */ + public Builder vulnerabilityScanStatus(VulnerabilityScanStatus vulnerabilityScanStatus) { + this.vulnerabilityScanStatus = vulnerabilityScanStatus; + this.__explicitlySet__.add("vulnerabilityScanStatus"); + return this; + } + /** The message of the vulnerability scan status. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanMessage") + private String vulnerabilityScanMessage; + + /** + * The message of the vulnerability scan status. + * + * @param vulnerabilityScanMessage the value to set + * @return this builder + */ + public Builder vulnerabilityScanMessage(String vulnerabilityScanMessage) { + this.vulnerabilityScanMessage = vulnerabilityScanMessage; + this.__explicitlySet__.add("vulnerabilityScanMessage"); + return this; + } + /** + * The date and time the VulnerabilityScan 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 VulnerabilityScan 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 VulnerabilityScan 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("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the VulnerabilityScan was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @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 current state of the VulnerabilityScan. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the VulnerabilityScan. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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"}} + */ + @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. 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; + } + /** + * 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 VulnerabilityScan build() { + VulnerabilityScan model = + new VulnerabilityScan( + this.id, + this.displayName, + this.compartmentId, + this.vulnerabilityScanType, + this.vulnerabilityScanStatus, + this.vulnerabilityScanMessage, + this.timeCreated, + this.timeEnded, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityScan model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanType")) { + this.vulnerabilityScanType(model.getVulnerabilityScanType()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanStatus")) { + this.vulnerabilityScanStatus(model.getVulnerabilityScanStatus()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanMessage")) { + this.vulnerabilityScanMessage(model.getVulnerabilityScanMessage()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + * + * @return the value + */ + public String getId() { + return id; + } + + /** A user-friendly name. It does not have to be unique, and it is changeable. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. It does not have to be unique, and it is changeable. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.cloud.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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Scan type is CVE, PATCH or IMAGE_PATCH */ + public enum VulnerabilityScanType implements com.oracle.bmc.http.internal.BmcEnum { + Cve("CVE"), + Patch("PATCH"), + ImagePatch("IMAGE_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(VulnerabilityScanType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VulnerabilityScanType v : VulnerabilityScanType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VulnerabilityScanType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VulnerabilityScanType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VulnerabilityScanType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Scan type is CVE, PATCH or IMAGE_PATCH */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private final VulnerabilityScanType vulnerabilityScanType; + + /** + * Scan type is CVE, PATCH or IMAGE_PATCH + * + * @return the value + */ + public VulnerabilityScanType getVulnerabilityScanType() { + return vulnerabilityScanType; + } + + /** The status of the vulnerability scan. */ + public enum VulnerabilityScanStatus implements com.oracle.bmc.http.internal.BmcEnum { + Completed("COMPLETED"), + Error("ERROR"), + Running("RUNNING"), + Aborted("ABORTED"), + + /** + * 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(VulnerabilityScanStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VulnerabilityScanStatus v : VulnerabilityScanStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + VulnerabilityScanStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VulnerabilityScanStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'VulnerabilityScanStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The status of the vulnerability scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanStatus") + private final VulnerabilityScanStatus vulnerabilityScanStatus; + + /** + * The status of the vulnerability scan. + * + * @return the value + */ + public VulnerabilityScanStatus getVulnerabilityScanStatus() { + return vulnerabilityScanStatus; + } + + /** The message of the vulnerability scan status. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanMessage") + private final String vulnerabilityScanMessage; + + /** + * The message of the vulnerability scan status. + * + * @return the value + */ + public String getVulnerabilityScanMessage() { + return vulnerabilityScanMessage; + } + + /** + * The date and time the VulnerabilityScan 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 VulnerabilityScan 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 VulnerabilityScan 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("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the VulnerabilityScan 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 getTimeEnded() { + return timeEnded; + } + + /** The current state of the VulnerabilityScan. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + 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 VulnerabilityScan. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the VulnerabilityScan. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. 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. 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; + } + + /** + * 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("VulnerabilityScan("); + sb.append("super=").append(super.toString()); + 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(", vulnerabilityScanType=").append(String.valueOf(this.vulnerabilityScanType)); + sb.append(", vulnerabilityScanStatus=") + .append(String.valueOf(this.vulnerabilityScanStatus)); + sb.append(", vulnerabilityScanMessage=") + .append(String.valueOf(this.vulnerabilityScanMessage)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + 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(", 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 VulnerabilityScan)) { + return false; + } + + VulnerabilityScan other = (VulnerabilityScan) 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.vulnerabilityScanType, other.vulnerabilityScanType) + && java.util.Objects.equals( + this.vulnerabilityScanStatus, other.vulnerabilityScanStatus) + && java.util.Objects.equals( + this.vulnerabilityScanMessage, other.vulnerabilityScanMessage) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && 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.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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanType == null + ? 43 + : this.vulnerabilityScanType.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanStatus == null + ? 43 + : this.vulnerabilityScanStatus.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanMessage == null + ? 43 + : this.vulnerabilityScanMessage.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (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.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanCollection.java new file mode 100644 index 00000000000..6680de61b80 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Results of a VulnerabilityScan search. Contains list of VulnerabilityScanSummary 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityScanCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityScanCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VulnerabilityScanCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of VulnerabilityScans. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of VulnerabilityScans. + * + * @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 VulnerabilityScanCollection build() { + VulnerabilityScanCollection model = new VulnerabilityScanCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityScanCollection 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 VulnerabilityScans. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of VulnerabilityScans. + * + * @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("VulnerabilityScanCollection("); + 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 VulnerabilityScanCollection)) { + return false; + } + + VulnerabilityScanCollection other = (VulnerabilityScanCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanSummary.java new file mode 100644 index 00000000000..8042fbd4444 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilityScanSummary.java @@ -0,0 +1,652 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Summary information about a VulnerabilityScan.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilityScanSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilityScanSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "vulnerabilityScanType", + "vulnerabilityScanStatus", + "vulnerabilityScanMessage", + "timeCreated", + "timeEnded", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags" + }) + public VulnerabilityScanSummary( + String id, + String displayName, + String compartmentId, + VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType, + VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus, + String vulnerabilityScanMessage, + java.util.Date timeCreated, + java.util.Date timeEnded, + VulnerabilityScan.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.vulnerabilityScanType = vulnerabilityScanType; + this.vulnerabilityScanStatus = vulnerabilityScanStatus; + this.vulnerabilityScanMessage = vulnerabilityScanMessage; + this.timeCreated = timeCreated; + this.timeEnded = timeEnded; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + * + * @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; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.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; + } + /** Vulnerability Scan Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType; + + /** + * Vulnerability Scan Type. + * + * @param vulnerabilityScanType the value to set + * @return this builder + */ + public Builder vulnerabilityScanType( + VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType) { + this.vulnerabilityScanType = vulnerabilityScanType; + this.__explicitlySet__.add("vulnerabilityScanType"); + return this; + } + /** The status of the scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanStatus") + private VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus; + + /** + * The status of the scan. + * + * @param vulnerabilityScanStatus the value to set + * @return this builder + */ + public Builder vulnerabilityScanStatus( + VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus) { + this.vulnerabilityScanStatus = vulnerabilityScanStatus; + this.__explicitlySet__.add("vulnerabilityScanStatus"); + return this; + } + /** The message of the scan status. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanMessage") + private String vulnerabilityScanMessage; + + /** + * The message of the scan status. + * + * @param vulnerabilityScanMessage the value to set + * @return this builder + */ + public Builder vulnerabilityScanMessage(String vulnerabilityScanMessage) { + this.vulnerabilityScanMessage = vulnerabilityScanMessage; + this.__explicitlySet__.add("vulnerabilityScanMessage"); + return this; + } + /** + * The date and time the VulnerabilityScan 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 VulnerabilityScan 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 VulnerabilityScan 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("timeEnded") + private java.util.Date timeEnded; + + /** + * The date and time the VulnerabilityScan was updated, in the format defined by [RFC + * 3339](https://tools.ietf.org/html/rfc3339). + * + *

Example: {@code 2016-08-25T21:10:29.600Z} + * + * @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 current state of the PatchOperation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private VulnerabilityScan.LifecycleState lifecycleState; + + /** + * The current state of the PatchOperation. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(VulnerabilityScan.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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"}} + */ + @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. 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; + } + /** + * 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 VulnerabilityScanSummary build() { + VulnerabilityScanSummary model = + new VulnerabilityScanSummary( + this.id, + this.displayName, + this.compartmentId, + this.vulnerabilityScanType, + this.vulnerabilityScanStatus, + this.vulnerabilityScanMessage, + this.timeCreated, + this.timeEnded, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilityScanSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanType")) { + this.vulnerabilityScanType(model.getVulnerabilityScanType()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanStatus")) { + this.vulnerabilityScanStatus(model.getVulnerabilityScanStatus()); + } + if (model.wasPropertyExplicitlySet("vulnerabilityScanMessage")) { + this.vulnerabilityScanMessage(model.getVulnerabilityScanMessage()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeEnded")) { + this.timeEnded(model.getTimeEnded()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + * + * @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; + } + + /** + * The [OCID](https://docs.cloud.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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** Vulnerability Scan Type. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanType") + private final VulnerabilityScan.VulnerabilityScanType vulnerabilityScanType; + + /** + * Vulnerability Scan Type. + * + * @return the value + */ + public VulnerabilityScan.VulnerabilityScanType getVulnerabilityScanType() { + return vulnerabilityScanType; + } + + /** The status of the scan. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanStatus") + private final VulnerabilityScan.VulnerabilityScanStatus vulnerabilityScanStatus; + + /** + * The status of the scan. + * + * @return the value + */ + public VulnerabilityScan.VulnerabilityScanStatus getVulnerabilityScanStatus() { + return vulnerabilityScanStatus; + } + + /** The message of the scan status. */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerabilityScanMessage") + private final String vulnerabilityScanMessage; + + /** + * The message of the scan status. + * + * @return the value + */ + public String getVulnerabilityScanMessage() { + return vulnerabilityScanMessage; + } + + /** + * The date and time the VulnerabilityScan 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 VulnerabilityScan 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 VulnerabilityScan 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("timeEnded") + private final java.util.Date timeEnded; + + /** + * The date and time the VulnerabilityScan 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 getTimeEnded() { + return timeEnded; + } + + /** The current state of the PatchOperation. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final VulnerabilityScan.LifecycleState lifecycleState; + + /** + * The current state of the PatchOperation. + * + * @return the value + */ + public VulnerabilityScan.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. 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. 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; + } + + /** + * 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("VulnerabilityScanSummary("); + sb.append("super=").append(super.toString()); + 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(", vulnerabilityScanType=").append(String.valueOf(this.vulnerabilityScanType)); + sb.append(", vulnerabilityScanStatus=") + .append(String.valueOf(this.vulnerabilityScanStatus)); + sb.append(", vulnerabilityScanMessage=") + .append(String.valueOf(this.vulnerabilityScanMessage)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeEnded=").append(String.valueOf(this.timeEnded)); + 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(", 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 VulnerabilityScanSummary)) { + return false; + } + + VulnerabilityScanSummary other = (VulnerabilityScanSummary) 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.vulnerabilityScanType, other.vulnerabilityScanType) + && java.util.Objects.equals( + this.vulnerabilityScanStatus, other.vulnerabilityScanStatus) + && java.util.Objects.equals( + this.vulnerabilityScanMessage, other.vulnerabilityScanMessage) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeEnded, other.timeEnded) + && 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.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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanType == null + ? 43 + : this.vulnerabilityScanType.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanStatus == null + ? 43 + : this.vulnerabilityScanStatus.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanMessage == null + ? 43 + : this.vulnerabilityScanMessage.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeEnded == null ? 43 : this.timeEnded.hashCode()); + result = + (result * PRIME) + + (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.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitySummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitySummary.java new file mode 100644 index 00000000000..91516991208 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/VulnerabilitySummary.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * The vulnerability 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VulnerabilitySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class VulnerabilitySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "cveId", + "description", + "riskLevel", + "score", + "vulnerableResourcesCount" + }) + public VulnerabilitySummary( + String cveId, + String description, + String riskLevel, + String score, + Integer vulnerableResourcesCount) { + super(); + this.cveId = cveId; + this.description = description; + this.riskLevel = riskLevel; + this.score = score; + this.vulnerableResourcesCount = vulnerableResourcesCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** CVE vulnerability ID */ + @com.fasterxml.jackson.annotation.JsonProperty("cveId") + private String cveId; + + /** + * CVE vulnerability ID + * + * @param cveId the value to set + * @return this builder + */ + public Builder cveId(String cveId) { + this.cveId = cveId; + this.__explicitlySet__.add("cveId"); + return this; + } + /** Vulnerability description */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Vulnerability description + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Risk level enumeration */ + @com.fasterxml.jackson.annotation.JsonProperty("riskLevel") + private String riskLevel; + + /** + * Risk level enumeration + * + * @param riskLevel the value to set + * @return this builder + */ + public Builder riskLevel(String riskLevel) { + this.riskLevel = riskLevel; + this.__explicitlySet__.add("riskLevel"); + return this; + } + /** Vulnerability score */ + @com.fasterxml.jackson.annotation.JsonProperty("score") + private String score; + + /** + * Vulnerability score + * + * @param score the value to set + * @return this builder + */ + public Builder score(String score) { + this.score = score; + this.__explicitlySet__.add("score"); + return this; + } + /** Number of vulnerable resources */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerableResourcesCount") + private Integer vulnerableResourcesCount; + + /** + * Number of vulnerable resources + * + * @param vulnerableResourcesCount the value to set + * @return this builder + */ + public Builder vulnerableResourcesCount(Integer vulnerableResourcesCount) { + this.vulnerableResourcesCount = vulnerableResourcesCount; + this.__explicitlySet__.add("vulnerableResourcesCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VulnerabilitySummary build() { + VulnerabilitySummary model = + new VulnerabilitySummary( + this.cveId, + this.description, + this.riskLevel, + this.score, + this.vulnerableResourcesCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VulnerabilitySummary model) { + if (model.wasPropertyExplicitlySet("cveId")) { + this.cveId(model.getCveId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("riskLevel")) { + this.riskLevel(model.getRiskLevel()); + } + if (model.wasPropertyExplicitlySet("score")) { + this.score(model.getScore()); + } + if (model.wasPropertyExplicitlySet("vulnerableResourcesCount")) { + this.vulnerableResourcesCount(model.getVulnerableResourcesCount()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** CVE vulnerability ID */ + @com.fasterxml.jackson.annotation.JsonProperty("cveId") + private final String cveId; + + /** + * CVE vulnerability ID + * + * @return the value + */ + public String getCveId() { + return cveId; + } + + /** Vulnerability description */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Vulnerability description + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Risk level enumeration */ + @com.fasterxml.jackson.annotation.JsonProperty("riskLevel") + private final String riskLevel; + + /** + * Risk level enumeration + * + * @return the value + */ + public String getRiskLevel() { + return riskLevel; + } + + /** Vulnerability score */ + @com.fasterxml.jackson.annotation.JsonProperty("score") + private final String score; + + /** + * Vulnerability score + * + * @return the value + */ + public String getScore() { + return score; + } + + /** Number of vulnerable resources */ + @com.fasterxml.jackson.annotation.JsonProperty("vulnerableResourcesCount") + private final Integer vulnerableResourcesCount; + + /** + * Number of vulnerable resources + * + * @return the value + */ + public Integer getVulnerableResourcesCount() { + return vulnerableResourcesCount; + } + + @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("VulnerabilitySummary("); + sb.append("super=").append(super.toString()); + sb.append("cveId=").append(String.valueOf(this.cveId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", riskLevel=").append(String.valueOf(this.riskLevel)); + sb.append(", score=").append(String.valueOf(this.score)); + sb.append(", vulnerableResourcesCount=") + .append(String.valueOf(this.vulnerableResourcesCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VulnerabilitySummary)) { + return false; + } + + VulnerabilitySummary other = (VulnerabilitySummary) o; + return java.util.Objects.equals(this.cveId, other.cveId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.riskLevel, other.riskLevel) + && java.util.Objects.equals(this.score, other.score) + && java.util.Objects.equals( + this.vulnerableResourcesCount, other.vulnerableResourcesCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.cveId == null ? 43 : this.cveId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.riskLevel == null ? 43 : this.riskLevel.hashCode()); + result = (result * PRIME) + (this.score == null ? 43 : this.score.hashCode()); + result = + (result * PRIME) + + (this.vulnerableResourcesCount == null + ? 43 + : this.vulnerableResourcesCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequest.java new file mode 100644 index 00000000000..6ba8c57c3f7 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequest.java @@ -0,0 +1,489 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * A description of workrequest status
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id 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; + } + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @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 this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this 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; + } + /** 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 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 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 the request was 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 the request was 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 the object was finished, 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 the object was finished, 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; + } + + @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.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + 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("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()); + } + 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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** 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 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 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 the request was 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 the request was 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 the object was finished, 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 the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @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(", 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(")"); + 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.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) + && 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.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestError.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestError.java new file mode 100644 index 00000000000..5ca56fd8b91 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestError.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestError + extends com.oracle.bmc.http.client.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.cloud.oracle.com/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.cloud.oracle.com/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 the error occured. 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. + * + * @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.cloud.oracle.com/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.cloud.oracle.com/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 the error occured. 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. + * + * @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-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestErrorCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..8f18030a5f2 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestErrorCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Results of a workRequestError search. Contains both WorkRequestError items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.client.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 { + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestError objects. + * + * @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); + } + + /** List of workRequestError objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestError objects. + * + * @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-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntry.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntry.java new file mode 100644 index 00000000000..ca97f6c7f66 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntry.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntry.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntry + extends com.oracle.bmc.http.client.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 the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @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 the log message was written. An RFC3339 formatted datetime string */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The time the log message was written. An RFC3339 formatted datetime string + * + * @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-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntryCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..bf72361df9a --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestLogEntryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Results of a workRequestLog search. Contains both workRequestLog items and other information, + * such as metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.client.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 { + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @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); + } + + /** List of workRequestLogEntries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestLogEntries. + * + * @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-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResource.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResource.java new file mode 100644 index 00000000000..0206c018b64 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResource.java @@ -0,0 +1,307 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestResource + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type the work request affects. + * + * @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 will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + */ + @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 will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + */ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @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 that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that the user can do a GET on to access 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; + } + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @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 WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + 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()); + } + 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 resource type the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type the work request affects. + * + * @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 will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + */ + @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 will remain in the IN_PROGRESS state until work + * is complete for that resource at which point it will transition to CREATED, UPDATED, or + * DELETED, respectively. + * + * @return the value + */ + public ActionType getActionType() { + return actionType; + } + + /** The identifier of the resource the work request affects. */ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * The identifier of the resource the work request affects. + * + * @return the value + */ + public String getIdentifier() { + return identifier; + } + + /** The URI path that the user can do a GET on to access the resource metadata */ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that the user can do a GET on to access the resource metadata + * + * @return the value + */ + public String getEntityUri() { + return entityUri; + } + + /** Additional information that helps to explain the resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * + * @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("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(", 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 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) + && 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.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) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResourceMetadataKey.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..894a8d156c9 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestResourceMetadataKey.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** Possible Metadata keys for workRequest resource metadata */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public enum WorkRequestResourceMetadataKey implements com.oracle.bmc.http.internal.BmcEnum { + IsDryRun("IS_DRY_RUN"), + + /** + * 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(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummary.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummary.java new file mode 100644 index 00000000000..ba957f906c5 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummary.java @@ -0,0 +1,491 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * A summary of the status 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished" + }) + public WorkRequestSummary( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + } + + @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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The id 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; + } + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be + * scoped to the same compartment as the resource the work request affects. If the work + * request affects multiple resources, and those resources are not in the same compartment, + * it is up to the service team to pick the primary resource whose compartment should be + * used + * + * @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 this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources affected by this 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; + } + /** 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 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 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 the request was 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 the request was 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 the object was finished, 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 the object was finished, 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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummary build() { + WorkRequestSummary model = + new WorkRequestSummary( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummary 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("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()); + } + 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 id of the work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The id of the work request. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The ocid of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects + * multiple resources, and those resources are not in the same compartment, it is up to the + * service team to pick the primary resource whose compartment should be used + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The resources affected by this work request. */ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources affected by this work request. + * + * @return the value + */ + public java.util.List getResources() { + return resources; + } + + /** 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 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 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 the request was 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 the request was 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 the object was finished, 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 the object was finished, as described in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + @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("WorkRequestSummary("); + 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(", 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummary)) { + return false; + } + + WorkRequestSummary other = (WorkRequestSummary) 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.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) + && 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.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) + super.hashCode(); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummaryCollection.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..3c4d8544aaf --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/model/WorkRequestSummaryCollection.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.model; + +/** + * Results of a workRequest search. Contains both WorkRequest items and other information, such as + * metadata.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @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 WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection 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 workRequestSummary objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of workRequestSummary objects. + * + * @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("WorkRequestSummaryCollection("); + 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 WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) 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-dblm/src/main/java/com/oracle/bmc/dblm/requests/CreateVulnerabilityScanRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/CreateVulnerabilityScanRequest.java new file mode 100644 index 00000000000..202aaea690c --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/CreateVulnerabilityScanRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use + * CreateVulnerabilityScanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class CreateVulnerabilityScanRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails> { + + /** Details for the new VulnerabilityScan. */ + private com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails createVulnerabilityScanDetails; + + /** Details for the new VulnerabilityScan. */ + public com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails + getCreateVulnerabilityScanDetails() { + return createVulnerabilityScanDetails; + } + /** + * 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 opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails getBody$() { + return createVulnerabilityScanDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateVulnerabilityScanRequest, + com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Details for the new VulnerabilityScan. */ + private com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails + createVulnerabilityScanDetails = null; + + /** + * Details for the new VulnerabilityScan. + * + * @param createVulnerabilityScanDetails the value to set + * @return this builder instance + */ + public Builder createVulnerabilityScanDetails( + com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails + createVulnerabilityScanDetails) { + this.createVulnerabilityScanDetails = createVulnerabilityScanDetails; + 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 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CreateVulnerabilityScanRequest o) { + createVulnerabilityScanDetails(o.getCreateVulnerabilityScanDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateVulnerabilityScanRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateVulnerabilityScanRequest + */ + public CreateVulnerabilityScanRequest buildWithoutInvocationCallback() { + CreateVulnerabilityScanRequest request = new CreateVulnerabilityScanRequest(); + request.createVulnerabilityScanDetails = createVulnerabilityScanDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateVulnerabilityScanRequest(createVulnerabilityScanDetails, 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() + .createVulnerabilityScanDetails(createVulnerabilityScanDetails) + .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(",createVulnerabilityScanDetails=") + .append(String.valueOf(this.createVulnerabilityScanDetails)); + 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 CreateVulnerabilityScanRequest)) { + return false; + } + + CreateVulnerabilityScanRequest other = (CreateVulnerabilityScanRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createVulnerabilityScanDetails, other.createVulnerabilityScanDetails) + && 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.createVulnerabilityScanDetails == null + ? 43 + : this.createVulnerabilityScanDetails.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-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityRequest.java new file mode 100644 index 00000000000..d0cbec63ebf --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityRequest.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use GetVulnerabilityRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetVulnerabilityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The required 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; + } + /** A filter to return only database that match the given release version. */ + private String databaseRelease; + + /** A filter to return only database that match the given release version. */ + public String getDatabaseRelease() { + return databaseRelease; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState getLifecycleState() { + return lifecycleState; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetVulnerabilityRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The required 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; + } + + /** A filter to return only database that match the given release version. */ + private String databaseRelease = null; + + /** + * A filter to return only database that match the given release version. + * + * @param databaseRelease the value to set + * @return this builder instance + */ + public Builder databaseRelease(String databaseRelease) { + this.databaseRelease = databaseRelease; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetVulnerabilityRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + databaseRelease(o.getDatabaseRelease()); + lifecycleState(o.getLifecycleState()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVulnerabilityRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetVulnerabilityRequest + */ + public GetVulnerabilityRequest buildWithoutInvocationCallback() { + GetVulnerabilityRequest request = new GetVulnerabilityRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.databaseRelease = databaseRelease; + request.lifecycleState = lifecycleState; + return request; + // new GetVulnerabilityRequest(compartmentId, opcRequestId, databaseRelease, + // lifecycleState); + } + } + + /** + * 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) + .databaseRelease(databaseRelease) + .lifecycleState(lifecycleState); + } + + /** + * 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(",databaseRelease=").append(String.valueOf(this.databaseRelease)); + 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 GetVulnerabilityRequest)) { + return false; + } + + GetVulnerabilityRequest other = (GetVulnerabilityRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.databaseRelease, other.databaseRelease) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState); + } + + @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()); + result = + (result * PRIME) + + (this.databaseRelease == null ? 43 : this.databaseRelease.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityScanRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityScanRequest.java new file mode 100644 index 00000000000..7923026aca6 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetVulnerabilityScanRequest.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use GetVulnerabilityScanRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetVulnerabilityScanRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + */ + private String vulnerabilityScanId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the VulnerabilityScan. + */ + public String getVulnerabilityScanId() { + return vulnerabilityScanId; + } + /** 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< + GetVulnerabilityScanRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + */ + private String vulnerabilityScanId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the VulnerabilityScan. + * + * @param vulnerabilityScanId the value to set + * @return this builder instance + */ + public Builder vulnerabilityScanId(String vulnerabilityScanId) { + this.vulnerabilityScanId = vulnerabilityScanId; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetVulnerabilityScanRequest o) { + vulnerabilityScanId(o.getVulnerabilityScanId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetVulnerabilityScanRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetVulnerabilityScanRequest + */ + public GetVulnerabilityScanRequest buildWithoutInvocationCallback() { + GetVulnerabilityScanRequest request = new GetVulnerabilityScanRequest(); + request.vulnerabilityScanId = vulnerabilityScanId; + request.opcRequestId = opcRequestId; + return request; + // new GetVulnerabilityScanRequest(vulnerabilityScanId, 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().vulnerabilityScanId(vulnerabilityScanId).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(",vulnerabilityScanId=").append(String.valueOf(this.vulnerabilityScanId)); + 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 GetVulnerabilityScanRequest)) { + return false; + } + + GetVulnerabilityScanRequest other = (GetVulnerabilityScanRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vulnerabilityScanId, other.vulnerabilityScanId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vulnerabilityScanId == null + ? 43 + : this.vulnerabilityScanId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetWorkRequestRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..5999f855250 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/GetWorkRequestRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** 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< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListAggregatedVulnerabilityDataRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListAggregatedVulnerabilityDataRequest.java new file mode 100644 index 00000000000..d67ebfb4de4 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListAggregatedVulnerabilityDataRequest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use + * ListAggregatedVulnerabilityDataRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListAggregatedVulnerabilityDataRequest + 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 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 created greater than. */ + private java.util.Date timeCreatedGreaterThan; + + /** The created greater than. */ + public java.util.Date getTimeCreatedGreaterThan() { + return timeCreatedGreaterThan; + } + /** The time ended less than. */ + private java.util.Date timeEndedLessThan; + + /** The time ended less than. */ + public java.util.Date getTimeEndedLessThan() { + return timeEndedLessThan; + } + /** A filter to return only database that match the given release version. */ + private String databaseRelease; + + /** A filter to return only database that match the given release version. */ + public String getDatabaseRelease() { + return databaseRelease; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** 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< + ListAggregatedVulnerabilityDataRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor 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 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 created greater than. */ + private java.util.Date timeCreatedGreaterThan = null; + + /** + * The created greater than. + * + * @param timeCreatedGreaterThan the value to set + * @return this builder instance + */ + public Builder timeCreatedGreaterThan(java.util.Date timeCreatedGreaterThan) { + this.timeCreatedGreaterThan = timeCreatedGreaterThan; + return this; + } + + /** The time ended less than. */ + private java.util.Date timeEndedLessThan = null; + + /** + * The time ended less than. + * + * @param timeEndedLessThan the value to set + * @return this builder instance + */ + public Builder timeEndedLessThan(java.util.Date timeEndedLessThan) { + this.timeEndedLessThan = timeEndedLessThan; + return this; + } + + /** A filter to return only database that match the given release version. */ + private String databaseRelease = null; + + /** + * A filter to return only database that match the given release version. + * + * @param databaseRelease the value to set + * @return this builder instance + */ + public Builder databaseRelease(String databaseRelease) { + this.databaseRelease = databaseRelease; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListAggregatedVulnerabilityDataRequest o) { + opcRequestId(o.getOpcRequestId()); + compartmentId(o.getCompartmentId()); + timeCreatedGreaterThan(o.getTimeCreatedGreaterThan()); + timeEndedLessThan(o.getTimeEndedLessThan()); + databaseRelease(o.getDatabaseRelease()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAggregatedVulnerabilityDataRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAggregatedVulnerabilityDataRequest + */ + public ListAggregatedVulnerabilityDataRequest buildWithoutInvocationCallback() { + ListAggregatedVulnerabilityDataRequest request = + new ListAggregatedVulnerabilityDataRequest(); + request.opcRequestId = opcRequestId; + request.compartmentId = compartmentId; + request.timeCreatedGreaterThan = timeCreatedGreaterThan; + request.timeEndedLessThan = timeEndedLessThan; + request.databaseRelease = databaseRelease; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + return request; + // new ListAggregatedVulnerabilityDataRequest(opcRequestId, compartmentId, + // timeCreatedGreaterThan, timeEndedLessThan, databaseRelease, lifecycleState, 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) + .compartmentId(compartmentId) + .timeCreatedGreaterThan(timeCreatedGreaterThan) + .timeEndedLessThan(timeEndedLessThan) + .databaseRelease(databaseRelease) + .lifecycleState(lifecycleState) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",timeCreatedGreaterThan=").append(String.valueOf(this.timeCreatedGreaterThan)); + sb.append(",timeEndedLessThan=").append(String.valueOf(this.timeEndedLessThan)); + sb.append(",databaseRelease=").append(String.valueOf(this.databaseRelease)); + 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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAggregatedVulnerabilityDataRequest)) { + return false; + } + + ListAggregatedVulnerabilityDataRequest other = (ListAggregatedVulnerabilityDataRequest) 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.timeCreatedGreaterThan, other.timeCreatedGreaterThan) + && java.util.Objects.equals(this.timeEndedLessThan, other.timeEndedLessThan) + && java.util.Objects.equals(this.databaseRelease, other.databaseRelease) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.timeCreatedGreaterThan == null + ? 43 + : this.timeCreatedGreaterThan.hashCode()); + result = + (result * PRIME) + + (this.timeEndedLessThan == null ? 43 : this.timeEndedLessThan.hashCode()); + result = + (result * PRIME) + + (this.databaseRelease == null ? 43 : this.databaseRelease.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()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListNotificationsRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListNotificationsRequest.java new file mode 100644 index 00000000000..1c4e57ef6d2 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListNotificationsRequest.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use ListNotificationsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListNotificationsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The required 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; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListNotificationsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The required 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; + } + + /** 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListNotificationsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListNotificationsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListNotificationsRequest + */ + public ListNotificationsRequest buildWithoutInvocationCallback() { + ListNotificationsRequest request = new ListNotificationsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.limit = limit; + return request; + // new ListNotificationsRequest(compartmentId, opcRequestId, 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).opcRequestId(opcRequestId).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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + 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 ListNotificationsRequest)) { + return false; + } + + ListNotificationsRequest other = (ListNotificationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && 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.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilitiesRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilitiesRequest.java new file mode 100644 index 00000000000..5d37905bb1a --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilitiesRequest.java @@ -0,0 +1,602 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use ListVulnerabilitiesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilitiesRequest 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 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; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for + * vulnerableResources is descending. Default order for cveId is descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * vulnerableResources is descending. Default order for cveId is descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + CveId("cveId"), + VulnerableResources("vulnerableResources"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * vulnerableResources is descending. Default order for cveId is descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * 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 opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only database that match the given release version. */ + private String databaseRelease; + + /** A filter to return only database that match the given release version. */ + public String getDatabaseRelease() { + return databaseRelease; + } + /** A filter to return only resources that match the given resource id. */ + private String resourceId; + + /** A filter to return only resources that match the given resource id. */ + public String getResourceId() { + return resourceId; + } + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, info. + */ + private java.util.List severityType; + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, info. + */ + public java.util.List getSeverityType() { + return severityType; + } + /** The search input for filter cve id and cve description. */ + private String searchBy; + + /** The search input for filter cve id and cve description. */ + public String getSearchBy() { + return searchBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVulnerabilitiesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + 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 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; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * vulnerableResources is descending. Default order for cveId is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for + * vulnerableResources is descending. Default order for cveId is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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 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 filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only database that match the given release version. */ + private String databaseRelease = null; + + /** + * A filter to return only database that match the given release version. + * + * @param databaseRelease the value to set + * @return this builder instance + */ + public Builder databaseRelease(String databaseRelease) { + this.databaseRelease = databaseRelease; + return this; + } + + /** A filter to return only resources that match the given resource id. */ + private String resourceId = null; + + /** + * A filter to return only resources that match the given resource id. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, + * info. + */ + private java.util.List severityType = + null; + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, + * info. + * + * @param severityType the value to set + * @return this builder instance + */ + public Builder severityType( + java.util.List severityType) { + this.severityType = severityType; + return this; + } + + /** + * Singular setter. Filter by one or more severity types. Possible values are critical, + * high, medium, low, info. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder severityType(VulnerabilityRiskLevel singularValue) { + return this.severityType(java.util.Arrays.asList(singularValue)); + } + + /** The search input for filter cve id and cve description. */ + private String searchBy = null; + + /** + * The search input for filter cve id and cve description. + * + * @param searchBy the value to set + * @return this builder instance + */ + public Builder searchBy(String searchBy) { + this.searchBy = searchBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListVulnerabilitiesRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + displayName(o.getDisplayName()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + lifecycleState(o.getLifecycleState()); + databaseRelease(o.getDatabaseRelease()); + resourceId(o.getResourceId()); + severityType(o.getSeverityType()); + searchBy(o.getSearchBy()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVulnerabilitiesRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListVulnerabilitiesRequest + */ + public ListVulnerabilitiesRequest buildWithoutInvocationCallback() { + ListVulnerabilitiesRequest request = new ListVulnerabilitiesRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.displayName = displayName; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.lifecycleState = lifecycleState; + request.databaseRelease = databaseRelease; + request.resourceId = resourceId; + request.severityType = severityType; + request.searchBy = searchBy; + return request; + // new ListVulnerabilitiesRequest(compartmentId, limit, page, displayName, sortOrder, + // sortBy, opcRetryToken, opcRequestId, lifecycleState, databaseRelease, resourceId, + // severityType, searchBy); + } + } + + /** + * 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) + .limit(limit) + .page(page) + .displayName(displayName) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .lifecycleState(lifecycleState) + .databaseRelease(databaseRelease) + .resourceId(resourceId) + .severityType(severityType) + .searchBy(searchBy); + } + + /** + * 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(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",databaseRelease=").append(String.valueOf(this.databaseRelease)); + sb.append(",resourceId=").append(String.valueOf(this.resourceId)); + sb.append(",severityType=").append(String.valueOf(this.severityType)); + sb.append(",searchBy=").append(String.valueOf(this.searchBy)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVulnerabilitiesRequest)) { + return false; + } + + ListVulnerabilitiesRequest other = (ListVulnerabilitiesRequest) o; + return super.equals(o) + && 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.displayName, other.displayName) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.databaseRelease, other.databaseRelease) + && java.util.Objects.equals(this.resourceId, other.resourceId) + && java.util.Objects.equals(this.severityType, other.severityType) + && java.util.Objects.equals(this.searchBy, other.searchBy); + } + + @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.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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.opcRetryToken == null ? 43 : this.opcRetryToken.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.databaseRelease == null ? 43 : this.databaseRelease.hashCode()); + result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); + result = (result * PRIME) + (this.severityType == null ? 43 : this.severityType.hashCode()); + result = (result * PRIME) + (this.searchBy == null ? 43 : this.searchBy.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityResourcesRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityResourcesRequest.java new file mode 100644 index 00000000000..f54120963b2 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityResourcesRequest.java @@ -0,0 +1,605 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use + * ListVulnerabilityResourcesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilityResourcesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The required ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** 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; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeCreated("timeCreated"), + DisplayName("displayName"), + VulnerabilityCount("vulnerabilityCount"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState; + + /** A filter to return only resources their lifecycleState matches the given lifecycleState. */ + public com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** A filter to return only database that match the given release version. */ + private String databaseRelease; + + /** A filter to return only database that match the given release version. */ + public String getDatabaseRelease() { + return databaseRelease; + } + /** The id of a CVE. */ + private String cveId; + + /** The id of a CVE. */ + public String getCveId() { + return cveId; + } + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, info + * and none. + */ + private java.util.List severityType; + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, info + * and none. + */ + public java.util.List getSeverityType() { + return severityType; + } + /** Filter by one or more severity types. Possible values are upToDate, patchAvailable */ + private java.util.List patchRecommendation; + + /** Filter by one or more severity types. Possible values are upToDate, patchAvailable */ + public enum PatchRecommendation implements com.oracle.bmc.http.internal.BmcEnum { + UpToDate("upToDate"), + PatchAvailable("patchAvailable"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PatchRecommendation v : PatchRecommendation.values()) { + map.put(v.getValue(), v); + } + } + + PatchRecommendation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PatchRecommendation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid PatchRecommendation: " + key); + } + }; + + /** Filter by one or more severity types. Possible values are upToDate, patchAvailable */ + public java.util.List getPatchRecommendation() { + return patchRecommendation; + } + /** 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< + ListVulnerabilityResourcesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The required ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The required 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 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.dblm.model.DblmVulnerability.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** A filter to return only database that match the given release version. */ + private String databaseRelease = null; + + /** + * A filter to return only database that match the given release version. + * + * @param databaseRelease the value to set + * @return this builder instance + */ + public Builder databaseRelease(String databaseRelease) { + this.databaseRelease = databaseRelease; + return this; + } + + /** The id of a CVE. */ + private String cveId = null; + + /** + * The id of a CVE. + * + * @param cveId the value to set + * @return this builder instance + */ + public Builder cveId(String cveId) { + this.cveId = cveId; + return this; + } + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, + * info and none. + */ + private java.util.List severityType = null; + + /** + * Filter by one or more severity types. Possible values are critical, high, medium, low, + * info and none. + * + * @param severityType the value to set + * @return this builder instance + */ + public Builder severityType( + java.util.List severityType) { + this.severityType = severityType; + return this; + } + + /** + * Singular setter. Filter by one or more severity types. Possible values are critical, + * high, medium, low, info and none. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder severityType(ResourcesSeverities singularValue) { + return this.severityType(java.util.Arrays.asList(singularValue)); + } + + /** Filter by one or more severity types. Possible values are upToDate, patchAvailable */ + private java.util.List patchRecommendation = null; + + /** + * Filter by one or more severity types. Possible values are upToDate, patchAvailable + * + * @param patchRecommendation the value to set + * @return this builder instance + */ + public Builder patchRecommendation( + java.util.List patchRecommendation) { + this.patchRecommendation = patchRecommendation; + return this; + } + + /** + * Singular setter. Filter by one or more severity types. Possible values are upToDate, + * patchAvailable + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder patchRecommendation(PatchRecommendation singularValue) { + return this.patchRecommendation(java.util.Arrays.asList(singularValue)); + } + + /** 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListVulnerabilityResourcesRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + databaseRelease(o.getDatabaseRelease()); + cveId(o.getCveId()); + severityType(o.getSeverityType()); + patchRecommendation(o.getPatchRecommendation()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVulnerabilityResourcesRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListVulnerabilityResourcesRequest + */ + public ListVulnerabilityResourcesRequest buildWithoutInvocationCallback() { + ListVulnerabilityResourcesRequest request = new ListVulnerabilityResourcesRequest(); + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.databaseRelease = databaseRelease; + request.cveId = cveId; + request.severityType = severityType; + request.patchRecommendation = patchRecommendation; + request.opcRequestId = opcRequestId; + return request; + // new ListVulnerabilityResourcesRequest(compartmentId, limit, page, sortOrder, sortBy, + // displayName, lifecycleState, databaseRelease, cveId, severityType, + // patchRecommendation, 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) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .displayName(displayName) + .lifecycleState(lifecycleState) + .databaseRelease(databaseRelease) + .cveId(cveId) + .severityType(severityType) + .patchRecommendation(patchRecommendation) + .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(",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(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",databaseRelease=").append(String.valueOf(this.databaseRelease)); + sb.append(",cveId=").append(String.valueOf(this.cveId)); + sb.append(",severityType=").append(String.valueOf(this.severityType)); + sb.append(",patchRecommendation=").append(String.valueOf(this.patchRecommendation)); + 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 ListVulnerabilityResourcesRequest)) { + return false; + } + + ListVulnerabilityResourcesRequest other = (ListVulnerabilityResourcesRequest) o; + return super.equals(o) + && 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.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.databaseRelease, other.databaseRelease) + && java.util.Objects.equals(this.cveId, other.cveId) + && java.util.Objects.equals(this.severityType, other.severityType) + && java.util.Objects.equals(this.patchRecommendation, other.patchRecommendation) + && 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.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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.databaseRelease == null ? 43 : this.databaseRelease.hashCode()); + result = (result * PRIME) + (this.cveId == null ? 43 : this.cveId.hashCode()); + result = (result * PRIME) + (this.severityType == null ? 43 : this.severityType.hashCode()); + result = + (result * PRIME) + + (this.patchRecommendation == null + ? 43 + : this.patchRecommendation.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityScansRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityScansRequest.java new file mode 100644 index 00000000000..5d5ff08abf1 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListVulnerabilityScansRequest.java @@ -0,0 +1,633 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use + * ListVulnerabilityScansRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilityScansRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the vulnerability scan. */ + private String vulnerabilityScanId; + + /** The ID of the vulnerability scan. */ + public String getVulnerabilityScanId() { + return vulnerabilityScanId; + } + /** 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; + } + /** A filter to return only resources that match the entire display name given. */ + private String displayName; + + /** A filter to return only resources that match the entire display name given. */ + public String getDisplayName() { + return displayName; + } + /** 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; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + /** The field to sort by. Only one sort order may be provided. Default order is descending. */ + private SortBy sortBy; + + /** The field to sort by. Only one sort order may be provided. Default order is descending. */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Id("id"), + DisplayName("displayName"), + TimeCreated("timeCreated"), + TimeEnded("timeEnded"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** The field to sort by. Only one sort order may be provided. Default order is descending. */ + public SortBy getSortBy() { + return sortBy; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The created greater than. */ + private java.util.Date timeCreatedGreaterThan; + + /** The created greater than. */ + public java.util.Date getTimeCreatedGreaterThan() { + return timeCreatedGreaterThan; + } + /** The time ended less than. */ + private java.util.Date timeEndedLessThan; + + /** The time ended less than. */ + public java.util.Date getTimeEndedLessThan() { + return timeEndedLessThan; + } + /** + * Filter by one or more vulnerability scan status. Possible values are completed, running, + * completed with error, aborted. + */ + private java.util.List vulnerabilityScanStatus; + + /** + * Filter by one or more vulnerability scan status. Possible values are completed, running, + * completed with error, aborted. + */ + public enum VulnerabilityScanStatus implements com.oracle.bmc.http.internal.BmcEnum { + Completed("COMPLETED"), + Error("ERROR"), + Running("RUNNING"), + Aborted("ABORTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VulnerabilityScanStatus v : VulnerabilityScanStatus.values()) { + map.put(v.getValue(), v); + } + } + + VulnerabilityScanStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VulnerabilityScanStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VulnerabilityScanStatus: " + key); + } + }; + + /** + * Filter by one or more vulnerability scan status. Possible values are completed, running, + * completed with error, aborted. + */ + public java.util.List getVulnerabilityScanStatus() { + return vulnerabilityScanStatus; + } + /** The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'. */ + private VulnerabilityScanType vulnerabilityScanType; + + /** The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'. */ + public enum VulnerabilityScanType implements com.oracle.bmc.http.internal.BmcEnum { + Cve("CVE"), + Patch("PATCH"), + ImagePatch("IMAGE_PATCH"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (VulnerabilityScanType v : VulnerabilityScanType.values()) { + map.put(v.getValue(), v); + } + } + + VulnerabilityScanType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static VulnerabilityScanType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid VulnerabilityScanType: " + key); + } + }; + + /** The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'. */ + public VulnerabilityScanType getVulnerabilityScanType() { + return vulnerabilityScanType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListVulnerabilityScansRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the vulnerability scan. */ + private String vulnerabilityScanId = null; + + /** + * The ID of the vulnerability scan. + * + * @param vulnerabilityScanId the value to set + * @return this builder instance + */ + public Builder vulnerabilityScanId(String vulnerabilityScanId) { + this.vulnerabilityScanId = vulnerabilityScanId; + return this; + } + + /** 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; + } + + /** A filter to return only resources that match the entire display name given. */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + 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; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + 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 created greater than. */ + private java.util.Date timeCreatedGreaterThan = null; + + /** + * The created greater than. + * + * @param timeCreatedGreaterThan the value to set + * @return this builder instance + */ + public Builder timeCreatedGreaterThan(java.util.Date timeCreatedGreaterThan) { + this.timeCreatedGreaterThan = timeCreatedGreaterThan; + return this; + } + + /** The time ended less than. */ + private java.util.Date timeEndedLessThan = null; + + /** + * The time ended less than. + * + * @param timeEndedLessThan the value to set + * @return this builder instance + */ + public Builder timeEndedLessThan(java.util.Date timeEndedLessThan) { + this.timeEndedLessThan = timeEndedLessThan; + return this; + } + + /** + * Filter by one or more vulnerability scan status. Possible values are completed, running, + * completed with error, aborted. + */ + private java.util.List vulnerabilityScanStatus = null; + + /** + * Filter by one or more vulnerability scan status. Possible values are completed, running, + * completed with error, aborted. + * + * @param vulnerabilityScanStatus the value to set + * @return this builder instance + */ + public Builder vulnerabilityScanStatus( + java.util.List vulnerabilityScanStatus) { + this.vulnerabilityScanStatus = vulnerabilityScanStatus; + return this; + } + + /** + * Singular setter. Filter by one or more vulnerability scan status. Possible values are + * completed, running, completed with error, aborted. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder vulnerabilityScanStatus(VulnerabilityScanStatus singularValue) { + return this.vulnerabilityScanStatus(java.util.Arrays.asList(singularValue)); + } + + /** The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'. */ + private VulnerabilityScanType vulnerabilityScanType = null; + + /** + * The scan type to use is 'CVE', 'PATCH' or 'IMAGE_PATCH'. + * + * @param vulnerabilityScanType the value to set + * @return this builder instance + */ + public Builder vulnerabilityScanType(VulnerabilityScanType vulnerabilityScanType) { + this.vulnerabilityScanType = vulnerabilityScanType; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListVulnerabilityScansRequest o) { + vulnerabilityScanId(o.getVulnerabilityScanId()); + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + timeCreatedGreaterThan(o.getTimeCreatedGreaterThan()); + timeEndedLessThan(o.getTimeEndedLessThan()); + vulnerabilityScanStatus(o.getVulnerabilityScanStatus()); + vulnerabilityScanType(o.getVulnerabilityScanType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListVulnerabilityScansRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListVulnerabilityScansRequest + */ + public ListVulnerabilityScansRequest buildWithoutInvocationCallback() { + ListVulnerabilityScansRequest request = new ListVulnerabilityScansRequest(); + request.vulnerabilityScanId = vulnerabilityScanId; + request.compartmentId = compartmentId; + request.displayName = displayName; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + request.timeCreatedGreaterThan = timeCreatedGreaterThan; + request.timeEndedLessThan = timeEndedLessThan; + request.vulnerabilityScanStatus = vulnerabilityScanStatus; + request.vulnerabilityScanType = vulnerabilityScanType; + return request; + // new ListVulnerabilityScansRequest(vulnerabilityScanId, compartmentId, displayName, + // limit, page, sortOrder, sortBy, opcRequestId, timeCreatedGreaterThan, + // timeEndedLessThan, vulnerabilityScanStatus, vulnerabilityScanType); + } + } + + /** + * 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() + .vulnerabilityScanId(vulnerabilityScanId) + .compartmentId(compartmentId) + .displayName(displayName) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId) + .timeCreatedGreaterThan(timeCreatedGreaterThan) + .timeEndedLessThan(timeEndedLessThan) + .vulnerabilityScanStatus(vulnerabilityScanStatus) + .vulnerabilityScanType(vulnerabilityScanType); + } + + /** + * 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(",vulnerabilityScanId=").append(String.valueOf(this.vulnerabilityScanId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + 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(",timeCreatedGreaterThan=").append(String.valueOf(this.timeCreatedGreaterThan)); + sb.append(",timeEndedLessThan=").append(String.valueOf(this.timeEndedLessThan)); + sb.append(",vulnerabilityScanStatus=").append(String.valueOf(this.vulnerabilityScanStatus)); + sb.append(",vulnerabilityScanType=").append(String.valueOf(this.vulnerabilityScanType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVulnerabilityScansRequest)) { + return false; + } + + ListVulnerabilityScansRequest other = (ListVulnerabilityScansRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.vulnerabilityScanId, other.vulnerabilityScanId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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.timeCreatedGreaterThan, other.timeCreatedGreaterThan) + && java.util.Objects.equals(this.timeEndedLessThan, other.timeEndedLessThan) + && java.util.Objects.equals( + this.vulnerabilityScanStatus, other.vulnerabilityScanStatus) + && java.util.Objects.equals( + this.vulnerabilityScanType, other.vulnerabilityScanType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.vulnerabilityScanId == null + ? 43 + : this.vulnerabilityScanId.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.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.timeCreatedGreaterThan == null + ? 43 + : this.timeCreatedGreaterThan.hashCode()); + result = + (result * PRIME) + + (this.timeEndedLessThan == null ? 43 : this.timeEndedLessThan.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanStatus == null + ? 43 + : this.vulnerabilityScanStatus.hashCode()); + result = + (result * PRIME) + + (this.vulnerabilityScanType == null + ? 43 + : this.vulnerabilityScanType.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestErrorsRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..2ec750afea5 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,361 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use + * ListWorkRequestErrorsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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 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; + } + + /** 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 field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + 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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, 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() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .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(",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(",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 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.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.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.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestLogsRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..405cc8a6697 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,359 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the asynchronous request. */ + private String workRequestId; + + /** The ID of the asynchronous request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the asynchronous request. */ + private String workRequestId = null; + + /** + * The ID of the asynchronous request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + 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 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; + } + + /** 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 field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is + * descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + 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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} 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.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, 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() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .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(",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(",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 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.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.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.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestsRequest.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..81ed144c162 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/requests/ListWorkRequestsRequest.java @@ -0,0 +1,444 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.requests; + +import com.oracle.bmc.dblm.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestsRequest 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 ID of the asynchronous work request. */ + private String workRequestId; + + /** The ID of the asynchronous work request. */ + public String getWorkRequestId() { + return workRequestId; + } + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + private com.oracle.bmc.dblm.model.OperationStatus status; + + /** A filter to return only resources their lifecycleState matches the given OperationStatus. */ + public com.oracle.bmc.dblm.model.OperationStatus getStatus() { + return status; + } + /** The ID of the resource affected by the work request. */ + private String resourceId; + + /** The ID of the resource affected by the work request. */ + public String getResourceId() { + return resourceId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.dblm.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + TimeAccepted("timeAccepted"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is + * descending. + */ + public SortBy getSortBy() { + return sortBy; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + 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 ID of the asynchronous work request. */ + private String workRequestId = null; + + /** + * The ID 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; + } + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + */ + private com.oracle.bmc.dblm.model.OperationStatus status = null; + + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + * + * @param status the value to set + * @return this builder instance + */ + public Builder status(com.oracle.bmc.dblm.model.OperationStatus status) { + this.status = status; + return this; + } + + /** The ID of the resource affected by the work request. */ + private String resourceId = null; + + /** + * The ID of the resource affected by the work request. + * + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + 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 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; + } + + /** 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 sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.dblm.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.dblm.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted + * is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + workRequestId(o.getWorkRequestId()); + status(o.getStatus()); + resourceId(o.getResourceId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + 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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of 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.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest buildWithoutInvocationCallback() { + ListWorkRequestsRequest request = new ListWorkRequestsRequest(); + request.compartmentId = compartmentId; + request.workRequestId = workRequestId; + request.status = status; + request.resourceId = resourceId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + return request; + // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, + // opcRequestId, page, limit, 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() + .compartmentId(compartmentId) + .workRequestId(workRequestId) + .status(status) + .resourceId(resourceId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",status=").append(String.valueOf(this.status)); + 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(",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 ListWorkRequestsRequest)) { + return false; + } + + ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.status, other.status) + && 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) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.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()); + 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-dblm/src/main/java/com/oracle/bmc/dblm/responses/CreateVulnerabilityScanResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/CreateVulnerabilityScanResponse.java new file mode 100644 index 00000000000..482999a6bcd --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/CreateVulnerabilityScanResponse.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class CreateVulnerabilityScanResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created Vulnerability Scan. The Vulnerability Scan OCID is generated after this + * request is sent. + */ + private String location; + + /** + * URL for the created Vulnerability Scan. The Vulnerability Scan OCID is generated after this + * request is sent. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** 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 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; + } + + /** The returned {@code VulnerabilityScan} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan; + + /** + * The returned {@code VulnerabilityScan} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.VulnerabilityScan getVulnerabilityScan() { + return vulnerabilityScan; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "vulnerabilityScan" + }) + private CreateVulnerabilityScanResponse( + int __httpStatusCode__, + java.util.Map> headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.vulnerabilityScan = vulnerabilityScan; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CreateVulnerabilityScanResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created Vulnerability Scan. The Vulnerability Scan OCID is generated after + * this request is sent. + */ + private String location; + + /** + * URL for the created Vulnerability Scan. The Vulnerability Scan OCID is generated after + * this request is sent. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** Same as location. */ + private String contentLocation; + + /** + * Same as location. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + 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 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; + } + + /** The returned {@code VulnerabilityScan} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan; + + /** + * The returned {@code VulnerabilityScan} instance. + * + * @param vulnerabilityScan the value to set + * @return this builder + */ + public Builder vulnerabilityScan( + com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan) { + this.vulnerabilityScan = vulnerabilityScan; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CreateVulnerabilityScanResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + vulnerabilityScan(o.getVulnerabilityScan()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CreateVulnerabilityScanResponse build() { + return new CreateVulnerabilityScanResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + vulnerabilityScan); + } + } + + /** + * 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",vulnerabilityScan=").append(String.valueOf(vulnerabilityScan)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateVulnerabilityScanResponse)) { + return false; + } + + CreateVulnerabilityScanResponse other = (CreateVulnerabilityScanResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && 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.vulnerabilityScan, other.vulnerabilityScan); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.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.vulnerabilityScan == null ? 43 : this.vulnerabilityScan.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityResponse.java new file mode 100644 index 00000000000..9eaf664802b --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetVulnerabilityResponse 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 {@code DblmVulnerability} instance. */ + private com.oracle.bmc.dblm.model.DblmVulnerability dblmVulnerability; + + /** + * The returned {@code DblmVulnerability} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.DblmVulnerability getDblmVulnerability() { + return dblmVulnerability; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "dblmVulnerability" + }) + private GetVulnerabilityResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.dblm.model.DblmVulnerability dblmVulnerability) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.dblmVulnerability = dblmVulnerability; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code DblmVulnerability} instance. */ + private com.oracle.bmc.dblm.model.DblmVulnerability dblmVulnerability; + + /** + * The returned {@code DblmVulnerability} instance. + * + * @param dblmVulnerability the value to set + * @return this builder + */ + public Builder dblmVulnerability( + com.oracle.bmc.dblm.model.DblmVulnerability dblmVulnerability) { + this.dblmVulnerability = dblmVulnerability; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetVulnerabilityResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dblmVulnerability(o.getDblmVulnerability()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetVulnerabilityResponse build() { + return new GetVulnerabilityResponse( + __httpStatusCode__, headers, etag, opcRequestId, dblmVulnerability); + } + } + + /** + * 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(",dblmVulnerability=").append(String.valueOf(dblmVulnerability)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVulnerabilityResponse)) { + return false; + } + + GetVulnerabilityResponse other = (GetVulnerabilityResponse) 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.dblmVulnerability, other.dblmVulnerability); + } + + @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.dblmVulnerability == null ? 43 : this.dblmVulnerability.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityScanResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityScanResponse.java new file mode 100644 index 00000000000..500401b1845 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetVulnerabilityScanResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetVulnerabilityScanResponse 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 {@code VulnerabilityScan} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan; + + /** + * The returned {@code VulnerabilityScan} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.VulnerabilityScan getVulnerabilityScan() { + return vulnerabilityScan; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "vulnerabilityScan" + }) + private GetVulnerabilityScanResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.vulnerabilityScan = vulnerabilityScan; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code VulnerabilityScan} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan; + + /** + * The returned {@code VulnerabilityScan} instance. + * + * @param vulnerabilityScan the value to set + * @return this builder + */ + public Builder vulnerabilityScan( + com.oracle.bmc.dblm.model.VulnerabilityScan vulnerabilityScan) { + this.vulnerabilityScan = vulnerabilityScan; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetVulnerabilityScanResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + vulnerabilityScan(o.getVulnerabilityScan()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetVulnerabilityScanResponse build() { + return new GetVulnerabilityScanResponse( + __httpStatusCode__, headers, etag, opcRequestId, vulnerabilityScan); + } + } + + /** + * 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(",vulnerabilityScan=").append(String.valueOf(vulnerabilityScan)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetVulnerabilityScanResponse)) { + return false; + } + + GetVulnerabilityScanResponse other = (GetVulnerabilityScanResponse) 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.vulnerabilityScan, other.vulnerabilityScan); + } + + @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.vulnerabilityScan == null ? 43 : this.vulnerabilityScan.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetWorkRequestResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..1cbf2e6d8e8 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/GetWorkRequestResponse.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class GetWorkRequestResponse 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; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + * + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** The returned {@code WorkRequest} instance. */ + private com.oracle.bmc.dblm.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.dblm.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling + * this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number 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 {@code WorkRequest} instance. */ + private com.oracle.bmc.dblm.model.WorkRequest workRequest; + + /** + * The returned {@code WorkRequest} instance. + * + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.dblm.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + 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 + */ + @Override + 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-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListAggregatedVulnerabilityDataResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListAggregatedVulnerabilityDataResponse.java new file mode 100644 index 00000000000..9ff43b000b8 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListAggregatedVulnerabilityDataResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListAggregatedVulnerabilityDataResponse 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 {@code AggregatedVulnerabilityCollection} instance. */ + private com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection + aggregatedVulnerabilityCollection; + + /** + * The returned {@code AggregatedVulnerabilityCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection + getAggregatedVulnerabilityCollection() { + return aggregatedVulnerabilityCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "aggregatedVulnerabilityCollection" + }) + private ListAggregatedVulnerabilityDataResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection + aggregatedVulnerabilityCollection) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.aggregatedVulnerabilityCollection = aggregatedVulnerabilityCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAggregatedVulnerabilityDataResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@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 {@code AggregatedVulnerabilityCollection} instance. */ + private com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection + aggregatedVulnerabilityCollection; + + /** + * The returned {@code AggregatedVulnerabilityCollection} instance. + * + * @param aggregatedVulnerabilityCollection the value to set + * @return this builder + */ + public Builder aggregatedVulnerabilityCollection( + com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection + aggregatedVulnerabilityCollection) { + this.aggregatedVulnerabilityCollection = aggregatedVulnerabilityCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAggregatedVulnerabilityDataResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + aggregatedVulnerabilityCollection(o.getAggregatedVulnerabilityCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAggregatedVulnerabilityDataResponse build() { + return new ListAggregatedVulnerabilityDataResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + aggregatedVulnerabilityCollection); + } + } + + /** + * 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(",aggregatedVulnerabilityCollection=") + .append(String.valueOf(aggregatedVulnerabilityCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAggregatedVulnerabilityDataResponse)) { + return false; + } + + ListAggregatedVulnerabilityDataResponse other = (ListAggregatedVulnerabilityDataResponse) 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.aggregatedVulnerabilityCollection, + other.aggregatedVulnerabilityCollection); + } + + @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.aggregatedVulnerabilityCollection == null + ? 43 + : this.aggregatedVulnerabilityCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListNotificationsResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListNotificationsResponse.java new file mode 100644 index 00000000000..378e464f698 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListNotificationsResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListNotificationsResponse 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 {@code NotificationCollection} instance. */ + private com.oracle.bmc.dblm.model.NotificationCollection notificationCollection; + + /** + * The returned {@code NotificationCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.NotificationCollection getNotificationCollection() { + return notificationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "notificationCollection" + }) + private ListNotificationsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.dblm.model.NotificationCollection notificationCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.notificationCollection = notificationCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code NotificationCollection} instance. */ + private com.oracle.bmc.dblm.model.NotificationCollection notificationCollection; + + /** + * The returned {@code NotificationCollection} instance. + * + * @param notificationCollection the value to set + * @return this builder + */ + public Builder notificationCollection( + com.oracle.bmc.dblm.model.NotificationCollection notificationCollection) { + this.notificationCollection = notificationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListNotificationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + notificationCollection(o.getNotificationCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListNotificationsResponse build() { + return new ListNotificationsResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, notificationCollection); + } + } + + /** + * 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(",notificationCollection=").append(String.valueOf(notificationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListNotificationsResponse)) { + return false; + } + + ListNotificationsResponse other = (ListNotificationsResponse) 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.notificationCollection, other.notificationCollection); + } + + @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.notificationCollection == null + ? 43 + : this.notificationCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilitiesResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilitiesResponse.java new file mode 100644 index 00000000000..f0cca4a453a --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilitiesResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilitiesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VulnerabilityCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityCollection vulnerabilityCollection; + + /** + * The returned {@code VulnerabilityCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.VulnerabilityCollection getVulnerabilityCollection() { + return vulnerabilityCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vulnerabilityCollection" + }) + private ListVulnerabilitiesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.dblm.model.VulnerabilityCollection vulnerabilityCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vulnerabilityCollection = vulnerabilityCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VulnerabilityCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityCollection vulnerabilityCollection; + + /** + * The returned {@code VulnerabilityCollection} instance. + * + * @param vulnerabilityCollection the value to set + * @return this builder + */ + public Builder vulnerabilityCollection( + com.oracle.bmc.dblm.model.VulnerabilityCollection vulnerabilityCollection) { + this.vulnerabilityCollection = vulnerabilityCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListVulnerabilitiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vulnerabilityCollection(o.getVulnerabilityCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListVulnerabilitiesResponse build() { + return new ListVulnerabilitiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + vulnerabilityCollection); + } + } + + /** + * 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(",vulnerabilityCollection=").append(String.valueOf(vulnerabilityCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVulnerabilitiesResponse)) { + return false; + } + + ListVulnerabilitiesResponse other = (ListVulnerabilitiesResponse) 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.vulnerabilityCollection, other.vulnerabilityCollection); + } + + @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.vulnerabilityCollection == null + ? 43 + : this.vulnerabilityCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityResourcesResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityResourcesResponse.java new file mode 100644 index 00000000000..f5bda01df81 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityResourcesResponse.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilityResourcesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VulnerabilityResourceCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityResourceCollection + vulnerabilityResourceCollection; + + /** + * The returned {@code VulnerabilityResourceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.VulnerabilityResourceCollection + getVulnerabilityResourceCollection() { + return vulnerabilityResourceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vulnerabilityResourceCollection" + }) + private ListVulnerabilityResourcesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.dblm.model.VulnerabilityResourceCollection + vulnerabilityResourceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vulnerabilityResourceCollection = vulnerabilityResourceCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListVulnerabilityResourcesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VulnerabilityResourceCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityResourceCollection + vulnerabilityResourceCollection; + + /** + * The returned {@code VulnerabilityResourceCollection} instance. + * + * @param vulnerabilityResourceCollection the value to set + * @return this builder + */ + public Builder vulnerabilityResourceCollection( + com.oracle.bmc.dblm.model.VulnerabilityResourceCollection + vulnerabilityResourceCollection) { + this.vulnerabilityResourceCollection = vulnerabilityResourceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListVulnerabilityResourcesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vulnerabilityResourceCollection(o.getVulnerabilityResourceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListVulnerabilityResourcesResponse build() { + return new ListVulnerabilityResourcesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + vulnerabilityResourceCollection); + } + } + + /** + * 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(",vulnerabilityResourceCollection=") + .append(String.valueOf(vulnerabilityResourceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVulnerabilityResourcesResponse)) { + return false; + } + + ListVulnerabilityResourcesResponse other = (ListVulnerabilityResourcesResponse) 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.vulnerabilityResourceCollection, + other.vulnerabilityResourceCollection); + } + + @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.vulnerabilityResourceCollection == null + ? 43 + : this.vulnerabilityResourceCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityScansResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityScansResponse.java new file mode 100644 index 00000000000..ac1f40447a6 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListVulnerabilityScansResponse.java @@ -0,0 +1,232 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListVulnerabilityScansResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code VulnerabilityScanCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScanCollection vulnerabilityScanCollection; + + /** + * The returned {@code VulnerabilityScanCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.VulnerabilityScanCollection getVulnerabilityScanCollection() { + return vulnerabilityScanCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vulnerabilityScanCollection" + }) + private ListVulnerabilityScansResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.dblm.model.VulnerabilityScanCollection vulnerabilityScanCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vulnerabilityScanCollection = vulnerabilityScanCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListVulnerabilityScansResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code VulnerabilityScanCollection} instance. */ + private com.oracle.bmc.dblm.model.VulnerabilityScanCollection vulnerabilityScanCollection; + + /** + * The returned {@code VulnerabilityScanCollection} instance. + * + * @param vulnerabilityScanCollection the value to set + * @return this builder + */ + public Builder vulnerabilityScanCollection( + com.oracle.bmc.dblm.model.VulnerabilityScanCollection vulnerabilityScanCollection) { + this.vulnerabilityScanCollection = vulnerabilityScanCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListVulnerabilityScansResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vulnerabilityScanCollection(o.getVulnerabilityScanCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListVulnerabilityScansResponse build() { + return new ListVulnerabilityScansResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + vulnerabilityScanCollection); + } + } + + /** + * 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(",vulnerabilityScanCollection=") + .append(String.valueOf(vulnerabilityScanCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListVulnerabilityScansResponse)) { + return false; + } + + ListVulnerabilityScansResponse other = (ListVulnerabilityScansResponse) 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.vulnerabilityScanCollection, other.vulnerabilityScanCollection); + } + + @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.vulnerabilityScanCollection == null + ? 43 + : this.vulnerabilityScanCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestErrorsResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..bc002c22b3c --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestErrorsResponse 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 {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.dblm.model.WorkRequestErrorCollection workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code WorkRequestErrorCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestErrorCollection workRequestErrorCollection; + + /** + * The returned {@code WorkRequestErrorCollection} instance. + * + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.dblm.model.WorkRequestErrorCollection workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + 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(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + 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.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @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.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestLogsResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..396dcc353bc --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestLogsResponse 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 {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * 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 {@code WorkRequestLogEntryCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned {@code WorkRequestLogEntryCollection} instance. + * + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + 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(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + 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.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @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.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestsResponse.java b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..08c5db4f0a7 --- /dev/null +++ b/bmc-dblm/src/main/java/com/oracle/bmc/dblm/responses/ListWorkRequestsResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.dblm.responses; + +import com.oracle.bmc.dblm.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestSummaryCollection workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.dblm.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.dblm.model.WorkRequestSummaryCollection workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code WorkRequestSummaryCollection} instance. */ + private com.oracle.bmc.dblm.model.WorkRequestSummaryCollection workRequestSummaryCollection; + + /** + * The returned {@code WorkRequestSummaryCollection} instance. + * + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.dblm.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * 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(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + 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.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @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.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-dblm/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dblm/reflect-config.json b/bmc-dblm/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dblm/reflect-config.json new file mode 100644 index 00000000000..02a9a527f72 --- /dev/null +++ b/bmc-dblm/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-dblm/reflect-config.json @@ -0,0 +1,480 @@ +[ + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ActionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.AggregatedVulnerabilityCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.AggregatedVulnerabilitySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.AggregatedVulnerabilitySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ChildPdb", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ChildPdb$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.CreateVulnerabilityScanDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.DblmVulnerability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.DblmVulnerability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.DblmVulnerability$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.HostInfo", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.HostInfo$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.MetricError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.MetricError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.NotificationCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.NotificationCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.NotificationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.NotificationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.NotificationSummary$NotificationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.OperationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.OperationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.PatchRecommendationSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.PatchRecommendationSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.PatchRecommendationsDetailsSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.PatchRecommendationsDetailsSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ResourceInfo", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ResourceInfo$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ResourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ResourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.ResourcesSeverities", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.SortOrder", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilitiesSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilitiesSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityResourceCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityResourceCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityResourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityResourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityRiskLevel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScan", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScan$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScan$VulnerabilityScanType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScan$VulnerabilityScanStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScan$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScanCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScanCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScanSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilityScanSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilitySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.VulnerabilitySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequest", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequest$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestError", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestError$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestErrorCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestErrorCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestLogEntry", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestLogEntry$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestLogEntryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestResource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestResource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestResourceMetadataKey", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.dblm.model.WorkRequestSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + } +] \ No newline at end of file diff --git a/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties b/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties new file mode 100644 index 00000000000..dbbabb75e83 --- /dev/null +++ b/bmc-dblm/src/main/resources/com/oracle/bmc/dblm/client.properties @@ -0,0 +1,9 @@ +# +# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +# + +java.client.codegen.version = 2.113 +java.minimum.client.codegen.version.from.client = 2.100 + +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240102") \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index f06f123a68e..072aafb4d04 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties index ec87d60baa4..aad2e0a1f2b 100644 --- a/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties +++ b/bmc-delegateaccesscontrol/src/main/resources/com/oracle/bmc/delegateaccesscontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230801") \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index a41660a1ba4..a0a30a96225 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties b/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties index f6f5d1602ef..2f51c92f3c0 100644 --- a/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties +++ b/bmc-demandsignal/src/main/resources/com/oracle/bmc/demandsignal/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 4c09de19192..6093418ad6d 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties b/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties index c831b243e1d..1c94fa84543 100644 --- a/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties +++ b/bmc-desktops/src/main/resources/com/oracle/bmc/desktops/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220618") \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 1b9613b3e79..32556d156c1 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties b/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties index 59d2561a348..c75cc76c866 100644 --- a/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties +++ b/bmc-devops/src/main/resources/com/oracle/bmc/devops/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210630") \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 8d0e45d17d1..46a98effbe8 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties b/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties index 113bc88c00b..3c2d44f9d70 100644 --- a/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties +++ b/bmc-disasterrecovery/src/main/resources/com/oracle/bmc/disasterrecovery/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220125") \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 014181c636f..7b29284dfe7 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.57.2 + 3.58.0 diff --git a/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties b/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties index 94f7fff3e8f..15201085ad4 100644 --- a/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties +++ b/bmc-dns/src/main/resources/com/oracle/bmc/dns/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180115") \ No newline at end of file diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index d1a9e590e4c..5f7d400ccfb 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-dts/src/main/resources/com/oracle/bmc/dts/client.properties b/bmc-dts/src/main/resources/com/oracle/bmc/dts/client.properties index e4196c5ed7a..1d64e935265 100644 --- a/bmc-dts/src/main/resources/com/oracle/bmc/dts/client.properties +++ b/bmc-dts/src/main/resources/com/oracle/bmc/dts/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.017") \ No newline at end of file diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 12266ddad99..6952b50177f 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateDkimDetails.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateDkimDetails.java index dd49ec871a9..27fe8a0a418 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateDkimDetails.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/CreateDkimDetails.java @@ -28,6 +28,7 @@ public final class CreateDkimDetails "name", "emailDomainId", "description", + "privateKey", "freeformTags", "definedTags" }) @@ -35,12 +36,14 @@ public CreateDkimDetails( String name, String emailDomainId, String description, + String privateKey, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.name = name; this.emailDomainId = emailDomainId; this.description = description; + this.privateKey = privateKey; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -120,6 +123,25 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } + /** + * The DKIM RSA Private Key in Privacy-Enhanced Mail (PEM) format. It is a text-based + * representation of the private key used for signing email messages. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKey") + private String privateKey; + + /** + * The DKIM RSA Private Key in Privacy-Enhanced Mail (PEM) format. It is a text-based + * representation of the private key used for signing email messages. + * + * @param privateKey the value to set + * @return this builder + */ + public Builder privateKey(String privateKey) { + this.privateKey = privateKey; + this.__explicitlySet__.add("privateKey"); + 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 @@ -181,6 +203,7 @@ public CreateDkimDetails build() { this.name, this.emailDomainId, this.description, + this.privateKey, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -200,6 +223,9 @@ public Builder copy(CreateDkimDetails model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("privateKey")) { + this.privateKey(model.getPrivateKey()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -286,6 +312,23 @@ public String getDescription() { return description; } + /** + * The DKIM RSA Private Key in Privacy-Enhanced Mail (PEM) format. It is a text-based + * representation of the private key used for signing email messages. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateKey") + private final String privateKey; + + /** + * The DKIM RSA Private Key in Privacy-Enhanced Mail (PEM) format. It is a text-based + * representation of the private key used for signing email messages. + * + * @return the value + */ + public String getPrivateKey() { + return privateKey; + } + /** * 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 @@ -350,6 +393,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("name=").append(String.valueOf(this.name)); sb.append(", emailDomainId=").append(String.valueOf(this.emailDomainId)); sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", privateKey=").append(String.valueOf(this.privateKey)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -369,6 +413,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.emailDomainId, other.emailDomainId) && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.privateKey, other.privateKey) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -383,6 +428,7 @@ public int hashCode() { (result * PRIME) + (this.emailDomainId == null ? 43 : this.emailDomainId.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.privateKey == null ? 43 : this.privateKey.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-email/src/main/java/com/oracle/bmc/email/model/Dkim.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/Dkim.java index e6016b1febe..d9ca43c977b 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/Dkim.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/Dkim.java @@ -34,6 +34,8 @@ public final class Dkim extends com.oracle.bmc.http.client.internal.ExplicitlySe "dnsSubdomainName", "cnameRecordValue", "txtRecordValue", + "isImported", + "keyLength", "freeformTags", "definedTags", "systemTags" @@ -51,6 +53,8 @@ public Dkim( String dnsSubdomainName, String cnameRecordValue, String txtRecordValue, + Boolean isImported, + Integer keyLength, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -67,6 +71,8 @@ public Dkim( this.dnsSubdomainName = dnsSubdomainName; this.cnameRecordValue = cnameRecordValue; this.txtRecordValue = txtRecordValue; + this.isImported = isImported; + this.keyLength = keyLength; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -308,6 +314,36 @@ public Builder txtRecordValue(String txtRecordValue) { this.__explicitlySet__.add("txtRecordValue"); return this; } + /** Indicates whether the DKIM was imported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isImported") + private Boolean isImported; + + /** + * Indicates whether the DKIM was imported. + * + * @param isImported the value to set + * @return this builder + */ + public Builder isImported(Boolean isImported) { + this.isImported = isImported; + this.__explicitlySet__.add("isImported"); + return this; + } + /** Length of the RSA key used in the DKIM. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyLength") + private Integer keyLength; + + /** + * Length of the RSA key used in the DKIM. + * + * @param keyLength the value to set + * @return this builder + */ + public Builder keyLength(Integer keyLength) { + this.keyLength = keyLength; + this.__explicitlySet__.add("keyLength"); + 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 @@ -397,6 +433,8 @@ public Dkim build() { this.dnsSubdomainName, this.cnameRecordValue, this.txtRecordValue, + this.isImported, + this.keyLength, this.freeformTags, this.definedTags, this.systemTags); @@ -444,6 +482,12 @@ public Builder copy(Dkim model) { if (model.wasPropertyExplicitlySet("txtRecordValue")) { this.txtRecordValue(model.getTxtRecordValue()); } + if (model.wasPropertyExplicitlySet("isImported")) { + this.isImported(model.getIsImported()); + } + if (model.wasPropertyExplicitlySet("keyLength")) { + this.keyLength(model.getKeyLength()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -726,6 +770,32 @@ public String getTxtRecordValue() { return txtRecordValue; } + /** Indicates whether the DKIM was imported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isImported") + private final Boolean isImported; + + /** + * Indicates whether the DKIM was imported. + * + * @return the value + */ + public Boolean getIsImported() { + return isImported; + } + + /** Length of the RSA key used in the DKIM. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyLength") + private final Integer keyLength; + + /** + * Length of the RSA key used in the DKIM. + * + * @return the value + */ + public Integer getKeyLength() { + return keyLength; + } + /** * 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 @@ -816,6 +886,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dnsSubdomainName=").append(String.valueOf(this.dnsSubdomainName)); sb.append(", cnameRecordValue=").append(String.valueOf(this.cnameRecordValue)); sb.append(", txtRecordValue=").append(String.valueOf(this.txtRecordValue)); + sb.append(", isImported=").append(String.valueOf(this.isImported)); + sb.append(", keyLength=").append(String.valueOf(this.keyLength)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -845,6 +917,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dnsSubdomainName, other.dnsSubdomainName) && java.util.Objects.equals(this.cnameRecordValue, other.cnameRecordValue) && java.util.Objects.equals(this.txtRecordValue, other.txtRecordValue) + && java.util.Objects.equals(this.isImported, other.isImported) + && java.util.Objects.equals(this.keyLength, other.keyLength) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -881,6 +955,8 @@ public int hashCode() { result = (result * PRIME) + (this.txtRecordValue == null ? 43 : this.txtRecordValue.hashCode()); + result = (result * PRIME) + (this.isImported == null ? 43 : this.isImported.hashCode()); + result = (result * PRIME) + (this.keyLength == null ? 43 : this.keyLength.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-email/src/main/java/com/oracle/bmc/email/model/DkimSummary.java b/bmc-email/src/main/java/com/oracle/bmc/email/model/DkimSummary.java index 44e94423c6f..ecfcbae730d 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/model/DkimSummary.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/model/DkimSummary.java @@ -30,6 +30,8 @@ public final class DkimSummary extends com.oracle.bmc.http.client.internal.Expli "description", "timeCreated", "timeUpdated", + "isImported", + "keyLength", "freeformTags", "definedTags", "systemTags" @@ -43,6 +45,8 @@ public DkimSummary( String description, java.util.Date timeCreated, java.util.Date timeUpdated, + Boolean isImported, + Integer keyLength, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -55,6 +59,8 @@ public DkimSummary( this.description = description; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; + this.isImported = isImported; + this.keyLength = keyLength; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -210,6 +216,36 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } + /** Indicates whether the DKIM was imported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isImported") + private Boolean isImported; + + /** + * Indicates whether the DKIM was imported. + * + * @param isImported the value to set + * @return this builder + */ + public Builder isImported(Boolean isImported) { + this.isImported = isImported; + this.__explicitlySet__.add("isImported"); + return this; + } + /** Length of the RSA key used in the DKIM. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyLength") + private Integer keyLength; + + /** + * Length of the RSA key used in the DKIM. + * + * @param keyLength the value to set + * @return this builder + */ + public Builder keyLength(Integer keyLength) { + this.keyLength = keyLength; + this.__explicitlySet__.add("keyLength"); + 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 @@ -295,6 +331,8 @@ public DkimSummary build() { this.description, this.timeCreated, this.timeUpdated, + this.isImported, + this.keyLength, this.freeformTags, this.definedTags, this.systemTags); @@ -330,6 +368,12 @@ public Builder copy(DkimSummary model) { if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } + if (model.wasPropertyExplicitlySet("isImported")) { + this.isImported(model.getIsImported()); + } + if (model.wasPropertyExplicitlySet("keyLength")) { + this.keyLength(model.getKeyLength()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -482,6 +526,32 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } + /** Indicates whether the DKIM was imported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isImported") + private final Boolean isImported; + + /** + * Indicates whether the DKIM was imported. + * + * @return the value + */ + public Boolean getIsImported() { + return isImported; + } + + /** Length of the RSA key used in the DKIM. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyLength") + private final Integer keyLength; + + /** + * Length of the RSA key used in the DKIM. + * + * @return the value + */ + public Integer getKeyLength() { + return keyLength; + } + /** * 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 @@ -568,6 +638,8 @@ public String toString(boolean includeByteArrayContents) { 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(", isImported=").append(String.valueOf(this.isImported)); + sb.append(", keyLength=").append(String.valueOf(this.keyLength)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -593,6 +665,8 @@ public boolean equals(Object o) { && 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.isImported, other.isImported) + && java.util.Objects.equals(this.keyLength, other.keyLength) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -617,6 +691,8 @@ public int 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.isImported == null ? 43 : this.isImported.hashCode()); + result = (result * PRIME) + (this.keyLength == null ? 43 : this.keyLength.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-email/src/main/resources/com/oracle/bmc/email/client.properties b/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties index c46eeb2d3c6..9572d0d9721 100644 --- a/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties +++ b/bmc-email/src/main/resources/com/oracle/bmc/email/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170907") \ No newline at end of file diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 659fac37b61..1ea0916d338 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties b/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties index d2c35751713..a405894ae9d 100644 --- a/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties +++ b/bmc-emaildataplane/src/main/resources/com/oracle/bmc/emaildataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220926") \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 31269d713c2..3c3b044ad7e 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties b/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties index f785785598d..63d617e0d35 100644 --- a/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties +++ b/bmc-emwarehouse/src/main/resources/com/oracle/bmc/emwarehouse/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index f9bbda6f469..5f2c3fa991c 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.57.2 + 3.58.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index ab9f809079a..fa698ca517c 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 310c6284e21..f718bcd806e 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties b/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties index 1f8ec770a6d..526bdb209c3 100644 --- a/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties +++ b/bmc-events/src/main/resources/com/oracle/bmc/events/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 11e5f23372e..65c58dec4a8 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 pom import @@ -738,5 +738,9 @@ com.oracle.oci.sdk oci-java-sdk-zpr + + com.oracle.oci.sdk + oci-java-sdk-dblm + \ No newline at end of file diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index d810c6a396a..007c05d1072 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties b/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties index af2e8ffab4e..68cbdb80265 100644 --- a/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties +++ b/bmc-filestorage/src/main/resources/com/oracle/bmc/filestorage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20171215") \ No newline at end of file diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 21db8e78f10..bafc5507edd 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties index 9805ab893cd..411245909cd 100644 --- a/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties +++ b/bmc-fleetappsmanagement/src/main/resources/com/oracle/bmc/fleetappsmanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831") \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 48689f94557..ba3786d2b7a 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties b/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties index ef0d1e74a92..8605830f3a1 100644 --- a/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties +++ b/bmc-fleetsoftwareupdate/src/main/resources/com/oracle/bmc/fleetsoftwareupdate/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220528") \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 97fbb10bf74..2727651a619 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import @@ -619,5 +619,9 @@ com.oracle.oci.sdk oci-java-sdk-zpr + + com.oracle.oci.sdk + oci-java-sdk-dblm + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 3d95e8d2b2c..1cdade572f7 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties index 1f8ec770a6d..526bdb209c3 100644 --- a/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties +++ b/bmc-functions/src/main/resources/com/oracle/bmc/functions/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 1bca16eea32..3e5fbbbcf22 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties b/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties index 342ae3e8035..821623c31a3 100644 --- a/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties +++ b/bmc-fusionapps/src/main/resources/com/oracle/bmc/fusionapps/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201") \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 2692f70dcbd..d4215824909 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties b/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties index 0e351df92a4..ffb6e59d48c 100644 --- a/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties +++ b/bmc-generativeai/src/main/resources/com/oracle/bmc/generativeai/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index d9aad2c053e..b885460c016 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties b/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties index e2d1983d6fc..6960c240b97 100644 --- a/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties +++ b/bmc-generativeaiagent/src/main/resources/com/oracle/bmc/generativeaiagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240531") \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 9bc964fbb3c..e98df85f654 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties b/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties index e2d1983d6fc..6960c240b97 100644 --- a/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties +++ b/bmc-generativeaiagentruntime/src/main/resources/com/oracle/bmc/generativeaiagentruntime/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240531") \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 8dc5678e8be..a51c13141b1 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties b/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties index 0e351df92a4..ffb6e59d48c 100644 --- a/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties +++ b/bmc-generativeaiinference/src/main/resources/com/oracle/bmc/generativeaiinference/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 6e2df14661c..7fa2cf56007 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties b/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties +++ b/bmc-genericartifactscontent/src/main/resources/com/oracle/bmc/genericartifactscontent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 58099df0174..a2e6b8a4b47 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-globallydistributeddatabase/src/main/resources/com/oracle/bmc/globallydistributeddatabase/client.properties b/bmc-globallydistributeddatabase/src/main/resources/com/oracle/bmc/globallydistributeddatabase/client.properties index df52de4c78f..84fc09c632d 100644 --- a/bmc-globallydistributeddatabase/src/main/resources/com/oracle/bmc/globallydistributeddatabase/client.properties +++ b/bmc-globallydistributeddatabase/src/main/resources/com/oracle/bmc/globallydistributeddatabase/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230301") \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index a2384e2e38d..b92dd79982e 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties b/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties index 56d7bb803fd..64cf4d13e03 100644 --- a/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties +++ b/bmc-goldengate/src/main/resources/com/oracle/bmc/goldengate/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200407") \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 743908f7dc6..684b9fcb003 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties b/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties index 7b0890a0cee..95da10b7522 100644 --- a/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties +++ b/bmc-governancerulescontrolplane/src/main/resources/com/oracle/bmc/governancerulescontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220504") \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 7d69bd8005d..a84a60c97a7 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties b/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties index 01f6e5d41ab..11eae905418 100644 --- a/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties +++ b/bmc-healthchecks/src/main/resources/com/oracle/bmc/healthchecks/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180501") \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 3b899485018..791b816d538 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties b/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties +++ b/bmc-identity/src/main/resources/com/oracle/bmc/identity/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 4e6f076071d..96dc9131a6d 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties b/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties index 9f0d23b1c18..1ca3a47dd9f 100644 --- a/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties +++ b/bmc-identitydataplane/src/main/resources/com/oracle/bmc/identitydataplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: v1") \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 955c56aa4d4..2e619901f85 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties b/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties index 9f0d23b1c18..1ca3a47dd9f 100644 --- a/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties +++ b/bmc-identitydomains/src/main/resources/com/oracle/bmc/identitydomains/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: v1") \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 098d2b9973b..a1a50eacd4b 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties b/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties index 2873aa649a5..9bca7e4e3ac 100644 --- a/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties +++ b/bmc-integration/src/main/resources/com/oracle/bmc/integration/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190131") \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 35a81b5ef4a..7f5c71b4a64 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties b/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties index 15293cb4048..234fce323a8 100644 --- a/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties +++ b/bmc-jms/src/main/resources/com/oracle/bmc/jms/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210610") \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index c1afab1cc17..d46690b585d 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties b/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties index 82898097a62..251101b9c7f 100644 --- a/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties +++ b/bmc-jmsjavadownloads/src/main/resources/com/oracle/bmc/jmsjavadownloads/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230601") \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 9e968be98c4..e085526ed27 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties b/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties index a307b9e7031..e03b36180ab 100644 --- a/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties +++ b/bmc-keymanagement/src/main/resources/com/oracle/bmc/keymanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: release") \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 9712f857c10..c064551dbad 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties b/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties index 1275f78fa14..f4d8351d8eb 100644 --- a/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties +++ b/bmc-licensemanager/src/main/resources/com/oracle/bmc/licensemanager/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220430") \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 0731a306af2..c77fb0e6a25 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties b/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties index 62f6b7b83b1..cfe719a8b46 100644 --- a/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties +++ b/bmc-limits/src/main/resources/com/oracle/bmc/limits/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181025") \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 39cd721ef68..3a05e01a839 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java index 7b7f8c703ab..89d26c30e76 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/CreateLoadBalancerDetails.java @@ -47,7 +47,7 @@ public final class CreateLoadBalancerDetails "pathRouteSets", "freeformTags", "definedTags", - "zprTags", + "securityAttributes", "ruleSets" }) public CreateLoadBalancerDetails( @@ -71,7 +71,7 @@ public CreateLoadBalancerDetails( java.util.Map pathRouteSets, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> zprTags, + java.util.Map> securityAttributes, java.util.Map ruleSets) { super(); this.compartmentId = compartmentId; @@ -94,7 +94,7 @@ public CreateLoadBalancerDetails( this.pathRouteSets = pathRouteSets; this.freeformTags = freeformTags; this.definedTags = definedTags; - this.zprTags = zprTags; + this.securityAttributes = securityAttributes; this.ruleSets = ruleSets; } @@ -579,8 +579,8 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -589,12 +589,13 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} * - * @param zprTags the value to set + * @param securityAttributes the value to set * @return this builder */ - public Builder zprTags(java.util.Map> zprTags) { - this.zprTags = zprTags; - this.__explicitlySet__.add("zprTags"); + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); return this; } @@ -633,7 +634,7 @@ public CreateLoadBalancerDetails build() { this.pathRouteSets, this.freeformTags, this.definedTags, - this.zprTags, + this.securityAttributes, this.ruleSets); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -703,8 +704,8 @@ public Builder copy(CreateLoadBalancerDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } - if (model.wasPropertyExplicitlySet("zprTags")) { - this.zprTags(model.getZprTags()); + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); } if (model.wasPropertyExplicitlySet("ruleSets")) { this.ruleSets(model.getRuleSets()); @@ -1196,8 +1197,8 @@ public java.util.Map> getDefinedTags() { *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private final java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -1208,8 +1209,8 @@ public java.util.Map> getDefinedTags() { * * @return the value */ - public java.util.Map> getZprTags() { - return zprTags; + public java.util.Map> getSecurityAttributes() { + return securityAttributes; } @com.fasterxml.jackson.annotation.JsonProperty("ruleSets") @@ -1256,7 +1257,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", pathRouteSets=").append(String.valueOf(this.pathRouteSets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", zprTags=").append(String.valueOf(this.zprTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", ruleSets=").append(String.valueOf(this.ruleSets)); sb.append(")"); return sb.toString(); @@ -1294,7 +1295,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.pathRouteSets, other.pathRouteSets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.zprTags, other.zprTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.ruleSets, other.ruleSets) && super.equals(other); } @@ -1343,7 +1344,11 @@ public int hashCode() { + (this.pathRouteSets == null ? 43 : this.pathRouteSets.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.zprTags == null ? 43 : this.zprTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.ruleSets == null ? 43 : this.ruleSets.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java index 6db1ac8a69d..8e0fd696391 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java @@ -55,7 +55,7 @@ public final class LoadBalancer extends com.oracle.bmc.http.client.internal.Expl "pathRouteSets", "freeformTags", "definedTags", - "zprTags", + "securityAttributes", "systemTags", "ruleSets", "routingPolicies" @@ -83,7 +83,7 @@ public LoadBalancer( java.util.Map pathRouteSets, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> zprTags, + java.util.Map> securityAttributes, java.util.Map> systemTags, java.util.Map ruleSets, java.util.Map routingPolicies) { @@ -110,7 +110,7 @@ public LoadBalancer( this.pathRouteSets = pathRouteSets; this.freeformTags = freeformTags; this.definedTags = definedTags; - this.zprTags = zprTags; + this.securityAttributes = securityAttributes; this.systemTags = systemTags; this.ruleSets = ruleSets; this.routingPolicies = routingPolicies; @@ -588,8 +588,8 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -598,12 +598,13 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} * - * @param zprTags the value to set + * @param securityAttributes the value to set * @return this builder */ - public Builder zprTags(java.util.Map> zprTags) { - this.zprTags = zprTags; - this.__explicitlySet__.add("zprTags"); + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); return this; } /** @@ -680,7 +681,7 @@ public LoadBalancer build() { this.pathRouteSets, this.freeformTags, this.definedTags, - this.zprTags, + this.securityAttributes, this.systemTags, this.ruleSets, this.routingPolicies); @@ -758,8 +759,8 @@ public Builder copy(LoadBalancer model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } - if (model.wasPropertyExplicitlySet("zprTags")) { - this.zprTags(model.getZprTags()); + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); } if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); @@ -1251,8 +1252,8 @@ public java.util.Map> getDefinedTags() { *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private final java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -1263,8 +1264,8 @@ public java.util.Map> getDefinedTags() { * * @return the value */ - public java.util.Map> getZprTags() { - return zprTags; + public java.util.Map> getSecurityAttributes() { + return securityAttributes; } /** @@ -1345,7 +1346,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", pathRouteSets=").append(String.valueOf(this.pathRouteSets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", zprTags=").append(String.valueOf(this.zprTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", ruleSets=").append(String.valueOf(this.ruleSets)); sb.append(", routingPolicies=").append(String.valueOf(this.routingPolicies)); @@ -1387,7 +1388,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.pathRouteSets, other.pathRouteSets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.zprTags, other.zprTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.ruleSets, other.ruleSets) && java.util.Objects.equals(this.routingPolicies, other.routingPolicies) @@ -1442,7 +1443,11 @@ public int hashCode() { + (this.pathRouteSets == null ? 43 : this.pathRouteSets.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.zprTags == null ? 43 : this.zprTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.ruleSets == null ? 43 : this.ruleSets.hashCode()); result = diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java index fb0b78bff79..8dc9404cd76 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateLoadBalancerDetails.java @@ -33,7 +33,7 @@ public final class UpdateLoadBalancerDetails "requestIdHeader", "freeformTags", "definedTags", - "zprTags" + "securityAttributes" }) public UpdateLoadBalancerDetails( String displayName, @@ -42,7 +42,7 @@ public UpdateLoadBalancerDetails( String requestIdHeader, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> zprTags) { + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.isDeleteProtectionEnabled = isDeleteProtectionEnabled; @@ -50,7 +50,7 @@ public UpdateLoadBalancerDetails( this.requestIdHeader = requestIdHeader; this.freeformTags = freeformTags; this.definedTags = definedTags; - this.zprTags = zprTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -257,8 +257,8 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -267,12 +267,13 @@ public Builder definedTags( *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} * - * @param zprTags the value to set + * @param securityAttributes the value to set * @return this builder */ - public Builder zprTags(java.util.Map> zprTags) { - this.zprTags = zprTags; - this.__explicitlySet__.add("zprTags"); + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); return this; } @@ -288,7 +289,7 @@ public UpdateLoadBalancerDetails build() { this.requestIdHeader, this.freeformTags, this.definedTags, - this.zprTags); + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -315,8 +316,8 @@ public Builder copy(UpdateLoadBalancerDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } - if (model.wasPropertyExplicitlySet("zprTags")) { - this.zprTags(model.getZprTags()); + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); } return this; } @@ -516,8 +517,8 @@ public java.util.Map> getDefinedTags() { *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value":"42","mode":"audit", * "usagetype" : "zpr"}}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("zprTags") - private final java.util.Map> zprTags; + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; /** * Extended Defined tags for ZPR for this resource. Each key is predefined and scoped to a @@ -528,8 +529,8 @@ public java.util.Map> getDefinedTags() { * * @return the value */ - public java.util.Map> getZprTags() { - return zprTags; + public java.util.Map> getSecurityAttributes() { + return securityAttributes; } @Override @@ -554,7 +555,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", requestIdHeader=").append(String.valueOf(this.requestIdHeader)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", zprTags=").append(String.valueOf(this.zprTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -576,7 +577,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.requestIdHeader, other.requestIdHeader) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.zprTags, other.zprTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -600,7 +601,11 @@ public int hashCode() { + (this.requestIdHeader == null ? 43 : this.requestIdHeader.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.zprTags == null ? 43 : this.zprTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties b/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties index 1f18e02fb49..4560ded2558 100644 --- a/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties +++ b/bmc-loadbalancer/src/main/resources/com/oracle/bmc/loadbalancer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20170115") \ No newline at end of file diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 1b9c4440daf..7ec1c9afaaf 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties b/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties index e2ac0c4b78c..c788d8e2f9a 100644 --- a/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties +++ b/bmc-lockbox/src/main/resources/com/oracle/bmc/lockbox/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220126") \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 02f18ab6333..b96e49bab92 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties b/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties index 25cde1dac9b..1eac106ef0d 100644 --- a/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties +++ b/bmc-loganalytics/src/main/resources/com/oracle/bmc/loganalytics/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200601") \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 6337d0bcca3..1b98a8e5868 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties b/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties index 57b4a649164..8d15420f7a2 100644 --- a/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties +++ b/bmc-logging/src/main/resources/com/oracle/bmc/logging/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200531") \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index ae91f793ea1..de6aee473f5 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties b/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties index 9c03492deba..06f8503bd04 100644 --- a/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties +++ b/bmc-loggingingestion/src/main/resources/com/oracle/bmc/loggingingestion/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200831") \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index a082ec9857d..ad9287641ae 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties b/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties index 83677b36ec0..9142d8a6d31 100644 --- a/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties +++ b/bmc-loggingsearch/src/main/resources/com/oracle/bmc/loggingsearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190909") \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index a34bebe6902..165afcdba35 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties b/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties index 967b0b36ebc..eb92a793b87 100644 --- a/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties +++ b/bmc-managementagent/src/main/resources/com/oracle/bmc/managementagent/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200202") \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index b9867f6ea2f..9e6d9e93153 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties b/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties index 2ff95da3664..33e57cfae9f 100644 --- a/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties +++ b/bmc-managementdashboard/src/main/resources/com/oracle/bmc/managementdashboard/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200901") \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 5dbbf150112..af168865af4 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties b/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties index c84a0e312b6..eb2ad97569a 100644 --- a/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties +++ b/bmc-marketplace/src/main/resources/com/oracle/bmc/marketplace/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181001") \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 94806cf4377..d49594ab149 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties index adcbaa55c00..390ab188533 100644 --- a/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties +++ b/bmc-marketplaceprivateoffer/src/main/resources/com/oracle/bmc/marketplaceprivateoffer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 0edf0dd360b..29848b7e966 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties b/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties index adcbaa55c00..390ab188533 100644 --- a/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties +++ b/bmc-marketplacepublisher/src/main/resources/com/oracle/bmc/marketplacepublisher/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 79568de9109..b1425f85691 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties b/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties index a29c11f56dc..92b9c1a20d8 100644 --- a/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties +++ b/bmc-mediaservices/src/main/resources/com/oracle/bmc/mediaservices/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211101") \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 1960abf1e77..720d4bc29c7 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties b/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties index e75cbe05f70..88da049fe37 100644 --- a/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties +++ b/bmc-monitoring/src/main/resources/com/oracle/bmc/monitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180401") \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 56dbdebedf1..e383459cd14 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java index 4cf8fb085fb..0d01a0f5069 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java @@ -47,6 +47,7 @@ public final class Backup extends com.oracle.bmc.http.client.internal.Explicitly "shapeName", "freeformTags", "definedTags", + "systemTags", "immediateSourceBackupId", "originalSourceBackupId", "timeCopyCreated" @@ -71,6 +72,7 @@ public Backup( String shapeName, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, String immediateSourceBackupId, String originalSourceBackupId, java.util.Date timeCopyCreated) { @@ -94,6 +96,7 @@ public Backup( this.shapeName = shapeName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; this.immediateSourceBackupId = immediateSourceBackupId; this.originalSourceBackupId = originalSourceBackupId; this.timeCopyCreated = timeCopyCreated; @@ -389,6 +392,25 @@ public Builder 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; + } /** * The OCID of the immediate source DB system backup from which this DB system backup was * copied. @@ -472,6 +494,7 @@ public Backup build() { this.shapeName, this.freeformTags, this.definedTags, + this.systemTags, this.immediateSourceBackupId, this.originalSourceBackupId, this.timeCopyCreated); @@ -540,6 +563,9 @@ public Builder copy(Backup model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("immediateSourceBackupId")) { this.immediateSourceBackupId(model.getImmediateSourceBackupId()); } @@ -955,6 +981,23 @@ 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; + } + /** * The OCID of the immediate source DB system backup from which this DB system backup was * copied. @@ -1038,6 +1081,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeName=").append(String.valueOf(this.shapeName)); 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(", immediateSourceBackupId=") .append(String.valueOf(this.immediateSourceBackupId)); sb.append(", originalSourceBackupId=").append(String.valueOf(this.originalSourceBackupId)); @@ -1075,6 +1119,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shapeName, other.shapeName) && 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.immediateSourceBackupId, other.immediateSourceBackupId) && java.util.Objects.equals( @@ -1122,6 +1167,7 @@ public int hashCode() { result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.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.immediateSourceBackupId == null diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java index b28b553d71d..539d08ca7bd 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java @@ -43,6 +43,7 @@ public final class BackupSummary extends com.oracle.bmc.http.client.internal.Exp "shapeName", "freeformTags", "definedTags", + "systemTags", "immediateSourceBackupId", "originalSourceBackupId", "timeCopyCreated", @@ -65,6 +66,7 @@ public BackupSummary( String shapeName, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, String immediateSourceBackupId, String originalSourceBackupId, java.util.Date timeCopyCreated, @@ -86,6 +88,7 @@ public BackupSummary( this.shapeName = shapeName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; this.immediateSourceBackupId = immediateSourceBackupId; this.originalSourceBackupId = originalSourceBackupId; this.timeCopyCreated = timeCopyCreated; @@ -343,6 +346,25 @@ public Builder 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; + } /** * The OCID of the immediate source DB system backup from which this DB system backup was * copied. @@ -432,6 +454,7 @@ public BackupSummary build() { this.shapeName, this.freeformTags, this.definedTags, + this.systemTags, this.immediateSourceBackupId, this.originalSourceBackupId, this.timeCopyCreated, @@ -492,6 +515,9 @@ public Builder copy(BackupSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("immediateSourceBackupId")) { this.immediateSourceBackupId(model.getImmediateSourceBackupId()); } @@ -733,6 +759,23 @@ 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; + } + /** * The OCID of the immediate source DB system backup from which this DB system backup was * copied. @@ -820,6 +863,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeName=").append(String.valueOf(this.shapeName)); 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(", immediateSourceBackupId=") .append(String.valueOf(this.immediateSourceBackupId)); sb.append(", originalSourceBackupId=").append(String.valueOf(this.originalSourceBackupId)); @@ -856,6 +900,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shapeName, other.shapeName) && 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.immediateSourceBackupId, other.immediateSourceBackupId) && java.util.Objects.equals( @@ -898,6 +943,7 @@ public int hashCode() { result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.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.immediateSourceBackupId == null diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Channel.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Channel.java index 00418347453..285c2367f2b 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Channel.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Channel.java @@ -34,7 +34,8 @@ public final class Channel extends com.oracle.bmc.http.client.internal.Explicitl "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Channel( String id, @@ -49,7 +50,8 @@ public Channel( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -64,6 +66,7 @@ public Channel( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -268,6 +271,25 @@ public Builder 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(); @@ -287,7 +309,8 @@ public Channel build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -335,6 +358,9 @@ public Builder copy(Channel model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -573,6 +599,23 @@ 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); @@ -601,6 +644,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); 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(); } @@ -628,6 +672,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && 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); } @@ -654,6 +699,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSummary.java index afbe8aaba00..abb94a77ca1 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChannelSummary.java @@ -34,7 +34,8 @@ public final class ChannelSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ChannelSummary( String id, @@ -48,7 +49,8 @@ public ChannelSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -62,6 +64,7 @@ public ChannelSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -251,6 +254,25 @@ public Builder 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(); @@ -269,7 +291,8 @@ public ChannelSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -314,6 +337,9 @@ public Builder copy(ChannelSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -487,6 +513,23 @@ 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); @@ -514,6 +557,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); 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(); } @@ -540,6 +584,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && 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); } @@ -565,6 +610,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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-mysql/src/main/java/com/oracle/bmc/mysql/model/Configuration.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Configuration.java index 52451d234df..b0dccab0e8d 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Configuration.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Configuration.java @@ -35,7 +35,8 @@ public final class Configuration extends com.oracle.bmc.http.client.internal.Exp "variables", "parentConfigurationId", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public Configuration( String id, @@ -51,7 +52,8 @@ public Configuration( ConfigurationVariables variables, String parentConfigurationId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -67,6 +69,7 @@ public Configuration( this.parentConfigurationId = parentConfigurationId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -292,6 +295,25 @@ public Builder 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(); @@ -312,7 +334,8 @@ public Configuration build() { this.variables, this.parentConfigurationId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -363,6 +386,9 @@ public Builder copy(Configuration model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -658,6 +684,23 @@ 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); @@ -687,6 +730,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", parentConfigurationId=").append(String.valueOf(this.parentConfigurationId)); 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(); } @@ -715,6 +759,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.parentConfigurationId, other.parentConfigurationId) && 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); } @@ -746,6 +791,7 @@ public int hashCode() { : this.parentConfigurationId.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-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationSummary.java index 0bc8e191613..ab602b7e982 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationSummary.java @@ -35,7 +35,8 @@ public final class ConfigurationSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ConfigurationSummary( String id, @@ -48,7 +49,8 @@ public ConfigurationSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -61,6 +63,7 @@ public ConfigurationSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -247,6 +250,25 @@ public Builder 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(); @@ -264,7 +286,8 @@ public ConfigurationSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -306,6 +329,9 @@ public Builder copy(ConfigurationSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -478,6 +504,23 @@ 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); @@ -504,6 +547,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); 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(); } @@ -529,6 +573,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && 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); } @@ -551,6 +596,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationVariables.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationVariables.java index 3ce9a69a3e7..698e9e42a4e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationVariables.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ConfigurationVariables.java @@ -26,6 +26,8 @@ public final class ConfigurationVariables @java.beans.ConstructorProperties({ "completionType", "bigTables", + "characterSetServer", + "collationServer", "connectionMemoryChunkSize", "connectionMemoryLimit", "defaultAuthenticationPlugin", @@ -37,6 +39,7 @@ public final class ConfigurationVariables "autocommit", "foreignKeyChecks", "groupReplicationConsistency", + "groupConcatMaxLen", "innodbFtEnableStopword", "innodbLogWriterThreads", "localInfile", @@ -72,6 +75,7 @@ public final class ConfigurationVariables "interactiveTimeout", "innodbStatsPersistentSamplePages", "innodbStatsTransientSamplePages", + "innodbStrictMode", "maxAllowedPacket", "maxExecutionTime", "mysqlxConnectTimeout", @@ -102,11 +106,48 @@ public final class ConfigurationVariables "waitTimeout", "threadPoolDedicatedListeners", "threadPoolMaxTransactionsLimit", - "timeZone" + "timeZone", + "blockEncryptionMode", + "binlogGroupCommitSyncDelay", + "binlogGroupCommitSyncNoDelayCount", + "replicaNetTimeout", + "requireSecureTransport", + "innodbRedoLogCapacity", + "threadPoolTransactionDelay", + "threadPoolQueryThreadsPerGroup", + "explainFormat", + "explicitDefaultsForTimestamp", + "sqlGenerateInvisiblePrimaryKey", + "temptableMaxRam", + "innodbChangeBuffering", + "innodbAdaptiveHashIndex", + "innodbUndoLogTruncate", + "tableDefinitionCache", + "tableOpenCache", + "relayLogSpaceLimit", + "optimizerSwitch", + "replicaTypeConversions", + "replicaParallelWorkers", + "skipNameResolve", + "maxUserConnections", + "joinBufferSize", + "maxSeeksForKey", + "rangeOptimizerMaxMemSize", + "autoIncrementIncrement", + "autoIncrementOffset", + "innodbAutoincLockMode", + "innodbRollbackOnTimeout", + "innodbOnlineAlterLogMaxSize", + "innodbSortBufferSize", + "innodbNumaInterleave", + "threadPoolSize", + "longQueryTime" }) public ConfigurationVariables( CompletionType completionType, Boolean bigTables, + CharacterSetServer characterSetServer, + CollationServer collationServer, Integer connectionMemoryChunkSize, Long connectionMemoryLimit, DefaultAuthenticationPlugin defaultAuthenticationPlugin, @@ -118,6 +159,7 @@ public ConfigurationVariables( Boolean autocommit, Boolean foreignKeyChecks, GroupReplicationConsistency groupReplicationConsistency, + Long groupConcatMaxLen, Boolean innodbFtEnableStopword, Boolean innodbLogWriterThreads, Boolean localInfile, @@ -153,6 +195,7 @@ public ConfigurationVariables( Integer interactiveTimeout, Long innodbStatsPersistentSamplePages, Long innodbStatsTransientSamplePages, + Boolean innodbStrictMode, Integer maxAllowedPacket, Long maxExecutionTime, Integer mysqlxConnectTimeout, @@ -183,10 +226,47 @@ public ConfigurationVariables( Integer waitTimeout, Boolean threadPoolDedicatedListeners, Integer threadPoolMaxTransactionsLimit, - String timeZone) { + String timeZone, + String blockEncryptionMode, + Integer binlogGroupCommitSyncDelay, + Integer binlogGroupCommitSyncNoDelayCount, + Integer replicaNetTimeout, + Boolean requireSecureTransport, + Long innodbRedoLogCapacity, + Integer threadPoolTransactionDelay, + Integer threadPoolQueryThreadsPerGroup, + ExplainFormat explainFormat, + Boolean explicitDefaultsForTimestamp, + Boolean sqlGenerateInvisiblePrimaryKey, + Long temptableMaxRam, + InnodbChangeBuffering innodbChangeBuffering, + Boolean innodbAdaptiveHashIndex, + Boolean innodbUndoLogTruncate, + Integer tableDefinitionCache, + Integer tableOpenCache, + Long relayLogSpaceLimit, + String optimizerSwitch, + String replicaTypeConversions, + Integer replicaParallelWorkers, + Boolean skipNameResolve, + Long maxUserConnections, + Long joinBufferSize, + Long maxSeeksForKey, + Long rangeOptimizerMaxMemSize, + Integer autoIncrementIncrement, + Integer autoIncrementOffset, + Integer innodbAutoincLockMode, + Boolean innodbRollbackOnTimeout, + Long innodbOnlineAlterLogMaxSize, + Integer innodbSortBufferSize, + Boolean innodbNumaInterleave, + Integer threadPoolSize, + Integer longQueryTime) { super(); this.completionType = completionType; this.bigTables = bigTables; + this.characterSetServer = characterSetServer; + this.collationServer = collationServer; this.connectionMemoryChunkSize = connectionMemoryChunkSize; this.connectionMemoryLimit = connectionMemoryLimit; this.defaultAuthenticationPlugin = defaultAuthenticationPlugin; @@ -198,6 +278,7 @@ public ConfigurationVariables( this.autocommit = autocommit; this.foreignKeyChecks = foreignKeyChecks; this.groupReplicationConsistency = groupReplicationConsistency; + this.groupConcatMaxLen = groupConcatMaxLen; this.innodbFtEnableStopword = innodbFtEnableStopword; this.innodbLogWriterThreads = innodbLogWriterThreads; this.localInfile = localInfile; @@ -233,6 +314,7 @@ public ConfigurationVariables( this.interactiveTimeout = interactiveTimeout; this.innodbStatsPersistentSamplePages = innodbStatsPersistentSamplePages; this.innodbStatsTransientSamplePages = innodbStatsTransientSamplePages; + this.innodbStrictMode = innodbStrictMode; this.maxAllowedPacket = maxAllowedPacket; this.maxExecutionTime = maxExecutionTime; this.mysqlxConnectTimeout = mysqlxConnectTimeout; @@ -264,6 +346,41 @@ public ConfigurationVariables( this.threadPoolDedicatedListeners = threadPoolDedicatedListeners; this.threadPoolMaxTransactionsLimit = threadPoolMaxTransactionsLimit; this.timeZone = timeZone; + this.blockEncryptionMode = blockEncryptionMode; + this.binlogGroupCommitSyncDelay = binlogGroupCommitSyncDelay; + this.binlogGroupCommitSyncNoDelayCount = binlogGroupCommitSyncNoDelayCount; + this.replicaNetTimeout = replicaNetTimeout; + this.requireSecureTransport = requireSecureTransport; + this.innodbRedoLogCapacity = innodbRedoLogCapacity; + this.threadPoolTransactionDelay = threadPoolTransactionDelay; + this.threadPoolQueryThreadsPerGroup = threadPoolQueryThreadsPerGroup; + this.explainFormat = explainFormat; + this.explicitDefaultsForTimestamp = explicitDefaultsForTimestamp; + this.sqlGenerateInvisiblePrimaryKey = sqlGenerateInvisiblePrimaryKey; + this.temptableMaxRam = temptableMaxRam; + this.innodbChangeBuffering = innodbChangeBuffering; + this.innodbAdaptiveHashIndex = innodbAdaptiveHashIndex; + this.innodbUndoLogTruncate = innodbUndoLogTruncate; + this.tableDefinitionCache = tableDefinitionCache; + this.tableOpenCache = tableOpenCache; + this.relayLogSpaceLimit = relayLogSpaceLimit; + this.optimizerSwitch = optimizerSwitch; + this.replicaTypeConversions = replicaTypeConversions; + this.replicaParallelWorkers = replicaParallelWorkers; + this.skipNameResolve = skipNameResolve; + this.maxUserConnections = maxUserConnections; + this.joinBufferSize = joinBufferSize; + this.maxSeeksForKey = maxSeeksForKey; + this.rangeOptimizerMaxMemSize = rangeOptimizerMaxMemSize; + this.autoIncrementIncrement = autoIncrementIncrement; + this.autoIncrementOffset = autoIncrementOffset; + this.innodbAutoincLockMode = innodbAutoincLockMode; + this.innodbRollbackOnTimeout = innodbRollbackOnTimeout; + this.innodbOnlineAlterLogMaxSize = innodbOnlineAlterLogMaxSize; + this.innodbSortBufferSize = innodbSortBufferSize; + this.innodbNumaInterleave = innodbNumaInterleave; + this.threadPoolSize = threadPoolSize; + this.longQueryTime = longQueryTime; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -306,6 +423,54 @@ public Builder bigTables(Boolean bigTables) { this.__explicitlySet__.add("bigTables"); return this; } + /** + * The server's default character set. If you set this variable, you should also set + * collation_server to specify the collation for the character set. + * + *

characterSetServer corresponds to the MySQL server variable + * [character_set_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_character_set_server). + */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSetServer") + private CharacterSetServer characterSetServer; + + /** + * The server's default character set. If you set this variable, you should also set + * collation_server to specify the collation for the character set. + * + *

characterSetServer corresponds to the MySQL server variable + * [character_set_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_character_set_server). + * + * @param characterSetServer the value to set + * @return this builder + */ + public Builder characterSetServer(CharacterSetServer characterSetServer) { + this.characterSetServer = characterSetServer; + this.__explicitlySet__.add("characterSetServer"); + return this; + } + /** + * The server's default collation. + * + *

collationServer corresponds to the MySQL server variable + * [collation_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_collation_server). + */ + @com.fasterxml.jackson.annotation.JsonProperty("collationServer") + private CollationServer collationServer; + + /** + * The server's default collation. + * + *

collationServer corresponds to the MySQL server variable + * [collation_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_collation_server). + * + * @param collationServer the value to set + * @return this builder + */ + public Builder collationServer(CollationServer collationServer) { + this.collationServer = collationServer; + this.__explicitlySet__.add("collationServer"); + return this; + } /** * Set the chunking size for updates to the global memory usage counter * Global_connection_memory. @@ -354,12 +519,36 @@ public Builder connectionMemoryLimit(Long connectionMemoryLimit) { this.__explicitlySet__.add("connectionMemoryLimit"); return this; } - /** ("default_authentication_plugin") */ + /** + * The default authentication plugin. This must be a plugin that uses internal credentials + * storage, so these values are permitted: mysql_native_password, sha256_password, + * caching_sha2_password. + * + *

As of MySQL 8.0.27, which introduces multifactor authentication, + * default_authentication_plugin is still used, but in conjunction with and at a lower + * precedence than the authentication_policy system variable. For details, see The Default + * Authentication Plugin. Because of this diminished role, default_authentication_plugin is + * deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version. + * + *

defaultAuthenticationPlugin corresponds to the MySQL system variable + * [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin). + */ @com.fasterxml.jackson.annotation.JsonProperty("defaultAuthenticationPlugin") private DefaultAuthenticationPlugin defaultAuthenticationPlugin; /** - * ("default_authentication_plugin") + * The default authentication plugin. This must be a plugin that uses internal credentials + * storage, so these values are permitted: mysql_native_password, sha256_password, + * caching_sha2_password. + * + *

As of MySQL 8.0.27, which introduces multifactor authentication, + * default_authentication_plugin is still used, but in conjunction with and at a lower + * precedence than the authentication_policy system variable. For details, see The Default + * Authentication Plugin. Because of this diminished role, default_authentication_plugin is + * deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version. + * + *

defaultAuthenticationPlugin corresponds to the MySQL system variable + * [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin). * * @param defaultAuthenticationPlugin the value to set * @return this builder @@ -573,6 +762,31 @@ public Builder groupReplicationConsistency( this.__explicitlySet__.add("groupReplicationConsistency"); return this; } + /** + * Specifies the maximum permitted result length in bytes for the GROUP_CONCAT() function. + * + *

This is the MySQL variable "group_concat_max_len". For more information, please see + * the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_group_concat_max_len) + */ + @com.fasterxml.jackson.annotation.JsonProperty("groupConcatMaxLen") + private Long groupConcatMaxLen; + + /** + * Specifies the maximum permitted result length in bytes for the GROUP_CONCAT() function. + * + *

This is the MySQL variable "group_concat_max_len". For more information, please see + * the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_group_concat_max_len) + * + * @param groupConcatMaxLen the value to set + * @return this builder + */ + public Builder groupConcatMaxLen(Long groupConcatMaxLen) { + this.groupConcatMaxLen = groupConcatMaxLen; + this.__explicitlySet__.add("groupConcatMaxLen"); + return this; + } /** ("innodb_ft_enable_stopword") */ @com.fasterxml.jackson.annotation.JsonProperty("innodbFtEnableStopword") private Boolean innodbFtEnableStopword; @@ -615,12 +829,24 @@ public Builder innodbLogWriterThreads(Boolean innodbLogWriterThreads) { this.__explicitlySet__.add("innodbLogWriterThreads"); return this; } - /** ("local_infile") */ + /** + * This variable controls server-side LOCAL capability for LOAD DATA statements. Depending + * on the local_infile setting, the server refuses or permits local data loading by clients + * that have LOCAL enabled on the client side. + * + *

local_infile corresponds to the MySQL Server system variable + * [local_infile](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_local_infile) + */ @com.fasterxml.jackson.annotation.JsonProperty("localInfile") private Boolean localInfile; /** - * ("local_infile") + * This variable controls server-side LOCAL capability for LOAD DATA statements. Depending + * on the local_infile setting, the server refuses or permits local data loading by clients + * that have LOCAL enabled on the client side. + * + *

local_infile corresponds to the MySQL Server system variable + * [local_infile](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_local_infile) * * @param localInfile the value to set * @return this builder @@ -1322,6 +1548,31 @@ public Builder innodbStatsTransientSamplePages(Long innodbStatsTransientSamplePa this.__explicitlySet__.add("innodbStatsTransientSamplePages"); return this; } + /** + * When you enable innodbStrictMode, the InnoDB storage engine returns errors instead of + * warnings for invalid or incompatible table options. + * + *

innodbStrictMode corresponds to the MySQL InnoDB system variable + * [innodb_strict_mode](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_strict_mode) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbStrictMode") + private Boolean innodbStrictMode; + + /** + * When you enable innodbStrictMode, the InnoDB storage engine returns errors instead of + * warnings for invalid or incompatible table options. + * + *

innodbStrictMode corresponds to the MySQL InnoDB system variable + * [innodb_strict_mode](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_strict_mode) + * + * @param innodbStrictMode the value to set + * @return this builder + */ + public Builder innodbStrictMode(Boolean innodbStrictMode) { + this.innodbStrictMode = innodbStrictMode; + this.__explicitlySet__.add("innodbStrictMode"); + return this; + } /** * The maximum size of one packet or any generated/intermediate string. * @@ -1988,189 +2239,1321 @@ public Builder timeZone(String timeZone) { this.__explicitlySet__.add("timeZone"); return this; } + /** + * This variable controls the block encryption mode for block-based algorithms such as AES. + * It affects encryption for AES_ENCRYPT() and AES_DECRYPT(). + * + *

block_encryption_mode takes a value in aes-keylen-mode format, where keylen is the key + * length in bits and mode is the encryption mode. The value is not case-sensitive. + * Permitted keylen values are 128, 192, and 256. Permitted mode values are ECB, CBC, CFB1, + * CFB8, CFB128, and OFB. + * + *

block_encryption_mode corresponds to the MySQL Server Administration system variable + * [block_encryption_mode](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode) + */ + @com.fasterxml.jackson.annotation.JsonProperty("blockEncryptionMode") + private String blockEncryptionMode; - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + /** + * This variable controls the block encryption mode for block-based algorithms such as AES. + * It affects encryption for AES_ENCRYPT() and AES_DECRYPT(). + * + *

block_encryption_mode takes a value in aes-keylen-mode format, where keylen is the key + * length in bits and mode is the encryption mode. The value is not case-sensitive. + * Permitted keylen values are 128, 192, and 256. Permitted mode values are ECB, CBC, CFB1, + * CFB8, CFB128, and OFB. + * + *

block_encryption_mode corresponds to the MySQL Server Administration system variable + * [block_encryption_mode](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode) + * + * @param blockEncryptionMode the value to set + * @return this builder + */ + public Builder blockEncryptionMode(String blockEncryptionMode) { + this.blockEncryptionMode = blockEncryptionMode; + this.__explicitlySet__.add("blockEncryptionMode"); + return this; + } + /** + * Controls how many microseconds the binary log commit waits before synchronizing the + * binary log file to disk. There is no delay by default. Setting this variable to a + * microsecond delay enables more transactions to be synchronized together to disk at once, + * reducing the overall time to commit a group of transactions because the larger groups + * required fewer time units per group. + * + *

binlogGroupCommitSyncDelay corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_delay](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_delay) + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogGroupCommitSyncDelay") + private Integer binlogGroupCommitSyncDelay; - public ConfigurationVariables build() { - ConfigurationVariables model = - new ConfigurationVariables( - this.completionType, - this.bigTables, - this.connectionMemoryChunkSize, - this.connectionMemoryLimit, - this.defaultAuthenticationPlugin, - this.globalConnectionMemoryLimit, - this.globalConnectionMemoryTracking, - this.transactionIsolation, - this.innodbFtServerStopwordTable, - this.mandatoryRoles, - this.autocommit, - this.foreignKeyChecks, - this.groupReplicationConsistency, - this.innodbFtEnableStopword, - this.innodbLogWriterThreads, - this.localInfile, - this.mysqlFirewallMode, - this.mysqlxEnableHelloNotice, - this.sqlRequirePrimaryKey, - this.sqlWarnings, - this.binlogExpireLogsSeconds, - this.binlogRowMetadata, - this.binlogRowValueOptions, - this.binlogTransactionCompression, - this.innodbBufferPoolSize, - this.innodbFtResultCacheLimit, - this.maxBinlogCacheSize, - this.maxConnectErrors, - this.maxHeapTableSize, - this.maxConnections, - this.maxPreparedStmtCount, - this.connectTimeout, - this.cteMaxRecursionDepth, - this.generatedRandomPasswordLength, - this.informationSchemaStatsExpiry, - this.innodbBufferPoolDumpPct, - this.innodbBufferPoolInstances, - this.innodbDdlBufferSize, - this.innodbDdlThreads, - this.innodbFtMaxTokenSize, - this.innodbFtMinTokenSize, - this.innodbFtNumWordOptimize, - this.innodbLockWaitTimeout, - this.innodbMaxPurgeLag, - this.innodbMaxPurgeLagDelay, - this.interactiveTimeout, - this.innodbStatsPersistentSamplePages, - this.innodbStatsTransientSamplePages, - this.maxAllowedPacket, - this.maxExecutionTime, - this.mysqlxConnectTimeout, - this.mysqlxDocumentIdUniquePrefix, - this.mysqlxIdleWorkerThreadTimeout, - this.mysqlxInteractiveTimeout, - this.mysqlxMaxAllowedPacket, - this.mysqlxMinWorkerThreads, - this.mysqlxReadTimeout, - this.mysqlxWaitTimeout, - this.mysqlxWriteTimeout, - this.netReadTimeout, - this.netWriteTimeout, - this.parserMaxMemSize, - this.queryAllocBlockSize, - this.queryPreallocSize, - this.regexpTimeLimit, - this.sqlMode, - this.tmpTableSize, - this.mysqlxDeflateDefaultCompressionLevel, - this.mysqlxDeflateMaxClientCompressionLevel, - this.mysqlxLz4MaxClientCompressionLevel, - this.mysqlxLz4DefaultCompressionLevel, - this.mysqlxZstdMaxClientCompressionLevel, - this.mysqlxZstdDefaultCompressionLevel, - this.mysqlZstdDefaultCompressionLevel, - this.sortBufferSize, - this.waitTimeout, - this.threadPoolDedicatedListeners, - this.threadPoolMaxTransactionsLimit, - this.timeZone); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; + /** + * Controls how many microseconds the binary log commit waits before synchronizing the + * binary log file to disk. There is no delay by default. Setting this variable to a + * microsecond delay enables more transactions to be synchronized together to disk at once, + * reducing the overall time to commit a group of transactions because the larger groups + * required fewer time units per group. + * + *

binlogGroupCommitSyncDelay corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_delay](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_delay) + * + * @param binlogGroupCommitSyncDelay the value to set + * @return this builder + */ + public Builder binlogGroupCommitSyncDelay(Integer binlogGroupCommitSyncDelay) { + this.binlogGroupCommitSyncDelay = binlogGroupCommitSyncDelay; + this.__explicitlySet__.add("binlogGroupCommitSyncDelay"); + return this; } + /** + * The maximum number of transactions to wait for before aborting the current delay as + * specified by binlog_group_commit_sync_delay. If binlog_group_commit_sync_delay is set to + * 0, then this option has no effect. + * + *

binlogGroupCommitSyncNoDelayCount corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_no_delay_count](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_no_delay_count) + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogGroupCommitSyncNoDelayCount") + private Integer binlogGroupCommitSyncNoDelayCount; - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConfigurationVariables model) { - if (model.wasPropertyExplicitlySet("completionType")) { - this.completionType(model.getCompletionType()); - } - if (model.wasPropertyExplicitlySet("bigTables")) { - this.bigTables(model.getBigTables()); - } - if (model.wasPropertyExplicitlySet("connectionMemoryChunkSize")) { - this.connectionMemoryChunkSize(model.getConnectionMemoryChunkSize()); - } - if (model.wasPropertyExplicitlySet("connectionMemoryLimit")) { - this.connectionMemoryLimit(model.getConnectionMemoryLimit()); - } - if (model.wasPropertyExplicitlySet("defaultAuthenticationPlugin")) { - this.defaultAuthenticationPlugin(model.getDefaultAuthenticationPlugin()); - } - if (model.wasPropertyExplicitlySet("globalConnectionMemoryLimit")) { - this.globalConnectionMemoryLimit(model.getGlobalConnectionMemoryLimit()); - } - if (model.wasPropertyExplicitlySet("globalConnectionMemoryTracking")) { - this.globalConnectionMemoryTracking(model.getGlobalConnectionMemoryTracking()); - } - if (model.wasPropertyExplicitlySet("transactionIsolation")) { - this.transactionIsolation(model.getTransactionIsolation()); - } - if (model.wasPropertyExplicitlySet("innodbFtServerStopwordTable")) { - this.innodbFtServerStopwordTable(model.getInnodbFtServerStopwordTable()); - } - if (model.wasPropertyExplicitlySet("mandatoryRoles")) { - this.mandatoryRoles(model.getMandatoryRoles()); - } - if (model.wasPropertyExplicitlySet("autocommit")) { - this.autocommit(model.getAutocommit()); - } - if (model.wasPropertyExplicitlySet("foreignKeyChecks")) { - this.foreignKeyChecks(model.getForeignKeyChecks()); - } - if (model.wasPropertyExplicitlySet("groupReplicationConsistency")) { - this.groupReplicationConsistency(model.getGroupReplicationConsistency()); - } - if (model.wasPropertyExplicitlySet("innodbFtEnableStopword")) { - this.innodbFtEnableStopword(model.getInnodbFtEnableStopword()); - } - if (model.wasPropertyExplicitlySet("innodbLogWriterThreads")) { - this.innodbLogWriterThreads(model.getInnodbLogWriterThreads()); - } - if (model.wasPropertyExplicitlySet("localInfile")) { - this.localInfile(model.getLocalInfile()); - } - if (model.wasPropertyExplicitlySet("mysqlFirewallMode")) { - this.mysqlFirewallMode(model.getMysqlFirewallMode()); - } - if (model.wasPropertyExplicitlySet("mysqlxEnableHelloNotice")) { - this.mysqlxEnableHelloNotice(model.getMysqlxEnableHelloNotice()); - } - if (model.wasPropertyExplicitlySet("sqlRequirePrimaryKey")) { - this.sqlRequirePrimaryKey(model.getSqlRequirePrimaryKey()); - } - if (model.wasPropertyExplicitlySet("sqlWarnings")) { - this.sqlWarnings(model.getSqlWarnings()); - } - if (model.wasPropertyExplicitlySet("binlogExpireLogsSeconds")) { - this.binlogExpireLogsSeconds(model.getBinlogExpireLogsSeconds()); - } - if (model.wasPropertyExplicitlySet("binlogRowMetadata")) { - this.binlogRowMetadata(model.getBinlogRowMetadata()); - } - if (model.wasPropertyExplicitlySet("binlogRowValueOptions")) { - this.binlogRowValueOptions(model.getBinlogRowValueOptions()); - } - if (model.wasPropertyExplicitlySet("binlogTransactionCompression")) { - this.binlogTransactionCompression(model.getBinlogTransactionCompression()); - } - if (model.wasPropertyExplicitlySet("innodbBufferPoolSize")) { - this.innodbBufferPoolSize(model.getInnodbBufferPoolSize()); - } - if (model.wasPropertyExplicitlySet("innodbFtResultCacheLimit")) { - this.innodbFtResultCacheLimit(model.getInnodbFtResultCacheLimit()); - } - if (model.wasPropertyExplicitlySet("maxBinlogCacheSize")) { - this.maxBinlogCacheSize(model.getMaxBinlogCacheSize()); - } - if (model.wasPropertyExplicitlySet("maxConnectErrors")) { - this.maxConnectErrors(model.getMaxConnectErrors()); - } - if (model.wasPropertyExplicitlySet("maxHeapTableSize")) { - this.maxHeapTableSize(model.getMaxHeapTableSize()); - } - if (model.wasPropertyExplicitlySet("maxConnections")) { - this.maxConnections(model.getMaxConnections()); + /** + * The maximum number of transactions to wait for before aborting the current delay as + * specified by binlog_group_commit_sync_delay. If binlog_group_commit_sync_delay is set to + * 0, then this option has no effect. + * + *

binlogGroupCommitSyncNoDelayCount corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_no_delay_count](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_no_delay_count) + * + * @param binlogGroupCommitSyncNoDelayCount the value to set + * @return this builder + */ + public Builder binlogGroupCommitSyncNoDelayCount( + Integer binlogGroupCommitSyncNoDelayCount) { + this.binlogGroupCommitSyncNoDelayCount = binlogGroupCommitSyncNoDelayCount; + this.__explicitlySet__.add("binlogGroupCommitSyncNoDelayCount"); + return this; + } + /** + * Specifies the number of seconds to wait for more data or a heartbeat signal from the + * source before the replica considers the connection broken, aborts the read, and tries to + * reconnect. Setting this variable has no immediate effect. The state of the variable + * applies on all subsequent START REPLICA commands. + * + *

replicaNetTimeout corresponds to the MySQL Replica server system variable + * [replica_net_timeout](https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_net_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicaNetTimeout") + private Integer replicaNetTimeout; + + /** + * Specifies the number of seconds to wait for more data or a heartbeat signal from the + * source before the replica considers the connection broken, aborts the read, and tries to + * reconnect. Setting this variable has no immediate effect. The state of the variable + * applies on all subsequent START REPLICA commands. + * + *

replicaNetTimeout corresponds to the MySQL Replica server system variable + * [replica_net_timeout](https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_net_timeout) + * + * @param replicaNetTimeout the value to set + * @return this builder + */ + public Builder replicaNetTimeout(Integer replicaNetTimeout) { + this.replicaNetTimeout = replicaNetTimeout; + this.__explicitlySet__.add("replicaNetTimeout"); + return this; + } + /** + * Whether client connections to the server are required to use some form of secure + * transport. When this variable is enabled, the server permits only TCP/IP connections + * encrypted using TLS/SSL, or connections that use a socket file or shared memory. The + * server rejects nonsecure connection attempts, which fail with an + * ER_SECURE_TRANSPORT_REQUIRED error. + * + *

require_secure_transport corresponds to the MySQL Server Administration system + * variable + * [require_secure_transport](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_require_secure_transport) + */ + @com.fasterxml.jackson.annotation.JsonProperty("requireSecureTransport") + private Boolean requireSecureTransport; + + /** + * Whether client connections to the server are required to use some form of secure + * transport. When this variable is enabled, the server permits only TCP/IP connections + * encrypted using TLS/SSL, or connections that use a socket file or shared memory. The + * server rejects nonsecure connection attempts, which fail with an + * ER_SECURE_TRANSPORT_REQUIRED error. + * + *

require_secure_transport corresponds to the MySQL Server Administration system + * variable + * [require_secure_transport](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_require_secure_transport) + * + * @param requireSecureTransport the value to set + * @return this builder + */ + public Builder requireSecureTransport(Boolean requireSecureTransport) { + this.requireSecureTransport = requireSecureTransport; + this.__explicitlySet__.add("requireSecureTransport"); + return this; + } + /** + * Defines the amount of disk space occupied by redo log files. innodb_redo_log_capacity + * supercedes the innodb_log_files_in_group and innodb_log_file_size variables, which are + * both ignored if innodb_redo_log_capacity is defined. If innodb_redo_log_capacity is not + * defined, and if neither innodb_log_file_size or innodb_log_files_in_group are defined, + * then the default innodb_redo_log_capacity value is used. + * + *

innodbRedoLogCapacity corresponds to the InnoDB Startup Options and System Variables + * [innodb_redo_log_capacity](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_redo_log_capacity) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbRedoLogCapacity") + private Long innodbRedoLogCapacity; + + /** + * Defines the amount of disk space occupied by redo log files. innodb_redo_log_capacity + * supercedes the innodb_log_files_in_group and innodb_log_file_size variables, which are + * both ignored if innodb_redo_log_capacity is defined. If innodb_redo_log_capacity is not + * defined, and if neither innodb_log_file_size or innodb_log_files_in_group are defined, + * then the default innodb_redo_log_capacity value is used. + * + *

innodbRedoLogCapacity corresponds to the InnoDB Startup Options and System Variables + * [innodb_redo_log_capacity](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_redo_log_capacity) + * + * @param innodbRedoLogCapacity the value to set + * @return this builder + */ + public Builder innodbRedoLogCapacity(Long innodbRedoLogCapacity) { + this.innodbRedoLogCapacity = innodbRedoLogCapacity; + this.__explicitlySet__.add("innodbRedoLogCapacity"); + return this; + } + /** + * The delay period before executing a new transaction, in milliseconds. The maximum value + * is 300000 (5 minutes). A transaction delay can be used in cases where parallel + * transactions affect the performance of other operations due to resource contention. For + * example, if parallel transactions affect index creation or an online buffer pool resizing + * operation, you can configure a transaction delay to reduce resource contention while + * those operations are running. + * + *

threadPoolTransactionDelay corresponds to the MySQL Server system variable + * [thread_pool_transaction_delay](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_transaction_delay) + */ + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolTransactionDelay") + private Integer threadPoolTransactionDelay; + + /** + * The delay period before executing a new transaction, in milliseconds. The maximum value + * is 300000 (5 minutes). A transaction delay can be used in cases where parallel + * transactions affect the performance of other operations due to resource contention. For + * example, if parallel transactions affect index creation or an online buffer pool resizing + * operation, you can configure a transaction delay to reduce resource contention while + * those operations are running. + * + *

threadPoolTransactionDelay corresponds to the MySQL Server system variable + * [thread_pool_transaction_delay](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_transaction_delay) + * + * @param threadPoolTransactionDelay the value to set + * @return this builder + */ + public Builder threadPoolTransactionDelay(Integer threadPoolTransactionDelay) { + this.threadPoolTransactionDelay = threadPoolTransactionDelay; + this.__explicitlySet__.add("threadPoolTransactionDelay"); + return this; + } + /** + * The maximum number of query threads permitted in a thread group. The maximum value is + * 4096, but if thread_pool_max_transactions_limit is set, + * thread_pool_query_threads_per_group must not exceed that value. The default value of 1 + * means there is one active query thread in each thread group, which works well for many + * loads. When you are using the high concurrency thread pool algorithm + * (thread_pool_algorithm = 1), consider increasing the value if you experience slower + * response times due to long-running transactions. + * + *

threadPoolQueryThreadsPerGroup corresponds to the MySQL Server system variable + * [thread_pool_query_threads_per_group](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_query_threads_per_group) + */ + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolQueryThreadsPerGroup") + private Integer threadPoolQueryThreadsPerGroup; + + /** + * The maximum number of query threads permitted in a thread group. The maximum value is + * 4096, but if thread_pool_max_transactions_limit is set, + * thread_pool_query_threads_per_group must not exceed that value. The default value of 1 + * means there is one active query thread in each thread group, which works well for many + * loads. When you are using the high concurrency thread pool algorithm + * (thread_pool_algorithm = 1), consider increasing the value if you experience slower + * response times due to long-running transactions. + * + *

threadPoolQueryThreadsPerGroup corresponds to the MySQL Server system variable + * [thread_pool_query_threads_per_group](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_query_threads_per_group) + * + * @param threadPoolQueryThreadsPerGroup the value to set + * @return this builder + */ + public Builder threadPoolQueryThreadsPerGroup(Integer threadPoolQueryThreadsPerGroup) { + this.threadPoolQueryThreadsPerGroup = threadPoolQueryThreadsPerGroup; + this.__explicitlySet__.add("threadPoolQueryThreadsPerGroup"); + return this; + } + /** + * This variable determines the default output format used by EXPLAIN in the absence of a + * FORMAT option when displaying a query execution plan. + * + *

explainFormat corresponds to the MySQL system variable + * [explain_format](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explain_format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("explainFormat") + private ExplainFormat explainFormat; + + /** + * This variable determines the default output format used by EXPLAIN in the absence of a + * FORMAT option when displaying a query execution plan. + * + *

explainFormat corresponds to the MySQL system variable + * [explain_format](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explain_format). + * + * @param explainFormat the value to set + * @return this builder + */ + public Builder explainFormat(ExplainFormat explainFormat) { + this.explainFormat = explainFormat; + this.__explicitlySet__.add("explainFormat"); + return this; + } + /** + * This system variable determines whether the server enables certain nonstandard behaviors + * for default values and NULL-value handling in TIMESTAMP columns. By default, + * explicit_defaults_for_timestamp is enabled, which disables the nonstandard behaviors. + * Disabling explicit_defaults_for_timestamp results in a warning. + * + *

explicit_defaults_for_timestamp corresponds to the MySQL Server Administration system + * variable + * [explicit_defaults_for_timestamp](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp) + */ + @com.fasterxml.jackson.annotation.JsonProperty("explicitDefaultsForTimestamp") + private Boolean explicitDefaultsForTimestamp; + + /** + * This system variable determines whether the server enables certain nonstandard behaviors + * for default values and NULL-value handling in TIMESTAMP columns. By default, + * explicit_defaults_for_timestamp is enabled, which disables the nonstandard behaviors. + * Disabling explicit_defaults_for_timestamp results in a warning. + * + *

explicit_defaults_for_timestamp corresponds to the MySQL Server Administration system + * variable + * [explicit_defaults_for_timestamp](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp) + * + * @param explicitDefaultsForTimestamp the value to set + * @return this builder + */ + public Builder explicitDefaultsForTimestamp(Boolean explicitDefaultsForTimestamp) { + this.explicitDefaultsForTimestamp = explicitDefaultsForTimestamp; + this.__explicitlySet__.add("explicitDefaultsForTimestamp"); + return this; + } + /** + * Whether GIPK mode is in effect, in which case a MySQL replication source server adds a + * generated invisible primary key to any InnoDB table that is created without one. + * + *

sqlGenerateInvisiblePrimaryKey corresponds to the MySQL system variable + * [sql_generate_invisible_primary_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_generate_invisible_primary_key). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sqlGenerateInvisiblePrimaryKey") + private Boolean sqlGenerateInvisiblePrimaryKey; + + /** + * Whether GIPK mode is in effect, in which case a MySQL replication source server adds a + * generated invisible primary key to any InnoDB table that is created without one. + * + *

sqlGenerateInvisiblePrimaryKey corresponds to the MySQL system variable + * [sql_generate_invisible_primary_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_generate_invisible_primary_key). + * + * @param sqlGenerateInvisiblePrimaryKey the value to set + * @return this builder + */ + public Builder sqlGenerateInvisiblePrimaryKey(Boolean sqlGenerateInvisiblePrimaryKey) { + this.sqlGenerateInvisiblePrimaryKey = sqlGenerateInvisiblePrimaryKey; + this.__explicitlySet__.add("sqlGenerateInvisiblePrimaryKey"); + return this; + } + /** + * Defines the maximum amount of memory that can be occupied by the TempTable storage engine + * before it starts storing data on disk. The default value is 1073741824 bytes (1GiB). For + * more information, see Section 10.4.4, \u201CInternal Temporary Table Use in MySQL\u201D. + * + *

temptableMaxRam corresponds to the MySQL system variable [temptable_max_ram] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_temptable_max_ram). + */ + @com.fasterxml.jackson.annotation.JsonProperty("temptableMaxRam") + private Long temptableMaxRam; + + /** + * Defines the maximum amount of memory that can be occupied by the TempTable storage engine + * before it starts storing data on disk. The default value is 1073741824 bytes (1GiB). For + * more information, see Section 10.4.4, \u201CInternal Temporary Table Use in MySQL\u201D. + * + *

temptableMaxRam corresponds to the MySQL system variable [temptable_max_ram] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_temptable_max_ram). + * + * @param temptableMaxRam the value to set + * @return this builder + */ + public Builder temptableMaxRam(Long temptableMaxRam) { + this.temptableMaxRam = temptableMaxRam; + this.__explicitlySet__.add("temptableMaxRam"); + return this; + } + /** + * Whether InnoDB performs change buffering, an optimization that delays write operations to + * secondary indexes so that the I/O operations can be performed sequentially. Permitted + * values are described in the following table. Values may also be specified numerically. + * + *

innodbChangeBuffering corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_change_buffering] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_change_buffering). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbChangeBuffering") + private InnodbChangeBuffering innodbChangeBuffering; + + /** + * Whether InnoDB performs change buffering, an optimization that delays write operations to + * secondary indexes so that the I/O operations can be performed sequentially. Permitted + * values are described in the following table. Values may also be specified numerically. + * + *

innodbChangeBuffering corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_change_buffering] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_change_buffering). + * + * @param innodbChangeBuffering the value to set + * @return this builder + */ + public Builder innodbChangeBuffering(InnodbChangeBuffering innodbChangeBuffering) { + this.innodbChangeBuffering = innodbChangeBuffering; + this.__explicitlySet__.add("innodbChangeBuffering"); + return this; + } + /** + * Whether the InnoDB adaptive hash index is enabled or disabled. It may be desirable, + * depending on your workload, to dynamically enable or disable adaptive hash indexing to + * improve query performance. Because the adaptive hash index may not be useful for all + * workloads, conduct benchmarks with it both enabled and disabled, using realistic + * workloads. + * + *

innodbAdaptiveHashIndex corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_adaptive_hash_index] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_adaptive_hash_index). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbAdaptiveHashIndex") + private Boolean innodbAdaptiveHashIndex; + + /** + * Whether the InnoDB adaptive hash index is enabled or disabled. It may be desirable, + * depending on your workload, to dynamically enable or disable adaptive hash indexing to + * improve query performance. Because the adaptive hash index may not be useful for all + * workloads, conduct benchmarks with it both enabled and disabled, using realistic + * workloads. + * + *

innodbAdaptiveHashIndex corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_adaptive_hash_index] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_adaptive_hash_index). + * + * @param innodbAdaptiveHashIndex the value to set + * @return this builder + */ + public Builder innodbAdaptiveHashIndex(Boolean innodbAdaptiveHashIndex) { + this.innodbAdaptiveHashIndex = innodbAdaptiveHashIndex; + this.__explicitlySet__.add("innodbAdaptiveHashIndex"); + return this; + } + /** + * When enabled, undo tablespaces that exceed the threshold value defined by + * innodb_max_undo_log_size are marked for truncation. Only undo tablespaces can be + * truncated. Truncating undo logs that reside in the system tablespace is not supported. + * For truncation to occur, there must be at least two undo tablespaces. + * + *

innodbUndoLogTruncate corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_undo_log_truncate] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_undo_log_truncate). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbUndoLogTruncate") + private Boolean innodbUndoLogTruncate; + + /** + * When enabled, undo tablespaces that exceed the threshold value defined by + * innodb_max_undo_log_size are marked for truncation. Only undo tablespaces can be + * truncated. Truncating undo logs that reside in the system tablespace is not supported. + * For truncation to occur, there must be at least two undo tablespaces. + * + *

innodbUndoLogTruncate corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_undo_log_truncate] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_undo_log_truncate). + * + * @param innodbUndoLogTruncate the value to set + * @return this builder + */ + public Builder innodbUndoLogTruncate(Boolean innodbUndoLogTruncate) { + this.innodbUndoLogTruncate = innodbUndoLogTruncate; + this.__explicitlySet__.add("innodbUndoLogTruncate"); + return this; + } + /** + * The number of table definitions that can be stored in the table definition cache. If you + * use a large number of tables, you can create a large table definition cache to speed up + * opening of tables. The table definition cache takes less space and does not use file + * descriptors, unlike the normal table cache. + * + *

table_definition_cache corresponds to the MySQL Server Administration system variable + * [table_definition_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_definition_cache) + */ + @com.fasterxml.jackson.annotation.JsonProperty("tableDefinitionCache") + private Integer tableDefinitionCache; + + /** + * The number of table definitions that can be stored in the table definition cache. If you + * use a large number of tables, you can create a large table definition cache to speed up + * opening of tables. The table definition cache takes less space and does not use file + * descriptors, unlike the normal table cache. + * + *

table_definition_cache corresponds to the MySQL Server Administration system variable + * [table_definition_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_definition_cache) + * + * @param tableDefinitionCache the value to set + * @return this builder + */ + public Builder tableDefinitionCache(Integer tableDefinitionCache) { + this.tableDefinitionCache = tableDefinitionCache; + this.__explicitlySet__.add("tableDefinitionCache"); + return this; + } + /** + * The number of open tables for all threads. Increasing this value increases the number of + * file descriptors that mysqld requires. + * + *

table_open_cache corresponds to the MySQL Server Administration system variable + * [table_open_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_open_cache) + */ + @com.fasterxml.jackson.annotation.JsonProperty("tableOpenCache") + private Integer tableOpenCache; + + /** + * The number of open tables for all threads. Increasing this value increases the number of + * file descriptors that mysqld requires. + * + *

table_open_cache corresponds to the MySQL Server Administration system variable + * [table_open_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_open_cache) + * + * @param tableOpenCache the value to set + * @return this builder + */ + public Builder tableOpenCache(Integer tableOpenCache) { + this.tableOpenCache = tableOpenCache; + this.__explicitlySet__.add("tableOpenCache"); + return this; + } + /** + * The maximum amount of space to use for all relay logs. + * + *

relayLogSpaceLimit corresponds to the MySQL Replica Server Options variable + * [relay_log_space_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_relay_log_space_limit). + */ + @com.fasterxml.jackson.annotation.JsonProperty("relayLogSpaceLimit") + private Long relayLogSpaceLimit; + + /** + * The maximum amount of space to use for all relay logs. + * + *

relayLogSpaceLimit corresponds to the MySQL Replica Server Options variable + * [relay_log_space_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_relay_log_space_limit). + * + * @param relayLogSpaceLimit the value to set + * @return this builder + */ + public Builder relayLogSpaceLimit(Long relayLogSpaceLimit) { + this.relayLogSpaceLimit = relayLogSpaceLimit; + this.__explicitlySet__.add("relayLogSpaceLimit"); + return this; + } + /** + * The optimizer_switch system variable enables control over optimizer behavior. The value + * of this variable is a set of flags, each of which has a value of on or off to indicate + * whether the corresponding optimizer behavior is enabled or disabled. This variable has + * global and session values and can be changed at runtime. The global default can be set at + * server startup. + * + *

Setting hypergraph_optimizer=on for cloud builds below 9.0.0 will fail. + * + *

optimizerSwitch corresponds to the MySQL Server System variable [optimizer_switch] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch). + */ + @com.fasterxml.jackson.annotation.JsonProperty("optimizerSwitch") + private String optimizerSwitch; + + /** + * The optimizer_switch system variable enables control over optimizer behavior. The value + * of this variable is a set of flags, each of which has a value of on or off to indicate + * whether the corresponding optimizer behavior is enabled or disabled. This variable has + * global and session values and can be changed at runtime. The global default can be set at + * server startup. + * + *

Setting hypergraph_optimizer=on for cloud builds below 9.0.0 will fail. + * + *

optimizerSwitch corresponds to the MySQL Server System variable [optimizer_switch] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch). + * + * @param optimizerSwitch the value to set + * @return this builder + */ + public Builder optimizerSwitch(String optimizerSwitch) { + this.optimizerSwitch = optimizerSwitch; + this.__explicitlySet__.add("optimizerSwitch"); + return this; + } + /** + * From MySQL 8.0.26, use replica_type_conversions in place of slave_type_conversions, which + * is deprecated from that release. In releases before MySQL 8.0.26, use + * slave_type_conversions. + * + *

replica_type_conversions controls the type conversion mode in effect on the replica + * when using row-based replication. Its value is a comma-delimited set of zero or more + * elements from the list: ALL_LOSSY, ALL_NON_LOSSY, ALL_SIGNED, ALL_UNSIGNED. Set this + * variable to an empty string to disallow type conversions between the source and the + * replica. Setting this variable takes effect for all replication channels immediately, + * including running channels. + * + *

replica_type_conversions corresponds to the MySQL Replica Server Options variable + * [replica_type_conversions] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_type_conversions). + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicaTypeConversions") + private String replicaTypeConversions; + + /** + * From MySQL 8.0.26, use replica_type_conversions in place of slave_type_conversions, which + * is deprecated from that release. In releases before MySQL 8.0.26, use + * slave_type_conversions. + * + *

replica_type_conversions controls the type conversion mode in effect on the replica + * when using row-based replication. Its value is a comma-delimited set of zero or more + * elements from the list: ALL_LOSSY, ALL_NON_LOSSY, ALL_SIGNED, ALL_UNSIGNED. Set this + * variable to an empty string to disallow type conversions between the source and the + * replica. Setting this variable takes effect for all replication channels immediately, + * including running channels. + * + *

replica_type_conversions corresponds to the MySQL Replica Server Options variable + * [replica_type_conversions] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_type_conversions). + * + * @param replicaTypeConversions the value to set + * @return this builder + */ + public Builder replicaTypeConversions(String replicaTypeConversions) { + this.replicaTypeConversions = replicaTypeConversions; + this.__explicitlySet__.add("replicaTypeConversions"); + return this; + } + /** + * Beginning with MySQL 8.0.26, slave_parallel_workers is deprecated, and you should use + * replica_parallel_workers instead. (Prior to MySQL 8.0.26, you must use + * slave_parallel_workers to set the number of applier threads.) + * + *

replicaParallelWorkers corresponds to the MySQL Replica Server Options variable + * [replica_parallel_workers] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_parallel_workers). + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicaParallelWorkers") + private Integer replicaParallelWorkers; + + /** + * Beginning with MySQL 8.0.26, slave_parallel_workers is deprecated, and you should use + * replica_parallel_workers instead. (Prior to MySQL 8.0.26, you must use + * slave_parallel_workers to set the number of applier threads.) + * + *

replicaParallelWorkers corresponds to the MySQL Replica Server Options variable + * [replica_parallel_workers] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_parallel_workers). + * + * @param replicaParallelWorkers the value to set + * @return this builder + */ + public Builder replicaParallelWorkers(Integer replicaParallelWorkers) { + this.replicaParallelWorkers = replicaParallelWorkers; + this.__explicitlySet__.add("replicaParallelWorkers"); + return this; + } + /** + * Whether to resolve host names when checking client connections. If this variable is OFF, + * mysqld resolves host names when checking client connections. If it is ON, mysqld uses + * only IP numbers; in this case, all Host column values in the grant tables must be IP + * addresses. See Section 7.1.12.3, \u201CDNS Lookups and the Host Cache\u201D. + * + *

skipNameResolve corresponds to the MySQL Server System variable [skip_name_resolve] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_skip_name_resolve). + */ + @com.fasterxml.jackson.annotation.JsonProperty("skipNameResolve") + private Boolean skipNameResolve; + + /** + * Whether to resolve host names when checking client connections. If this variable is OFF, + * mysqld resolves host names when checking client connections. If it is ON, mysqld uses + * only IP numbers; in this case, all Host column values in the grant tables must be IP + * addresses. See Section 7.1.12.3, \u201CDNS Lookups and the Host Cache\u201D. + * + *

skipNameResolve corresponds to the MySQL Server System variable [skip_name_resolve] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_skip_name_resolve). + * + * @param skipNameResolve the value to set + * @return this builder + */ + public Builder skipNameResolve(Boolean skipNameResolve) { + this.skipNameResolve = skipNameResolve; + this.__explicitlySet__.add("skipNameResolve"); + return this; + } + /** + * The maximum number of simultaneous connections permitted to any given MySQL user account. + * A value of 0 (the default) means \u201Cno limit.\u201D This variable has a global value + * that can be set at server startup or runtime. It also has a read-only session value that + * indicates the effective simultaneous-connection limit that applies to the account + * associated with the current session. + * + *

maxUserConnections corresponds to the MySQL Server System variable + * [max_user_connections] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_user_connections). + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxUserConnections") + private Long maxUserConnections; + + /** + * The maximum number of simultaneous connections permitted to any given MySQL user account. + * A value of 0 (the default) means \u201Cno limit.\u201D This variable has a global value + * that can be set at server startup or runtime. It also has a read-only session value that + * indicates the effective simultaneous-connection limit that applies to the account + * associated with the current session. + * + *

maxUserConnections corresponds to the MySQL Server System variable + * [max_user_connections] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_user_connections). + * + * @param maxUserConnections the value to set + * @return this builder + */ + public Builder maxUserConnections(Long maxUserConnections) { + this.maxUserConnections = maxUserConnections; + this.__explicitlySet__.add("maxUserConnections"); + return this; + } + /** + * The minimum size of the buffer that is used for plain index scans, range index scans, and + * joins that do not use indexes and thus perform full table scans. In MySQL 8.0.18 and + * later, this variable also controls the amount of memory used for hash joins. Normally, + * the best way to get fast joins is to add indexes. Increase the value of join_buffer_size + * to get a faster full join when adding indexes is not possible. One join buffer is + * allocated for each full join between two tables. For a complex join between several + * tables for which indexes are not used, multiple join buffers might be necessary. + * + *

joinBufferSize corresponds to the MySQL Server System variable [join_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_join_buffer_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("joinBufferSize") + private Long joinBufferSize; + + /** + * The minimum size of the buffer that is used for plain index scans, range index scans, and + * joins that do not use indexes and thus perform full table scans. In MySQL 8.0.18 and + * later, this variable also controls the amount of memory used for hash joins. Normally, + * the best way to get fast joins is to add indexes. Increase the value of join_buffer_size + * to get a faster full join when adding indexes is not possible. One join buffer is + * allocated for each full join between two tables. For a complex join between several + * tables for which indexes are not used, multiple join buffers might be necessary. + * + *

joinBufferSize corresponds to the MySQL Server System variable [join_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_join_buffer_size). + * + * @param joinBufferSize the value to set + * @return this builder + */ + public Builder joinBufferSize(Long joinBufferSize) { + this.joinBufferSize = joinBufferSize; + this.__explicitlySet__.add("joinBufferSize"); + return this; + } + /** + * Limit the assumed maximum number of seeks when looking up rows based on a key. The MySQL + * optimizer assumes that no more than this number of key seeks are required when searching + * for matching rows in a table by scanning an index, regardless of the actual cardinality + * of the index (see Section 15.7.7.22, \u201CSHOW INDEX Statement\u201D). By setting this + * to a low value (say, 100), you can force MySQL to prefer indexes instead of table scans. + * + *

maxSeeksForKey corresponds to the MySQL Server System variable [max_seeks_for_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_seeks_for_key). + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxSeeksForKey") + private Long maxSeeksForKey; + + /** + * Limit the assumed maximum number of seeks when looking up rows based on a key. The MySQL + * optimizer assumes that no more than this number of key seeks are required when searching + * for matching rows in a table by scanning an index, regardless of the actual cardinality + * of the index (see Section 15.7.7.22, \u201CSHOW INDEX Statement\u201D). By setting this + * to a low value (say, 100), you can force MySQL to prefer indexes instead of table scans. + * + *

maxSeeksForKey corresponds to the MySQL Server System variable [max_seeks_for_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_seeks_for_key). + * + * @param maxSeeksForKey the value to set + * @return this builder + */ + public Builder maxSeeksForKey(Long maxSeeksForKey) { + this.maxSeeksForKey = maxSeeksForKey; + this.__explicitlySet__.add("maxSeeksForKey"); + return this; + } + /** + * The limit on memory consumption for the range optimizer. A value of 0 means \u201Cno + * limit.\u201D If an execution plan considered by the optimizer uses the range access + * method but the optimizer estimates that the amount of memory needed for this method would + * exceed the limit, it abandons the plan and considers other plans. + * + *

rangeOptimizerMaxMemSize corresponds to the MySQL Server System variable + * [range_optimizer_max_mem_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_range_optimizer_max_mem_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("rangeOptimizerMaxMemSize") + private Long rangeOptimizerMaxMemSize; + + /** + * The limit on memory consumption for the range optimizer. A value of 0 means \u201Cno + * limit.\u201D If an execution plan considered by the optimizer uses the range access + * method but the optimizer estimates that the amount of memory needed for this method would + * exceed the limit, it abandons the plan and considers other plans. + * + *

rangeOptimizerMaxMemSize corresponds to the MySQL Server System variable + * [range_optimizer_max_mem_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_range_optimizer_max_mem_size). + * + * @param rangeOptimizerMaxMemSize the value to set + * @return this builder + */ + public Builder rangeOptimizerMaxMemSize(Long rangeOptimizerMaxMemSize) { + this.rangeOptimizerMaxMemSize = rangeOptimizerMaxMemSize; + this.__explicitlySet__.add("rangeOptimizerMaxMemSize"); + return this; + } + /** + * auto_increment_increment and auto_increment_offset are intended for use with circular + * (source-to-source) replication, and can be used to control the operation of + * AUTO_INCREMENT columns. Both variables have global and session values, and each can + * assume an integer value between 1 and 65,535 inclusive. + * + *

autoIncrementIncrement corresponds to the MySQL Replication Source Options variable + * [auto_increment_increment] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_increment). + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoIncrementIncrement") + private Integer autoIncrementIncrement; + + /** + * auto_increment_increment and auto_increment_offset are intended for use with circular + * (source-to-source) replication, and can be used to control the operation of + * AUTO_INCREMENT columns. Both variables have global and session values, and each can + * assume an integer value between 1 and 65,535 inclusive. + * + *

autoIncrementIncrement corresponds to the MySQL Replication Source Options variable + * [auto_increment_increment] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_increment). + * + * @param autoIncrementIncrement the value to set + * @return this builder + */ + public Builder autoIncrementIncrement(Integer autoIncrementIncrement) { + this.autoIncrementIncrement = autoIncrementIncrement; + this.__explicitlySet__.add("autoIncrementIncrement"); + return this; + } + /** + * This variable has a default value of 1. If it is left with its default value, and Group + * Replication is started on the server in multi-primary mode, it is changed to the server + * ID. + * + *

autoIncrementOffset corresponds to the MySQL Replication Source Options variable + * [auto_increment_offset] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_offset). + */ + @com.fasterxml.jackson.annotation.JsonProperty("autoIncrementOffset") + private Integer autoIncrementOffset; + + /** + * This variable has a default value of 1. If it is left with its default value, and Group + * Replication is started on the server in multi-primary mode, it is changed to the server + * ID. + * + *

autoIncrementOffset corresponds to the MySQL Replication Source Options variable + * [auto_increment_offset] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_offset). + * + * @param autoIncrementOffset the value to set + * @return this builder + */ + public Builder autoIncrementOffset(Integer autoIncrementOffset) { + this.autoIncrementOffset = autoIncrementOffset; + this.__explicitlySet__.add("autoIncrementOffset"); + return this; + } + /** + * The lock mode to use for generating auto-increment values. Permissible values are 0, 1, + * or 2, for traditional, consecutive, or interleaved, respectively. + * + *

innodbAutoincLockMode corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_autoinc_lock_mode] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_autoinc_lock_mode). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbAutoincLockMode") + private Integer innodbAutoincLockMode; + + /** + * The lock mode to use for generating auto-increment values. Permissible values are 0, 1, + * or 2, for traditional, consecutive, or interleaved, respectively. + * + *

innodbAutoincLockMode corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_autoinc_lock_mode] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_autoinc_lock_mode). + * + * @param innodbAutoincLockMode the value to set + * @return this builder + */ + public Builder innodbAutoincLockMode(Integer innodbAutoincLockMode) { + this.innodbAutoincLockMode = innodbAutoincLockMode; + this.__explicitlySet__.add("innodbAutoincLockMode"); + return this; + } + /** + * InnoDB rolls back only the last statement on a transaction timeout by default. If + * --innodb-rollback-on-timeout is specified, a transaction timeout causes InnoDB to abort + * and roll back the entire transaction. + * + *

innodbRollbackOnTimeout corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_rollback_on_timeout] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_rollback_on_timeout). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbRollbackOnTimeout") + private Boolean innodbRollbackOnTimeout; + + /** + * InnoDB rolls back only the last statement on a transaction timeout by default. If + * --innodb-rollback-on-timeout is specified, a transaction timeout causes InnoDB to abort + * and roll back the entire transaction. + * + *

innodbRollbackOnTimeout corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_rollback_on_timeout] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_rollback_on_timeout). + * + * @param innodbRollbackOnTimeout the value to set + * @return this builder + */ + public Builder innodbRollbackOnTimeout(Boolean innodbRollbackOnTimeout) { + this.innodbRollbackOnTimeout = innodbRollbackOnTimeout; + this.__explicitlySet__.add("innodbRollbackOnTimeout"); + return this; + } + /** + * Specifies an upper limit in bytes on the size of the temporary log files used during + * online DDL operations for InnoDB tables. There is one such log file for each index being + * created or table being altered. This log file stores data inserted, updated, or deleted + * in the table during the DDL operation. + * + *

innodbOnlineAlterLogMaxSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_online_alter_log_max_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_online_alter_log_max_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbOnlineAlterLogMaxSize") + private Long innodbOnlineAlterLogMaxSize; + + /** + * Specifies an upper limit in bytes on the size of the temporary log files used during + * online DDL operations for InnoDB tables. There is one such log file for each index being + * created or table being altered. This log file stores data inserted, updated, or deleted + * in the table during the DDL operation. + * + *

innodbOnlineAlterLogMaxSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_online_alter_log_max_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_online_alter_log_max_size). + * + * @param innodbOnlineAlterLogMaxSize the value to set + * @return this builder + */ + public Builder innodbOnlineAlterLogMaxSize(Long innodbOnlineAlterLogMaxSize) { + this.innodbOnlineAlterLogMaxSize = innodbOnlineAlterLogMaxSize; + this.__explicitlySet__.add("innodbOnlineAlterLogMaxSize"); + return this; + } + /** + * This variable defines: + * + *

The sort buffer size for online DDL operations that create or rebuild secondary + * indexes. However, as of MySQL 8.0.27, this responsibility is subsumed by the + * innodb_ddl_buffer_size variable. + * + *

The amount by which the temporary log file is extended when recording concurrent DML + * during an online DDL operation, and the size of the temporary log file read buffer and + * write buffer. + * + *

innodbSortBufferSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_sort_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbSortBufferSize") + private Integer innodbSortBufferSize; + + /** + * This variable defines: + * + *

The sort buffer size for online DDL operations that create or rebuild secondary + * indexes. However, as of MySQL 8.0.27, this responsibility is subsumed by the + * innodb_ddl_buffer_size variable. + * + *

The amount by which the temporary log file is extended when recording concurrent DML + * during an online DDL operation, and the size of the temporary log file read buffer and + * write buffer. + * + *

innodbSortBufferSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_sort_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size). + * + * @param innodbSortBufferSize the value to set + * @return this builder + */ + public Builder innodbSortBufferSize(Integer innodbSortBufferSize) { + this.innodbSortBufferSize = innodbSortBufferSize; + this.__explicitlySet__.add("innodbSortBufferSize"); + return this; + } + /** + * Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. When + * innodb_numa_interleave is enabled, the NUMA memory policy is set to MPOL_INTERLEAVE for + * the mysqld process. After the InnoDB buffer pool is allocated, the NUMA memory policy is + * set back to MPOL_DEFAULT. For the innodb_numa_interleave option to be available, MySQL + * must be compiled on a NUMA-enabled Linux system. + * + *

innodbNumaInterleave corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_numa_interleave] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_numa_interleave). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbNumaInterleave") + private Boolean innodbNumaInterleave; + + /** + * Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. When + * innodb_numa_interleave is enabled, the NUMA memory policy is set to MPOL_INTERLEAVE for + * the mysqld process. After the InnoDB buffer pool is allocated, the NUMA memory policy is + * set back to MPOL_DEFAULT. For the innodb_numa_interleave option to be available, MySQL + * must be compiled on a NUMA-enabled Linux system. + * + *

innodbNumaInterleave corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_numa_interleave] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_numa_interleave). + * + * @param innodbNumaInterleave the value to set + * @return this builder + */ + public Builder innodbNumaInterleave(Boolean innodbNumaInterleave) { + this.innodbNumaInterleave = innodbNumaInterleave; + this.__explicitlySet__.add("innodbNumaInterleave"); + return this; + } + /** + * The number of thread groups in the thread pool. This is the most important parameter + * controlling thread pool performance. It affects how many statements can execute + * simultaneously. If a value outside the range of permissible values is specified, the + * thread pool plugin does not load and the server writes a message to the error log. + * + *

threadPoolSize corresponds to the MySQL Server System variable [thread_pool_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolSize") + private Integer threadPoolSize; + + /** + * The number of thread groups in the thread pool. This is the most important parameter + * controlling thread pool performance. It affects how many statements can execute + * simultaneously. If a value outside the range of permissible values is specified, the + * thread pool plugin does not load and the server writes a message to the error log. + * + *

threadPoolSize corresponds to the MySQL Server System variable [thread_pool_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_size). + * + * @param threadPoolSize the value to set + * @return this builder + */ + public Builder threadPoolSize(Integer threadPoolSize) { + this.threadPoolSize = threadPoolSize; + this.__explicitlySet__.add("threadPoolSize"); + return this; + } + /** + * If a query takes longer than this many seconds, the server increments the Slow_queries + * status variable. If the slow query log is enabled, the query is logged to the slow query + * log file. This value is measured in real time, not CPU time, so a query that is under the + * threshold on a lightly loaded system might be above the threshold on a heavily loaded + * one. + * + *

longQueryTime corresponds to the MySQL Server System variable [long_query_time] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time). + */ + @com.fasterxml.jackson.annotation.JsonProperty("longQueryTime") + private Integer longQueryTime; + + /** + * If a query takes longer than this many seconds, the server increments the Slow_queries + * status variable. If the slow query log is enabled, the query is logged to the slow query + * log file. This value is measured in real time, not CPU time, so a query that is under the + * threshold on a lightly loaded system might be above the threshold on a heavily loaded + * one. + * + *

longQueryTime corresponds to the MySQL Server System variable [long_query_time] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time). + * + * @param longQueryTime the value to set + * @return this builder + */ + public Builder longQueryTime(Integer longQueryTime) { + this.longQueryTime = longQueryTime; + this.__explicitlySet__.add("longQueryTime"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConfigurationVariables build() { + ConfigurationVariables model = + new ConfigurationVariables( + this.completionType, + this.bigTables, + this.characterSetServer, + this.collationServer, + this.connectionMemoryChunkSize, + this.connectionMemoryLimit, + this.defaultAuthenticationPlugin, + this.globalConnectionMemoryLimit, + this.globalConnectionMemoryTracking, + this.transactionIsolation, + this.innodbFtServerStopwordTable, + this.mandatoryRoles, + this.autocommit, + this.foreignKeyChecks, + this.groupReplicationConsistency, + this.groupConcatMaxLen, + this.innodbFtEnableStopword, + this.innodbLogWriterThreads, + this.localInfile, + this.mysqlFirewallMode, + this.mysqlxEnableHelloNotice, + this.sqlRequirePrimaryKey, + this.sqlWarnings, + this.binlogExpireLogsSeconds, + this.binlogRowMetadata, + this.binlogRowValueOptions, + this.binlogTransactionCompression, + this.innodbBufferPoolSize, + this.innodbFtResultCacheLimit, + this.maxBinlogCacheSize, + this.maxConnectErrors, + this.maxHeapTableSize, + this.maxConnections, + this.maxPreparedStmtCount, + this.connectTimeout, + this.cteMaxRecursionDepth, + this.generatedRandomPasswordLength, + this.informationSchemaStatsExpiry, + this.innodbBufferPoolDumpPct, + this.innodbBufferPoolInstances, + this.innodbDdlBufferSize, + this.innodbDdlThreads, + this.innodbFtMaxTokenSize, + this.innodbFtMinTokenSize, + this.innodbFtNumWordOptimize, + this.innodbLockWaitTimeout, + this.innodbMaxPurgeLag, + this.innodbMaxPurgeLagDelay, + this.interactiveTimeout, + this.innodbStatsPersistentSamplePages, + this.innodbStatsTransientSamplePages, + this.innodbStrictMode, + this.maxAllowedPacket, + this.maxExecutionTime, + this.mysqlxConnectTimeout, + this.mysqlxDocumentIdUniquePrefix, + this.mysqlxIdleWorkerThreadTimeout, + this.mysqlxInteractiveTimeout, + this.mysqlxMaxAllowedPacket, + this.mysqlxMinWorkerThreads, + this.mysqlxReadTimeout, + this.mysqlxWaitTimeout, + this.mysqlxWriteTimeout, + this.netReadTimeout, + this.netWriteTimeout, + this.parserMaxMemSize, + this.queryAllocBlockSize, + this.queryPreallocSize, + this.regexpTimeLimit, + this.sqlMode, + this.tmpTableSize, + this.mysqlxDeflateDefaultCompressionLevel, + this.mysqlxDeflateMaxClientCompressionLevel, + this.mysqlxLz4MaxClientCompressionLevel, + this.mysqlxLz4DefaultCompressionLevel, + this.mysqlxZstdMaxClientCompressionLevel, + this.mysqlxZstdDefaultCompressionLevel, + this.mysqlZstdDefaultCompressionLevel, + this.sortBufferSize, + this.waitTimeout, + this.threadPoolDedicatedListeners, + this.threadPoolMaxTransactionsLimit, + this.timeZone, + this.blockEncryptionMode, + this.binlogGroupCommitSyncDelay, + this.binlogGroupCommitSyncNoDelayCount, + this.replicaNetTimeout, + this.requireSecureTransport, + this.innodbRedoLogCapacity, + this.threadPoolTransactionDelay, + this.threadPoolQueryThreadsPerGroup, + this.explainFormat, + this.explicitDefaultsForTimestamp, + this.sqlGenerateInvisiblePrimaryKey, + this.temptableMaxRam, + this.innodbChangeBuffering, + this.innodbAdaptiveHashIndex, + this.innodbUndoLogTruncate, + this.tableDefinitionCache, + this.tableOpenCache, + this.relayLogSpaceLimit, + this.optimizerSwitch, + this.replicaTypeConversions, + this.replicaParallelWorkers, + this.skipNameResolve, + this.maxUserConnections, + this.joinBufferSize, + this.maxSeeksForKey, + this.rangeOptimizerMaxMemSize, + this.autoIncrementIncrement, + this.autoIncrementOffset, + this.innodbAutoincLockMode, + this.innodbRollbackOnTimeout, + this.innodbOnlineAlterLogMaxSize, + this.innodbSortBufferSize, + this.innodbNumaInterleave, + this.threadPoolSize, + this.longQueryTime); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConfigurationVariables model) { + if (model.wasPropertyExplicitlySet("completionType")) { + this.completionType(model.getCompletionType()); + } + if (model.wasPropertyExplicitlySet("bigTables")) { + this.bigTables(model.getBigTables()); + } + if (model.wasPropertyExplicitlySet("characterSetServer")) { + this.characterSetServer(model.getCharacterSetServer()); + } + if (model.wasPropertyExplicitlySet("collationServer")) { + this.collationServer(model.getCollationServer()); + } + if (model.wasPropertyExplicitlySet("connectionMemoryChunkSize")) { + this.connectionMemoryChunkSize(model.getConnectionMemoryChunkSize()); + } + if (model.wasPropertyExplicitlySet("connectionMemoryLimit")) { + this.connectionMemoryLimit(model.getConnectionMemoryLimit()); + } + if (model.wasPropertyExplicitlySet("defaultAuthenticationPlugin")) { + this.defaultAuthenticationPlugin(model.getDefaultAuthenticationPlugin()); + } + if (model.wasPropertyExplicitlySet("globalConnectionMemoryLimit")) { + this.globalConnectionMemoryLimit(model.getGlobalConnectionMemoryLimit()); + } + if (model.wasPropertyExplicitlySet("globalConnectionMemoryTracking")) { + this.globalConnectionMemoryTracking(model.getGlobalConnectionMemoryTracking()); + } + if (model.wasPropertyExplicitlySet("transactionIsolation")) { + this.transactionIsolation(model.getTransactionIsolation()); + } + if (model.wasPropertyExplicitlySet("innodbFtServerStopwordTable")) { + this.innodbFtServerStopwordTable(model.getInnodbFtServerStopwordTable()); + } + if (model.wasPropertyExplicitlySet("mandatoryRoles")) { + this.mandatoryRoles(model.getMandatoryRoles()); + } + if (model.wasPropertyExplicitlySet("autocommit")) { + this.autocommit(model.getAutocommit()); + } + if (model.wasPropertyExplicitlySet("foreignKeyChecks")) { + this.foreignKeyChecks(model.getForeignKeyChecks()); + } + if (model.wasPropertyExplicitlySet("groupReplicationConsistency")) { + this.groupReplicationConsistency(model.getGroupReplicationConsistency()); + } + if (model.wasPropertyExplicitlySet("groupConcatMaxLen")) { + this.groupConcatMaxLen(model.getGroupConcatMaxLen()); + } + if (model.wasPropertyExplicitlySet("innodbFtEnableStopword")) { + this.innodbFtEnableStopword(model.getInnodbFtEnableStopword()); + } + if (model.wasPropertyExplicitlySet("innodbLogWriterThreads")) { + this.innodbLogWriterThreads(model.getInnodbLogWriterThreads()); + } + if (model.wasPropertyExplicitlySet("localInfile")) { + this.localInfile(model.getLocalInfile()); + } + if (model.wasPropertyExplicitlySet("mysqlFirewallMode")) { + this.mysqlFirewallMode(model.getMysqlFirewallMode()); + } + if (model.wasPropertyExplicitlySet("mysqlxEnableHelloNotice")) { + this.mysqlxEnableHelloNotice(model.getMysqlxEnableHelloNotice()); + } + if (model.wasPropertyExplicitlySet("sqlRequirePrimaryKey")) { + this.sqlRequirePrimaryKey(model.getSqlRequirePrimaryKey()); + } + if (model.wasPropertyExplicitlySet("sqlWarnings")) { + this.sqlWarnings(model.getSqlWarnings()); + } + if (model.wasPropertyExplicitlySet("binlogExpireLogsSeconds")) { + this.binlogExpireLogsSeconds(model.getBinlogExpireLogsSeconds()); + } + if (model.wasPropertyExplicitlySet("binlogRowMetadata")) { + this.binlogRowMetadata(model.getBinlogRowMetadata()); + } + if (model.wasPropertyExplicitlySet("binlogRowValueOptions")) { + this.binlogRowValueOptions(model.getBinlogRowValueOptions()); + } + if (model.wasPropertyExplicitlySet("binlogTransactionCompression")) { + this.binlogTransactionCompression(model.getBinlogTransactionCompression()); + } + if (model.wasPropertyExplicitlySet("innodbBufferPoolSize")) { + this.innodbBufferPoolSize(model.getInnodbBufferPoolSize()); + } + if (model.wasPropertyExplicitlySet("innodbFtResultCacheLimit")) { + this.innodbFtResultCacheLimit(model.getInnodbFtResultCacheLimit()); + } + if (model.wasPropertyExplicitlySet("maxBinlogCacheSize")) { + this.maxBinlogCacheSize(model.getMaxBinlogCacheSize()); + } + if (model.wasPropertyExplicitlySet("maxConnectErrors")) { + this.maxConnectErrors(model.getMaxConnectErrors()); + } + if (model.wasPropertyExplicitlySet("maxHeapTableSize")) { + this.maxHeapTableSize(model.getMaxHeapTableSize()); + } + if (model.wasPropertyExplicitlySet("maxConnections")) { + this.maxConnections(model.getMaxConnections()); } if (model.wasPropertyExplicitlySet("maxPreparedStmtCount")) { this.maxPreparedStmtCount(model.getMaxPreparedStmtCount()); @@ -2220,1937 +3603,3703 @@ public Builder copy(ConfigurationVariables model) { if (model.wasPropertyExplicitlySet("interactiveTimeout")) { this.interactiveTimeout(model.getInteractiveTimeout()); } - if (model.wasPropertyExplicitlySet("innodbStatsPersistentSamplePages")) { - this.innodbStatsPersistentSamplePages(model.getInnodbStatsPersistentSamplePages()); + if (model.wasPropertyExplicitlySet("innodbStatsPersistentSamplePages")) { + this.innodbStatsPersistentSamplePages(model.getInnodbStatsPersistentSamplePages()); + } + if (model.wasPropertyExplicitlySet("innodbStatsTransientSamplePages")) { + this.innodbStatsTransientSamplePages(model.getInnodbStatsTransientSamplePages()); + } + if (model.wasPropertyExplicitlySet("innodbStrictMode")) { + this.innodbStrictMode(model.getInnodbStrictMode()); + } + if (model.wasPropertyExplicitlySet("maxAllowedPacket")) { + this.maxAllowedPacket(model.getMaxAllowedPacket()); + } + if (model.wasPropertyExplicitlySet("maxExecutionTime")) { + this.maxExecutionTime(model.getMaxExecutionTime()); + } + if (model.wasPropertyExplicitlySet("mysqlxConnectTimeout")) { + this.mysqlxConnectTimeout(model.getMysqlxConnectTimeout()); + } + if (model.wasPropertyExplicitlySet("mysqlxDocumentIdUniquePrefix")) { + this.mysqlxDocumentIdUniquePrefix(model.getMysqlxDocumentIdUniquePrefix()); + } + if (model.wasPropertyExplicitlySet("mysqlxIdleWorkerThreadTimeout")) { + this.mysqlxIdleWorkerThreadTimeout(model.getMysqlxIdleWorkerThreadTimeout()); + } + if (model.wasPropertyExplicitlySet("mysqlxInteractiveTimeout")) { + this.mysqlxInteractiveTimeout(model.getMysqlxInteractiveTimeout()); + } + if (model.wasPropertyExplicitlySet("mysqlxMaxAllowedPacket")) { + this.mysqlxMaxAllowedPacket(model.getMysqlxMaxAllowedPacket()); + } + if (model.wasPropertyExplicitlySet("mysqlxMinWorkerThreads")) { + this.mysqlxMinWorkerThreads(model.getMysqlxMinWorkerThreads()); + } + if (model.wasPropertyExplicitlySet("mysqlxReadTimeout")) { + this.mysqlxReadTimeout(model.getMysqlxReadTimeout()); + } + if (model.wasPropertyExplicitlySet("mysqlxWaitTimeout")) { + this.mysqlxWaitTimeout(model.getMysqlxWaitTimeout()); + } + if (model.wasPropertyExplicitlySet("mysqlxWriteTimeout")) { + this.mysqlxWriteTimeout(model.getMysqlxWriteTimeout()); + } + if (model.wasPropertyExplicitlySet("netReadTimeout")) { + this.netReadTimeout(model.getNetReadTimeout()); + } + if (model.wasPropertyExplicitlySet("netWriteTimeout")) { + this.netWriteTimeout(model.getNetWriteTimeout()); + } + if (model.wasPropertyExplicitlySet("parserMaxMemSize")) { + this.parserMaxMemSize(model.getParserMaxMemSize()); + } + if (model.wasPropertyExplicitlySet("queryAllocBlockSize")) { + this.queryAllocBlockSize(model.getQueryAllocBlockSize()); + } + if (model.wasPropertyExplicitlySet("queryPreallocSize")) { + this.queryPreallocSize(model.getQueryPreallocSize()); + } + if (model.wasPropertyExplicitlySet("regexpTimeLimit")) { + this.regexpTimeLimit(model.getRegexpTimeLimit()); + } + if (model.wasPropertyExplicitlySet("sqlMode")) { + this.sqlMode(model.getSqlMode()); + } + if (model.wasPropertyExplicitlySet("tmpTableSize")) { + this.tmpTableSize(model.getTmpTableSize()); + } + if (model.wasPropertyExplicitlySet("mysqlxDeflateDefaultCompressionLevel")) { + this.mysqlxDeflateDefaultCompressionLevel( + model.getMysqlxDeflateDefaultCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlxDeflateMaxClientCompressionLevel")) { + this.mysqlxDeflateMaxClientCompressionLevel( + model.getMysqlxDeflateMaxClientCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlxLz4MaxClientCompressionLevel")) { + this.mysqlxLz4MaxClientCompressionLevel( + model.getMysqlxLz4MaxClientCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlxLz4DefaultCompressionLevel")) { + this.mysqlxLz4DefaultCompressionLevel(model.getMysqlxLz4DefaultCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlxZstdMaxClientCompressionLevel")) { + this.mysqlxZstdMaxClientCompressionLevel( + model.getMysqlxZstdMaxClientCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlxZstdDefaultCompressionLevel")) { + this.mysqlxZstdDefaultCompressionLevel( + model.getMysqlxZstdDefaultCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("mysqlZstdDefaultCompressionLevel")) { + this.mysqlZstdDefaultCompressionLevel(model.getMysqlZstdDefaultCompressionLevel()); + } + if (model.wasPropertyExplicitlySet("sortBufferSize")) { + this.sortBufferSize(model.getSortBufferSize()); + } + if (model.wasPropertyExplicitlySet("waitTimeout")) { + this.waitTimeout(model.getWaitTimeout()); + } + if (model.wasPropertyExplicitlySet("threadPoolDedicatedListeners")) { + this.threadPoolDedicatedListeners(model.getThreadPoolDedicatedListeners()); + } + if (model.wasPropertyExplicitlySet("threadPoolMaxTransactionsLimit")) { + this.threadPoolMaxTransactionsLimit(model.getThreadPoolMaxTransactionsLimit()); + } + if (model.wasPropertyExplicitlySet("timeZone")) { + this.timeZone(model.getTimeZone()); + } + if (model.wasPropertyExplicitlySet("blockEncryptionMode")) { + this.blockEncryptionMode(model.getBlockEncryptionMode()); + } + if (model.wasPropertyExplicitlySet("binlogGroupCommitSyncDelay")) { + this.binlogGroupCommitSyncDelay(model.getBinlogGroupCommitSyncDelay()); + } + if (model.wasPropertyExplicitlySet("binlogGroupCommitSyncNoDelayCount")) { + this.binlogGroupCommitSyncNoDelayCount( + model.getBinlogGroupCommitSyncNoDelayCount()); + } + if (model.wasPropertyExplicitlySet("replicaNetTimeout")) { + this.replicaNetTimeout(model.getReplicaNetTimeout()); + } + if (model.wasPropertyExplicitlySet("requireSecureTransport")) { + this.requireSecureTransport(model.getRequireSecureTransport()); + } + if (model.wasPropertyExplicitlySet("innodbRedoLogCapacity")) { + this.innodbRedoLogCapacity(model.getInnodbRedoLogCapacity()); + } + if (model.wasPropertyExplicitlySet("threadPoolTransactionDelay")) { + this.threadPoolTransactionDelay(model.getThreadPoolTransactionDelay()); + } + if (model.wasPropertyExplicitlySet("threadPoolQueryThreadsPerGroup")) { + this.threadPoolQueryThreadsPerGroup(model.getThreadPoolQueryThreadsPerGroup()); + } + if (model.wasPropertyExplicitlySet("explainFormat")) { + this.explainFormat(model.getExplainFormat()); + } + if (model.wasPropertyExplicitlySet("explicitDefaultsForTimestamp")) { + this.explicitDefaultsForTimestamp(model.getExplicitDefaultsForTimestamp()); + } + if (model.wasPropertyExplicitlySet("sqlGenerateInvisiblePrimaryKey")) { + this.sqlGenerateInvisiblePrimaryKey(model.getSqlGenerateInvisiblePrimaryKey()); + } + if (model.wasPropertyExplicitlySet("temptableMaxRam")) { + this.temptableMaxRam(model.getTemptableMaxRam()); + } + if (model.wasPropertyExplicitlySet("innodbChangeBuffering")) { + this.innodbChangeBuffering(model.getInnodbChangeBuffering()); + } + if (model.wasPropertyExplicitlySet("innodbAdaptiveHashIndex")) { + this.innodbAdaptiveHashIndex(model.getInnodbAdaptiveHashIndex()); + } + if (model.wasPropertyExplicitlySet("innodbUndoLogTruncate")) { + this.innodbUndoLogTruncate(model.getInnodbUndoLogTruncate()); + } + if (model.wasPropertyExplicitlySet("tableDefinitionCache")) { + this.tableDefinitionCache(model.getTableDefinitionCache()); + } + if (model.wasPropertyExplicitlySet("tableOpenCache")) { + this.tableOpenCache(model.getTableOpenCache()); } - if (model.wasPropertyExplicitlySet("innodbStatsTransientSamplePages")) { - this.innodbStatsTransientSamplePages(model.getInnodbStatsTransientSamplePages()); + if (model.wasPropertyExplicitlySet("relayLogSpaceLimit")) { + this.relayLogSpaceLimit(model.getRelayLogSpaceLimit()); } - if (model.wasPropertyExplicitlySet("maxAllowedPacket")) { - this.maxAllowedPacket(model.getMaxAllowedPacket()); + if (model.wasPropertyExplicitlySet("optimizerSwitch")) { + this.optimizerSwitch(model.getOptimizerSwitch()); } - if (model.wasPropertyExplicitlySet("maxExecutionTime")) { - this.maxExecutionTime(model.getMaxExecutionTime()); + if (model.wasPropertyExplicitlySet("replicaTypeConversions")) { + this.replicaTypeConversions(model.getReplicaTypeConversions()); } - if (model.wasPropertyExplicitlySet("mysqlxConnectTimeout")) { - this.mysqlxConnectTimeout(model.getMysqlxConnectTimeout()); + if (model.wasPropertyExplicitlySet("replicaParallelWorkers")) { + this.replicaParallelWorkers(model.getReplicaParallelWorkers()); } - if (model.wasPropertyExplicitlySet("mysqlxDocumentIdUniquePrefix")) { - this.mysqlxDocumentIdUniquePrefix(model.getMysqlxDocumentIdUniquePrefix()); + if (model.wasPropertyExplicitlySet("skipNameResolve")) { + this.skipNameResolve(model.getSkipNameResolve()); } - if (model.wasPropertyExplicitlySet("mysqlxIdleWorkerThreadTimeout")) { - this.mysqlxIdleWorkerThreadTimeout(model.getMysqlxIdleWorkerThreadTimeout()); + if (model.wasPropertyExplicitlySet("maxUserConnections")) { + this.maxUserConnections(model.getMaxUserConnections()); } - if (model.wasPropertyExplicitlySet("mysqlxInteractiveTimeout")) { - this.mysqlxInteractiveTimeout(model.getMysqlxInteractiveTimeout()); + if (model.wasPropertyExplicitlySet("joinBufferSize")) { + this.joinBufferSize(model.getJoinBufferSize()); } - if (model.wasPropertyExplicitlySet("mysqlxMaxAllowedPacket")) { - this.mysqlxMaxAllowedPacket(model.getMysqlxMaxAllowedPacket()); + if (model.wasPropertyExplicitlySet("maxSeeksForKey")) { + this.maxSeeksForKey(model.getMaxSeeksForKey()); } - if (model.wasPropertyExplicitlySet("mysqlxMinWorkerThreads")) { - this.mysqlxMinWorkerThreads(model.getMysqlxMinWorkerThreads()); + if (model.wasPropertyExplicitlySet("rangeOptimizerMaxMemSize")) { + this.rangeOptimizerMaxMemSize(model.getRangeOptimizerMaxMemSize()); } - if (model.wasPropertyExplicitlySet("mysqlxReadTimeout")) { - this.mysqlxReadTimeout(model.getMysqlxReadTimeout()); + if (model.wasPropertyExplicitlySet("autoIncrementIncrement")) { + this.autoIncrementIncrement(model.getAutoIncrementIncrement()); } - if (model.wasPropertyExplicitlySet("mysqlxWaitTimeout")) { - this.mysqlxWaitTimeout(model.getMysqlxWaitTimeout()); + if (model.wasPropertyExplicitlySet("autoIncrementOffset")) { + this.autoIncrementOffset(model.getAutoIncrementOffset()); } - if (model.wasPropertyExplicitlySet("mysqlxWriteTimeout")) { - this.mysqlxWriteTimeout(model.getMysqlxWriteTimeout()); + if (model.wasPropertyExplicitlySet("innodbAutoincLockMode")) { + this.innodbAutoincLockMode(model.getInnodbAutoincLockMode()); } - if (model.wasPropertyExplicitlySet("netReadTimeout")) { - this.netReadTimeout(model.getNetReadTimeout()); + if (model.wasPropertyExplicitlySet("innodbRollbackOnTimeout")) { + this.innodbRollbackOnTimeout(model.getInnodbRollbackOnTimeout()); } - if (model.wasPropertyExplicitlySet("netWriteTimeout")) { - this.netWriteTimeout(model.getNetWriteTimeout()); + if (model.wasPropertyExplicitlySet("innodbOnlineAlterLogMaxSize")) { + this.innodbOnlineAlterLogMaxSize(model.getInnodbOnlineAlterLogMaxSize()); } - if (model.wasPropertyExplicitlySet("parserMaxMemSize")) { - this.parserMaxMemSize(model.getParserMaxMemSize()); + if (model.wasPropertyExplicitlySet("innodbSortBufferSize")) { + this.innodbSortBufferSize(model.getInnodbSortBufferSize()); } - if (model.wasPropertyExplicitlySet("queryAllocBlockSize")) { - this.queryAllocBlockSize(model.getQueryAllocBlockSize()); + if (model.wasPropertyExplicitlySet("innodbNumaInterleave")) { + this.innodbNumaInterleave(model.getInnodbNumaInterleave()); } - if (model.wasPropertyExplicitlySet("queryPreallocSize")) { - this.queryPreallocSize(model.getQueryPreallocSize()); + if (model.wasPropertyExplicitlySet("threadPoolSize")) { + this.threadPoolSize(model.getThreadPoolSize()); } - if (model.wasPropertyExplicitlySet("regexpTimeLimit")) { - this.regexpTimeLimit(model.getRegexpTimeLimit()); + if (model.wasPropertyExplicitlySet("longQueryTime")) { + this.longQueryTime(model.getLongQueryTime()); } - if (model.wasPropertyExplicitlySet("sqlMode")) { - this.sqlMode(model.getSqlMode()); + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** ("completion_type") */ + public enum CompletionType implements com.oracle.bmc.http.internal.BmcEnum { + NoChain("NO_CHAIN"), + Chain("CHAIN"), + Release("RELEASE"), + + /** + * 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(CompletionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompletionType v : CompletionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("tmpTableSize")) { - this.tmpTableSize(model.getTmpTableSize()); + } + + CompletionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompletionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("mysqlxDeflateDefaultCompressionLevel")) { - this.mysqlxDeflateDefaultCompressionLevel( - model.getMysqlxDeflateDefaultCompressionLevel()); + LOG.warn( + "Received unknown value '{}' for enum 'CompletionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** ("completion_type") */ + @com.fasterxml.jackson.annotation.JsonProperty("completionType") + private final CompletionType completionType; + + /** + * ("completion_type") + * + * @return the value + */ + public CompletionType getCompletionType() { + return completionType; + } + + /** + * If enabled, the server stores all temporary tables on disk rather than in memory. + * + *

bigTables corresponds to the MySQL server variable + * [big_tables](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_big_tables). + */ + @com.fasterxml.jackson.annotation.JsonProperty("bigTables") + private final Boolean bigTables; + + /** + * If enabled, the server stores all temporary tables on disk rather than in memory. + * + *

bigTables corresponds to the MySQL server variable + * [big_tables](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_big_tables). + * + * @return the value + */ + public Boolean getBigTables() { + return bigTables; + } + + /** + * The server's default character set. If you set this variable, you should also set + * collation_server to specify the collation for the character set. + * + *

characterSetServer corresponds to the MySQL server variable + * [character_set_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_character_set_server). + */ + public enum CharacterSetServer implements com.oracle.bmc.http.internal.BmcEnum { + Armscii8("ARMSCII8"), + Ascii("ASCII"), + Big5("BIG5"), + Binary("BINARY"), + Cp1250("CP1250"), + Cp1251("CP1251"), + Cp1256("CP1256"), + Cp1257("CP1257"), + Cp850("CP850"), + Cp852("CP852"), + Cp866("CP866"), + Cp932("CP932"), + Dec8("DEC8"), + Eucjpms("EUCJPMS"), + Euckr("EUCKR"), + Gb18030("GB18030"), + Gb2312("GB2312"), + Gbk("GBK"), + Geostd8("GEOSTD8"), + Greek("GREEK"), + Hebrew("HEBREW"), + Hp8("HP8"), + Keybcs2("KEYBCS2"), + Koi8R("KOI8R"), + Koi8U("KOI8U"), + Latin1("LATIN1"), + Latin2("LATIN2"), + Latin5("LATIN5"), + Latin7("LATIN7"), + Macce("MACCE"), + Macroman("MACROMAN"), + Sjis("SJIS"), + Swe7("SWE7"), + Tis620("TIS620"), + Ucs2("UCS2"), + Ujis("UJIS"), + Utf16("UTF16"), + Utf16Le("UTF16LE"), + Utf32("UTF32"), + Utf8Mb3("UTF8MB3"), + Utf8Mb4("UTF8MB4"), + + /** + * 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(CharacterSetServer.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CharacterSetServer v : CharacterSetServer.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("mysqlxDeflateMaxClientCompressionLevel")) { - this.mysqlxDeflateMaxClientCompressionLevel( - model.getMysqlxDeflateMaxClientCompressionLevel()); + } + + CharacterSetServer(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CharacterSetServer create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("mysqlxLz4MaxClientCompressionLevel")) { - this.mysqlxLz4MaxClientCompressionLevel( - model.getMysqlxLz4MaxClientCompressionLevel()); + LOG.warn( + "Received unknown value '{}' for enum 'CharacterSetServer', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The server's default character set. If you set this variable, you should also set + * collation_server to specify the collation for the character set. + * + *

characterSetServer corresponds to the MySQL server variable + * [character_set_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_character_set_server). + */ + @com.fasterxml.jackson.annotation.JsonProperty("characterSetServer") + private final CharacterSetServer characterSetServer; + + /** + * The server's default character set. If you set this variable, you should also set + * collation_server to specify the collation for the character set. + * + *

characterSetServer corresponds to the MySQL server variable + * [character_set_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_character_set_server). + * + * @return the value + */ + public CharacterSetServer getCharacterSetServer() { + return characterSetServer; + } + + /** + * The server's default collation. + * + *

collationServer corresponds to the MySQL server variable + * [collation_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_collation_server). + */ + public enum CollationServer implements com.oracle.bmc.http.internal.BmcEnum { + Armscii8GeneralCi("ARMSCII8_GENERAL_CI"), + Armscii8Bin("ARMSCII8_BIN"), + AsciiGeneralCi("ASCII_GENERAL_CI"), + AsciiBin("ASCII_BIN"), + Big5ChineseCi("BIG5_CHINESE_CI"), + Big5Bin("BIG5_BIN"), + Binary("BINARY"), + Cp1250GeneralCi("CP1250_GENERAL_CI"), + Cp1250Bin("CP1250_BIN"), + Cp1250CroatianCi("CP1250_CROATIAN_CI"), + Cp1250CzechCs("CP1250_CZECH_CS"), + Cp1250PolishCi("CP1250_POLISH_CI"), + Cp1251GeneralCi("CP1251_GENERAL_CI"), + Cp1251Bin("CP1251_BIN"), + Cp1251BulgarianCi("CP1251_BULGARIAN_CI"), + Cp1251GeneralCs("CP1251_GENERAL_CS"), + Cp1251UkrainianCi("CP1251_UKRAINIAN_CI"), + Cp1256GeneralCi("CP1256_GENERAL_CI"), + Cp1256Bin("CP1256_BIN"), + Cp1257GeneralCi("CP1257_GENERAL_CI"), + Cp1257Bin("CP1257_BIN"), + Cp1257LithuanianCi("CP1257_LITHUANIAN_CI"), + Cp850GeneralCi("CP850_GENERAL_CI"), + Cp850Bin("CP850_BIN"), + Cp852GeneralCi("CP852_GENERAL_CI"), + Cp852Bin("CP852_BIN"), + Cp866GeneralCi("CP866_GENERAL_CI"), + Cp866Bin("CP866_BIN"), + Cp932JapaneseCi("CP932_JAPANESE_CI"), + Cp932Bin("CP932_BIN"), + Dec8SwedishCi("DEC8_SWEDISH_CI"), + Dec8Bin("DEC8_BIN"), + EucjpmsJapaneseCi("EUCJPMS_JAPANESE_CI"), + EucjpmsBin("EUCJPMS_BIN"), + EuckrKoreanCi("EUCKR_KOREAN_CI"), + EuckrBin("EUCKR_BIN"), + Gb18030ChineseCi("GB18030_CHINESE_CI"), + Gb18030Bin("GB18030_BIN"), + Gb18030Unicode520Ci("GB18030_UNICODE_520_CI"), + Gb2312ChineseCi("GB2312_CHINESE_CI"), + Gb2312Bin("GB2312_BIN"), + GbkChineseCi("GBK_CHINESE_CI"), + GbkBin("GBK_BIN"), + Geostd8GeneralCi("GEOSTD8_GENERAL_CI"), + Geostd8Bin("GEOSTD8_BIN"), + GreekGeneralCi("GREEK_GENERAL_CI"), + GreekBin("GREEK_BIN"), + HebrewGeneralCi("HEBREW_GENERAL_CI"), + HebrewBin("HEBREW_BIN"), + Hp8EnglishCi("HP8_ENGLISH_CI"), + Hp8Bin("HP8_BIN"), + Keybcs2GeneralCi("KEYBCS2_GENERAL_CI"), + Keybcs2Bin("KEYBCS2_BIN"), + Koi8RGeneralCi("KOI8R_GENERAL_CI"), + Koi8RBin("KOI8R_BIN"), + Koi8UGeneralCi("KOI8U_GENERAL_CI"), + Koi8UBin("KOI8U_BIN"), + Latin1SwedishCi("LATIN1_SWEDISH_CI"), + Latin1Bin("LATIN1_BIN"), + Latin1DanishCi("LATIN1_DANISH_CI"), + Latin1GeneralCi("LATIN1_GENERAL_CI"), + Latin1GeneralCs("LATIN1_GENERAL_CS"), + Latin1German1Ci("LATIN1_GERMAN1_CI"), + Latin1German2Ci("LATIN1_GERMAN2_CI"), + Latin1SpanishCi("LATIN1_SPANISH_CI"), + Latin2GeneralCi("LATIN2_GENERAL_CI"), + Latin2Bin("LATIN2_BIN"), + Latin2CroatianCi("LATIN2_CROATIAN_CI"), + Latin2CzechCs("LATIN2_CZECH_CS"), + Latin2HungarianCi("LATIN2_HUNGARIAN_CI"), + Latin5TurkishCi("LATIN5_TURKISH_CI"), + Latin5Bin("LATIN5_BIN"), + Latin7GeneralCi("LATIN7_GENERAL_CI"), + Latin7Bin("LATIN7_BIN"), + Latin7EstonianCs("LATIN7_ESTONIAN_CS"), + Latin7GeneralCs("LATIN7_GENERAL_CS"), + MacceGeneralCi("MACCE_GENERAL_CI"), + MacceBin("MACCE_BIN"), + MacromanGeneralCi("MACROMAN_GENERAL_CI"), + MacromanBin("MACROMAN_BIN"), + SjisJapaneseCi("SJIS_JAPANESE_CI"), + SjisBin("SJIS_BIN"), + Swe7SwedishCi("SWE7_SWEDISH_CI"), + Swe7Bin("SWE7_BIN"), + Tis620ThaiCi("TIS620_THAI_CI"), + Tis620Bin("TIS620_BIN"), + Ucs2GeneralCi("UCS2_GENERAL_CI"), + Ucs2Bin("UCS2_BIN"), + Ucs2CroatianCi("UCS2_CROATIAN_CI"), + Ucs2CzechCi("UCS2_CZECH_CI"), + Ucs2DanishCi("UCS2_DANISH_CI"), + Ucs2EsperantoCi("UCS2_ESPERANTO_CI"), + Ucs2EstonianCi("UCS2_ESTONIAN_CI"), + Ucs2GeneralMysql500Ci("UCS2_GENERAL_MYSQL500_CI"), + Ucs2German2Ci("UCS2_GERMAN2_CI"), + Ucs2HungarianCi("UCS2_HUNGARIAN_CI"), + Ucs2IcelandicCi("UCS2_ICELANDIC_CI"), + Ucs2LatvianCi("UCS2_LATVIAN_CI"), + Ucs2LithuanianCi("UCS2_LITHUANIAN_CI"), + Ucs2PersianCi("UCS2_PERSIAN_CI"), + Ucs2PolishCi("UCS2_POLISH_CI"), + Ucs2RomanianCi("UCS2_ROMANIAN_CI"), + Ucs2RomanCi("UCS2_ROMAN_CI"), + Ucs2SinhalaCi("UCS2_SINHALA_CI"), + Ucs2SlovakCi("UCS2_SLOVAK_CI"), + Ucs2SlovenianCi("UCS2_SLOVENIAN_CI"), + Ucs2Spanish2Ci("UCS2_SPANISH2_CI"), + Ucs2SpanishCi("UCS2_SPANISH_CI"), + Ucs2SwedishCi("UCS2_SWEDISH_CI"), + Ucs2TurkishCi("UCS2_TURKISH_CI"), + Ucs2Unicode520Ci("UCS2_UNICODE_520_CI"), + Ucs2UnicodeCi("UCS2_UNICODE_CI"), + Ucs2VietnameseCi("UCS2_VIETNAMESE_CI"), + UjisJapaneseCi("UJIS_JAPANESE_CI"), + UjisBin("UJIS_BIN"), + Utf16GeneralCi("UTF16_GENERAL_CI"), + Utf16Bin("UTF16_BIN"), + Utf16CroatianCi("UTF16_CROATIAN_CI"), + Utf16CzechCi("UTF16_CZECH_CI"), + Utf16DanishCi("UTF16_DANISH_CI"), + Utf16EsperantoCi("UTF16_ESPERANTO_CI"), + Utf16EstonianCi("UTF16_ESTONIAN_CI"), + Utf16German2Ci("UTF16_GERMAN2_CI"), + Utf16HungarianCi("UTF16_HUNGARIAN_CI"), + Utf16IcelandicCi("UTF16_ICELANDIC_CI"), + Utf16LatvianCi("UTF16_LATVIAN_CI"), + Utf16LithuanianCi("UTF16_LITHUANIAN_CI"), + Utf16PersianCi("UTF16_PERSIAN_CI"), + Utf16PolishCi("UTF16_POLISH_CI"), + Utf16RomanianCi("UTF16_ROMANIAN_CI"), + Utf16RomanCi("UTF16_ROMAN_CI"), + Utf16SinhalaCi("UTF16_SINHALA_CI"), + Utf16SlovakCi("UTF16_SLOVAK_CI"), + Utf16SlovenianCi("UTF16_SLOVENIAN_CI"), + Utf16Spanish2Ci("UTF16_SPANISH2_CI"), + Utf16SpanishCi("UTF16_SPANISH_CI"), + Utf16SwedishCi("UTF16_SWEDISH_CI"), + Utf16TurkishCi("UTF16_TURKISH_CI"), + Utf16Unicode520Ci("UTF16_UNICODE_520_CI"), + Utf16UnicodeCi("UTF16_UNICODE_CI"), + Utf16VietnameseCi("UTF16_VIETNAMESE_CI"), + Utf16LeGeneralCi("UTF16LE_GENERAL_CI"), + Utf16LeBin("UTF16LE_BIN"), + Utf32GeneralCi("UTF32_GENERAL_CI"), + Utf32Bin("UTF32_BIN"), + Utf32CroatianCi("UTF32_CROATIAN_CI"), + Utf32CzechCi("UTF32_CZECH_CI"), + Utf32DanishCi("UTF32_DANISH_CI"), + Utf32EsperantoCi("UTF32_ESPERANTO_CI"), + Utf32EstonianCi("UTF32_ESTONIAN_CI"), + Utf32German2Ci("UTF32_GERMAN2_CI"), + Utf32HungarianCi("UTF32_HUNGARIAN_CI"), + Utf32IcelandicCi("UTF32_ICELANDIC_CI"), + Utf32LatvianCi("UTF32_LATVIAN_CI"), + Utf32LithuanianCi("UTF32_LITHUANIAN_CI"), + Utf32PersianCi("UTF32_PERSIAN_CI"), + Utf32PolishCi("UTF32_POLISH_CI"), + Utf32RomanianCi("UTF32_ROMANIAN_CI"), + Utf32RomanCi("UTF32_ROMAN_CI"), + Utf32SinhalaCi("UTF32_SINHALA_CI"), + Utf32SlovakCi("UTF32_SLOVAK_CI"), + Utf32SlovenianCi("UTF32_SLOVENIAN_CI"), + Utf32Spanish2Ci("UTF32_SPANISH2_CI"), + Utf32SpanishCi("UTF32_SPANISH_CI"), + Utf32SwedishCi("UTF32_SWEDISH_CI"), + Utf32TurkishCi("UTF32_TURKISH_CI"), + Utf32Unicode520Ci("UTF32_UNICODE_520_CI"), + Utf32UnicodeCi("UTF32_UNICODE_CI"), + Utf32VietnameseCi("UTF32_VIETNAMESE_CI"), + Utf8GeneralCi("UTF8_GENERAL_CI"), + Utf8Bin("UTF8_BIN"), + Utf8CroatianCi("UTF8_CROATIAN_CI"), + Utf8CzechCi("UTF8_CZECH_CI"), + Utf8DanishCi("UTF8_DANISH_CI"), + Utf8EsperantoCi("UTF8_ESPERANTO_CI"), + Utf8EstonianCi("UTF8_ESTONIAN_CI"), + Utf8GeneralMysql500Ci("UTF8_GENERAL_MYSQL500_CI"), + Utf8German2Ci("UTF8_GERMAN2_CI"), + Utf8HungarianCi("UTF8_HUNGARIAN_CI"), + Utf8IcelandicCi("UTF8_ICELANDIC_CI"), + Utf8LatvianCi("UTF8_LATVIAN_CI"), + Utf8LithuanianCi("UTF8_LITHUANIAN_CI"), + Utf8PersianCi("UTF8_PERSIAN_CI"), + Utf8PolishCi("UTF8_POLISH_CI"), + Utf8RomanianCi("UTF8_ROMANIAN_CI"), + Utf8RomanCi("UTF8_ROMAN_CI"), + Utf8SinhalaCi("UTF8_SINHALA_CI"), + Utf8SlovakCi("UTF8_SLOVAK_CI"), + Utf8SlovenianCi("UTF8_SLOVENIAN_CI"), + Utf8Spanish2Ci("UTF8_SPANISH2_CI"), + Utf8SpanishCi("UTF8_SPANISH_CI"), + Utf8SwedishCi("UTF8_SWEDISH_CI"), + Utf8TolowerCi("UTF8_TOLOWER_CI"), + Utf8TurkishCi("UTF8_TURKISH_CI"), + Utf8Unicode520Ci("UTF8_UNICODE_520_CI"), + Utf8UnicodeCi("UTF8_UNICODE_CI"), + Utf8VietnameseCi("UTF8_VIETNAMESE_CI"), + Utf8Mb40900AiCi("UTF8MB4_0900_AI_CI"), + Utf8Mb40900AsCi("UTF8MB4_0900_AS_CI"), + Utf8Mb40900AsCs("UTF8MB4_0900_AS_CS"), + Utf8Mb40900Bin("UTF8MB4_0900_BIN"), + Utf8Mb4Bin("UTF8MB4_BIN"), + Utf8Mb4CroatianCi("UTF8MB4_CROATIAN_CI"), + Utf8Mb4Cs0900AiCi("UTF8MB4_CS_0900_AI_CI"), + Utf8Mb4Cs0900AsCs("UTF8MB4_CS_0900_AS_CS"), + Utf8Mb4CzechCi("UTF8MB4_CZECH_CI"), + Utf8Mb4DanishCi("UTF8MB4_DANISH_CI"), + Utf8Mb4Da0900AiCi("UTF8MB4_DA_0900_AI_CI"), + Utf8Mb4Da0900AsCs("UTF8MB4_DA_0900_AS_CS"), + Utf8Mb4DePb0900AiCi("UTF8MB4_DE_PB_0900_AI_CI"), + Utf8Mb4DePb0900AsCs("UTF8MB4_DE_PB_0900_AS_CS"), + Utf8Mb4Eo0900AiCi("UTF8MB4_EO_0900_AI_CI"), + Utf8Mb4Eo0900AsCs("UTF8MB4_EO_0900_AS_CS"), + Utf8Mb4EsperantoCi("UTF8MB4_ESPERANTO_CI"), + Utf8Mb4EstonianCi("UTF8MB4_ESTONIAN_CI"), + Utf8Mb4Es0900AiCi("UTF8MB4_ES_0900_AI_CI"), + Utf8Mb4Es0900AsCs("UTF8MB4_ES_0900_AS_CS"), + Utf8Mb4EsTrad0900AiCi("UTF8MB4_ES_TRAD_0900_AI_CI"), + Utf8Mb4EsTrad0900AsCs("UTF8MB4_ES_TRAD_0900_AS_CS"), + Utf8Mb4Et0900AiCi("UTF8MB4_ET_0900_AI_CI"), + Utf8Mb4Et0900AsCs("UTF8MB4_ET_0900_AS_CS"), + Utf8Mb4GeneralCi("UTF8MB4_GENERAL_CI"), + Utf8Mb4German2Ci("UTF8MB4_GERMAN2_CI"), + Utf8Mb4Hr0900AiCi("UTF8MB4_HR_0900_AI_CI"), + Utf8Mb4Hr0900AsCs("UTF8MB4_HR_0900_AS_CS"), + Utf8Mb4HungarianCi("UTF8MB4_HUNGARIAN_CI"), + Utf8Mb4Hu0900AiCi("UTF8MB4_HU_0900_AI_CI"), + Utf8Mb4Hu0900AsCs("UTF8MB4_HU_0900_AS_CS"), + Utf8Mb4IcelandicCi("UTF8MB4_ICELANDIC_CI"), + Utf8Mb4Is0900AiCi("UTF8MB4_IS_0900_AI_CI"), + Utf8Mb4Is0900AsCs("UTF8MB4_IS_0900_AS_CS"), + Utf8Mb4Ja0900AsCs("UTF8MB4_JA_0900_AS_CS"), + Utf8Mb4Ja0900AsCsKs("UTF8MB4_JA_0900_AS_CS_KS"), + Utf8Mb4LatvianCi("UTF8MB4_LATVIAN_CI"), + Utf8Mb4La0900AiCi("UTF8MB4_LA_0900_AI_CI"), + Utf8Mb4La0900AsCs("UTF8MB4_LA_0900_AS_CS"), + Utf8Mb4LithuanianCi("UTF8MB4_LITHUANIAN_CI"), + Utf8Mb4Lt0900AiCi("UTF8MB4_LT_0900_AI_CI"), + Utf8Mb4Lt0900AsCs("UTF8MB4_LT_0900_AS_CS"), + Utf8Mb4Lv0900AiCi("UTF8MB4_LV_0900_AI_CI"), + Utf8Mb4Lv0900AsCs("UTF8MB4_LV_0900_AS_CS"), + Utf8Mb4PersianCi("UTF8MB4_PERSIAN_CI"), + Utf8Mb4Pl0900AiCi("UTF8MB4_PL_0900_AI_CI"), + Utf8Mb4Pl0900AsCs("UTF8MB4_PL_0900_AS_CS"), + Utf8Mb4PolishCi("UTF8MB4_POLISH_CI"), + Utf8Mb4RomanianCi("UTF8MB4_ROMANIAN_CI"), + Utf8Mb4RomanCi("UTF8MB4_ROMAN_CI"), + Utf8Mb4Ro0900AiCi("UTF8MB4_RO_0900_AI_CI"), + Utf8Mb4Ro0900AsCs("UTF8MB4_RO_0900_AS_CS"), + Utf8Mb4Ru0900AiCi("UTF8MB4_RU_0900_AI_CI"), + Utf8Mb4Ru0900AsCs("UTF8MB4_RU_0900_AS_CS"), + Utf8Mb4SinhalaCi("UTF8MB4_SINHALA_CI"), + Utf8Mb4Sk0900AiCi("UTF8MB4_SK_0900_AI_CI"), + Utf8Mb4Sk0900AsCs("UTF8MB4_SK_0900_AS_CS"), + Utf8Mb4SlovakCi("UTF8MB4_SLOVAK_CI"), + Utf8Mb4SlovenianCi("UTF8MB4_SLOVENIAN_CI"), + Utf8Mb4Sl0900AiCi("UTF8MB4_SL_0900_AI_CI"), + Utf8Mb4Sl0900AsCs("UTF8MB4_SL_0900_AS_CS"), + Utf8Mb4Spanish2Ci("UTF8MB4_SPANISH2_CI"), + Utf8Mb4SpanishCi("UTF8MB4_SPANISH_CI"), + Utf8Mb4Sv0900AiCi("UTF8MB4_SV_0900_AI_CI"), + Utf8Mb4Sv0900AsCs("UTF8MB4_SV_0900_AS_CS"), + Utf8Mb4SwedishCi("UTF8MB4_SWEDISH_CI"), + Utf8Mb4Tr0900AiCi("UTF8MB4_TR_0900_AI_CI"), + Utf8Mb4Tr0900AsCs("UTF8MB4_TR_0900_AS_CS"), + Utf8Mb4TurkishCi("UTF8MB4_TURKISH_CI"), + Utf8Mb4Unicode520Ci("UTF8MB4_UNICODE_520_CI"), + Utf8Mb4UnicodeCi("UTF8MB4_UNICODE_CI"), + Utf8Mb4VietnameseCi("UTF8MB4_VIETNAMESE_CI"), + Utf8Mb4Vi0900AiCi("UTF8MB4_VI_0900_AI_CI"), + Utf8Mb4Vi0900AsCs("UTF8MB4_VI_0900_AS_CS"), + Utf8Mb4Zh0900AsCs("UTF8MB4_ZH_0900_AS_CS"), + + /** + * 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(CollationServer.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CollationServer v : CollationServer.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("mysqlxLz4DefaultCompressionLevel")) { - this.mysqlxLz4DefaultCompressionLevel(model.getMysqlxLz4DefaultCompressionLevel()); + } + + CollationServer(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CollationServer create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("mysqlxZstdMaxClientCompressionLevel")) { - this.mysqlxZstdMaxClientCompressionLevel( - model.getMysqlxZstdMaxClientCompressionLevel()); + LOG.warn( + "Received unknown value '{}' for enum 'CollationServer', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The server's default collation. + * + *

collationServer corresponds to the MySQL server variable + * [collation_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_collation_server). + */ + @com.fasterxml.jackson.annotation.JsonProperty("collationServer") + private final CollationServer collationServer; + + /** + * The server's default collation. + * + *

collationServer corresponds to the MySQL server variable + * [collation_server](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_collation_server). + * + * @return the value + */ + public CollationServer getCollationServer() { + return collationServer; + } + + /** + * Set the chunking size for updates to the global memory usage counter + * Global_connection_memory. + * + *

connectionMemoryChunkSize corresponds to the MySQL system variable + * [connection_memory_chunk_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_chunk_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionMemoryChunkSize") + private final Integer connectionMemoryChunkSize; + + /** + * Set the chunking size for updates to the global memory usage counter + * Global_connection_memory. + * + *

connectionMemoryChunkSize corresponds to the MySQL system variable + * [connection_memory_chunk_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_chunk_size). + * + * @return the value + */ + public Integer getConnectionMemoryChunkSize() { + return connectionMemoryChunkSize; + } + + /** + * Set the maximum amount of memory that can be used by a single user connection. + * + *

connectionMemoryLimit corresponds to the MySQL system variable + * [connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_limit). + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionMemoryLimit") + private final Long connectionMemoryLimit; + + /** + * Set the maximum amount of memory that can be used by a single user connection. + * + *

connectionMemoryLimit corresponds to the MySQL system variable + * [connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_limit). + * + * @return the value + */ + public Long getConnectionMemoryLimit() { + return connectionMemoryLimit; + } + + /** + * The default authentication plugin. This must be a plugin that uses internal credentials + * storage, so these values are permitted: mysql_native_password, sha256_password, + * caching_sha2_password. + * + *

As of MySQL 8.0.27, which introduces multifactor authentication, + * default_authentication_plugin is still used, but in conjunction with and at a lower + * precedence than the authentication_policy system variable. For details, see The Default + * Authentication Plugin. Because of this diminished role, default_authentication_plugin is + * deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version. + * + *

defaultAuthenticationPlugin corresponds to the MySQL system variable + * [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin). + */ + public enum DefaultAuthenticationPlugin implements com.oracle.bmc.http.internal.BmcEnum { + MysqlNativePassword("mysql_native_password"), + Sha256Password("sha256_password"), + CachingSha2Password("caching_sha2_password"), + + /** + * 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(DefaultAuthenticationPlugin.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DefaultAuthenticationPlugin v : DefaultAuthenticationPlugin.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("mysqlxZstdDefaultCompressionLevel")) { - this.mysqlxZstdDefaultCompressionLevel( - model.getMysqlxZstdDefaultCompressionLevel()); + } + + DefaultAuthenticationPlugin(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DefaultAuthenticationPlugin create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("mysqlZstdDefaultCompressionLevel")) { - this.mysqlZstdDefaultCompressionLevel(model.getMysqlZstdDefaultCompressionLevel()); + LOG.warn( + "Received unknown value '{}' for enum 'DefaultAuthenticationPlugin', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The default authentication plugin. This must be a plugin that uses internal credentials + * storage, so these values are permitted: mysql_native_password, sha256_password, + * caching_sha2_password. + * + *

As of MySQL 8.0.27, which introduces multifactor authentication, + * default_authentication_plugin is still used, but in conjunction with and at a lower + * precedence than the authentication_policy system variable. For details, see The Default + * Authentication Plugin. Because of this diminished role, default_authentication_plugin is + * deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version. + * + *

defaultAuthenticationPlugin corresponds to the MySQL system variable + * [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin). + */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultAuthenticationPlugin") + private final DefaultAuthenticationPlugin defaultAuthenticationPlugin; + + /** + * The default authentication plugin. This must be a plugin that uses internal credentials + * storage, so these values are permitted: mysql_native_password, sha256_password, + * caching_sha2_password. + * + *

As of MySQL 8.0.27, which introduces multifactor authentication, + * default_authentication_plugin is still used, but in conjunction with and at a lower + * precedence than the authentication_policy system variable. For details, see The Default + * Authentication Plugin. Because of this diminished role, default_authentication_plugin is + * deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version. + * + *

defaultAuthenticationPlugin corresponds to the MySQL system variable + * [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin). + * + * @return the value + */ + public DefaultAuthenticationPlugin getDefaultAuthenticationPlugin() { + return defaultAuthenticationPlugin; + } + + /** + * Set the total amount of memory that can be used by all user connections. + * + *

globalConnectionMemoryLimit corresponds to the MySQL system variable + * [global_connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_limit). + */ + @com.fasterxml.jackson.annotation.JsonProperty("globalConnectionMemoryLimit") + private final Long globalConnectionMemoryLimit; + + /** + * Set the total amount of memory that can be used by all user connections. + * + *

globalConnectionMemoryLimit corresponds to the MySQL system variable + * [global_connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_limit). + * + * @return the value + */ + public Long getGlobalConnectionMemoryLimit() { + return globalConnectionMemoryLimit; + } + + /** + * Determines whether the MySQL server calculates Global_connection_memory. + * + *

globalConnectionMemoryTracking corresponds to the MySQL system variable + * [global_connection_memory_tracking](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_tracking). + */ + @com.fasterxml.jackson.annotation.JsonProperty("globalConnectionMemoryTracking") + private final Boolean globalConnectionMemoryTracking; + + /** + * Determines whether the MySQL server calculates Global_connection_memory. + * + *

globalConnectionMemoryTracking corresponds to the MySQL system variable + * [global_connection_memory_tracking](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_tracking). + * + * @return the value + */ + public Boolean getGlobalConnectionMemoryTracking() { + return globalConnectionMemoryTracking; + } + + /** ("transaction_isolation") */ + public enum TransactionIsolation implements com.oracle.bmc.http.internal.BmcEnum { + ReadUncommitted("READ-UNCOMMITTED"), + ReadCommited("READ-COMMITED"), + ReadCommitted("READ-COMMITTED"), + RepeatableRead("REPEATABLE-READ"), + Serializable("SERIALIZABLE"), + + /** + * 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(TransactionIsolation.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TransactionIsolation v : TransactionIsolation.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("sortBufferSize")) { - this.sortBufferSize(model.getSortBufferSize()); + } + + TransactionIsolation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TransactionIsolation create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("waitTimeout")) { - this.waitTimeout(model.getWaitTimeout()); + LOG.warn( + "Received unknown value '{}' for enum 'TransactionIsolation', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** ("transaction_isolation") */ + @com.fasterxml.jackson.annotation.JsonProperty("transactionIsolation") + private final TransactionIsolation transactionIsolation; + + /** + * ("transaction_isolation") + * + * @return the value + */ + public TransactionIsolation getTransactionIsolation() { + return transactionIsolation; + } + + /** ("innodb_ft_server_stopword_table") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtServerStopwordTable") + private final String innodbFtServerStopwordTable; + + /** + * ("innodb_ft_server_stopword_table") + * + * @return the value + */ + public String getInnodbFtServerStopwordTable() { + return innodbFtServerStopwordTable; + } + + /** ("mandatory_roles") */ + @com.fasterxml.jackson.annotation.JsonProperty("mandatoryRoles") + private final String mandatoryRoles; + + /** + * ("mandatory_roles") + * + * @return the value + */ + public String getMandatoryRoles() { + return mandatoryRoles; + } + + /** ("autocommit") */ + @com.fasterxml.jackson.annotation.JsonProperty("autocommit") + private final Boolean autocommit; + + /** + * ("autocommit") + * + * @return the value + */ + public Boolean getAutocommit() { + return autocommit; + } + + /** ("foreign_key_checks") */ + @com.fasterxml.jackson.annotation.JsonProperty("foreignKeyChecks") + private final Boolean foreignKeyChecks; + + /** + * ("foreign_key_checks") + * + * @return the value + */ + public Boolean getForeignKeyChecks() { + return foreignKeyChecks; + } + + /** + * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied + * before executing. A RW transaction does not wait for other members to apply a transaction. + * This means that a transaction could be externalized on one member before the others. This + * also means that in the event of a primary failover, the new primary can accept new RO and RW + * transactions before the previous primary transactions are all applied. RO transactions could + * result in outdated values, RW transactions could result in a rollback due to conflicts. - + * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is + * applying backlog from the old primary are held (not applied) until any backlog has been + * applied. This ensures that when a primary failover happens, intentionally or not, clients + * always see the latest value on the primary. This guarantees consistency, but means that + * clients must be able to handle the delay in the event that a backlog is being applied. + * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A + * RW transaction waits for all preceding transactions to complete before being applied. A RO + * transaction waits for all preceding transactions to complete before being executed. This + * ensures that this transaction reads the latest value by only affecting the latency of the + * transaction. This reduces the overhead of synchronization on every RW transaction, by + * ensuring synchronization is used only on RO transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW + * transaction waits until its changes have been applied to all of the other members. This value + * has no effect on RO transactions. This mode ensures that when a transaction is committed on + * the local member, any subsequent transaction reads the written value or a more recent value + * on any group member. Use this mode with a group that is used for predominantly RO operations + * to ensure that applied RW transactions are applied everywhere once they commit. This could be + * used by your application to ensure that subsequent reads fetch the latest data which includes + * the latest writes. This reduces the overhead of synchronization on every RO transaction, by + * ensuring synchronization is used only on RW transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - + * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before + * being applied and 2) until its changes have been applied on other members. A RO transaction + * waits for all preceding transactions to complete before execution takes place. This + * consistency level also includes the consistency guarantees provided by + * BEFORE_ON_PRIMARY_FAILOVER. + */ + public enum GroupReplicationConsistency implements com.oracle.bmc.http.internal.BmcEnum { + Eventual("EVENTUAL"), + BeforeOnPrimaryFailover("BEFORE_ON_PRIMARY_FAILOVER"), + Before("BEFORE"), + After("AFTER"), + BeforeAndAfter("BEFORE_AND_AFTER"), + + /** + * 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(GroupReplicationConsistency.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (GroupReplicationConsistency v : GroupReplicationConsistency.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("threadPoolDedicatedListeners")) { - this.threadPoolDedicatedListeners(model.getThreadPoolDedicatedListeners()); + } + + GroupReplicationConsistency(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static GroupReplicationConsistency create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - if (model.wasPropertyExplicitlySet("threadPoolMaxTransactionsLimit")) { - this.threadPoolMaxTransactionsLimit(model.getThreadPoolMaxTransactionsLimit()); + LOG.warn( + "Received unknown value '{}' for enum 'GroupReplicationConsistency', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied + * before executing. A RW transaction does not wait for other members to apply a transaction. + * This means that a transaction could be externalized on one member before the others. This + * also means that in the event of a primary failover, the new primary can accept new RO and RW + * transactions before the previous primary transactions are all applied. RO transactions could + * result in outdated values, RW transactions could result in a rollback due to conflicts. - + * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is + * applying backlog from the old primary are held (not applied) until any backlog has been + * applied. This ensures that when a primary failover happens, intentionally or not, clients + * always see the latest value on the primary. This guarantees consistency, but means that + * clients must be able to handle the delay in the event that a backlog is being applied. + * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A + * RW transaction waits for all preceding transactions to complete before being applied. A RO + * transaction waits for all preceding transactions to complete before being executed. This + * ensures that this transaction reads the latest value by only affecting the latency of the + * transaction. This reduces the overhead of synchronization on every RW transaction, by + * ensuring synchronization is used only on RO transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW + * transaction waits until its changes have been applied to all of the other members. This value + * has no effect on RO transactions. This mode ensures that when a transaction is committed on + * the local member, any subsequent transaction reads the written value or a more recent value + * on any group member. Use this mode with a group that is used for predominantly RO operations + * to ensure that applied RW transactions are applied everywhere once they commit. This could be + * used by your application to ensure that subsequent reads fetch the latest data which includes + * the latest writes. This reduces the overhead of synchronization on every RO transaction, by + * ensuring synchronization is used only on RW transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - + * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before + * being applied and 2) until its changes have been applied on other members. A RO transaction + * waits for all preceding transactions to complete before execution takes place. This + * consistency level also includes the consistency guarantees provided by + * BEFORE_ON_PRIMARY_FAILOVER. + */ + @com.fasterxml.jackson.annotation.JsonProperty("groupReplicationConsistency") + private final GroupReplicationConsistency groupReplicationConsistency; + + /** + * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied + * before executing. A RW transaction does not wait for other members to apply a transaction. + * This means that a transaction could be externalized on one member before the others. This + * also means that in the event of a primary failover, the new primary can accept new RO and RW + * transactions before the previous primary transactions are all applied. RO transactions could + * result in outdated values, RW transactions could result in a rollback due to conflicts. - + * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is + * applying backlog from the old primary are held (not applied) until any backlog has been + * applied. This ensures that when a primary failover happens, intentionally or not, clients + * always see the latest value on the primary. This guarantees consistency, but means that + * clients must be able to handle the delay in the event that a backlog is being applied. + * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A + * RW transaction waits for all preceding transactions to complete before being applied. A RO + * transaction waits for all preceding transactions to complete before being executed. This + * ensures that this transaction reads the latest value by only affecting the latency of the + * transaction. This reduces the overhead of synchronization on every RW transaction, by + * ensuring synchronization is used only on RO transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW + * transaction waits until its changes have been applied to all of the other members. This value + * has no effect on RO transactions. This mode ensures that when a transaction is committed on + * the local member, any subsequent transaction reads the written value or a more recent value + * on any group member. Use this mode with a group that is used for predominantly RO operations + * to ensure that applied RW transactions are applied everywhere once they commit. This could be + * used by your application to ensure that subsequent reads fetch the latest data which includes + * the latest writes. This reduces the overhead of synchronization on every RO transaction, by + * ensuring synchronization is used only on RW transactions. This consistency level also + * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - + * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before + * being applied and 2) until its changes have been applied on other members. A RO transaction + * waits for all preceding transactions to complete before execution takes place. This + * consistency level also includes the consistency guarantees provided by + * BEFORE_ON_PRIMARY_FAILOVER. + * + * @return the value + */ + public GroupReplicationConsistency getGroupReplicationConsistency() { + return groupReplicationConsistency; + } + + /** + * Specifies the maximum permitted result length in bytes for the GROUP_CONCAT() function. + * + *

This is the MySQL variable "group_concat_max_len". For more information, please see the + * [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_group_concat_max_len) + */ + @com.fasterxml.jackson.annotation.JsonProperty("groupConcatMaxLen") + private final Long groupConcatMaxLen; + + /** + * Specifies the maximum permitted result length in bytes for the GROUP_CONCAT() function. + * + *

This is the MySQL variable "group_concat_max_len". For more information, please see the + * [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_group_concat_max_len) + * + * @return the value + */ + public Long getGroupConcatMaxLen() { + return groupConcatMaxLen; + } + + /** ("innodb_ft_enable_stopword") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtEnableStopword") + private final Boolean innodbFtEnableStopword; + + /** + * ("innodb_ft_enable_stopword") + * + * @return the value + */ + public Boolean getInnodbFtEnableStopword() { + return innodbFtEnableStopword; + } + + /** + * Enables dedicated log writer threads for writing redo log records from the log buffer to the + * system buffers and flushing the system buffers to the redo log files. + * + *

This is the MySQL variable "innodb_log_writer_threads". For more information, please see + * the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_log_writer_threads) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbLogWriterThreads") + private final Boolean innodbLogWriterThreads; + + /** + * Enables dedicated log writer threads for writing redo log records from the log buffer to the + * system buffers and flushing the system buffers to the redo log files. + * + *

This is the MySQL variable "innodb_log_writer_threads". For more information, please see + * the [MySQL + * documentation](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_log_writer_threads) + * + * @return the value + */ + public Boolean getInnodbLogWriterThreads() { + return innodbLogWriterThreads; + } + + /** + * This variable controls server-side LOCAL capability for LOAD DATA statements. Depending on + * the local_infile setting, the server refuses or permits local data loading by clients that + * have LOCAL enabled on the client side. + * + *

local_infile corresponds to the MySQL Server system variable + * [local_infile](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_local_infile) + */ + @com.fasterxml.jackson.annotation.JsonProperty("localInfile") + private final Boolean localInfile; + + /** + * This variable controls server-side LOCAL capability for LOAD DATA statements. Depending on + * the local_infile setting, the server refuses or permits local data loading by clients that + * have LOCAL enabled on the client side. + * + *

local_infile corresponds to the MySQL Server system variable + * [local_infile](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_local_infile) + * + * @return the value + */ + public Boolean getLocalInfile() { + return localInfile; + } + + /** ("mysql_firewall_mode") */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlFirewallMode") + private final Boolean mysqlFirewallMode; + + /** + * ("mysql_firewall_mode") + * + * @return the value + */ + public Boolean getMysqlFirewallMode() { + return mysqlFirewallMode; + } + + /** + * ("mysqlx_enable_hello_notice") DEPRECATED -- variable should not be settable and will be + * ignored + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxEnableHelloNotice") + private final Boolean mysqlxEnableHelloNotice; + + /** + * ("mysqlx_enable_hello_notice") DEPRECATED -- variable should not be settable and will be + * ignored + * + * @return the value + */ + public Boolean getMysqlxEnableHelloNotice() { + return mysqlxEnableHelloNotice; + } + + /** ("sql_require_primary_key") */ + @com.fasterxml.jackson.annotation.JsonProperty("sqlRequirePrimaryKey") + private final Boolean sqlRequirePrimaryKey; + + /** + * ("sql_require_primary_key") + * + * @return the value + */ + public Boolean getSqlRequirePrimaryKey() { + return sqlRequirePrimaryKey; + } + + /** ("sql_warnings") */ + @com.fasterxml.jackson.annotation.JsonProperty("sqlWarnings") + private final Boolean sqlWarnings; + + /** + * ("sql_warnings") + * + * @return the value + */ + public Boolean getSqlWarnings() { + return sqlWarnings; + } + + /** + * Sets the binary log expiration period in seconds. binlogExpireLogsSeconds corresponds to the + * MySQL binary logging system variable + * [binlog_expire_logs_seconds](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds). + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogExpireLogsSeconds") + private final Integer binlogExpireLogsSeconds; + + /** + * Sets the binary log expiration period in seconds. binlogExpireLogsSeconds corresponds to the + * MySQL binary logging system variable + * [binlog_expire_logs_seconds](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds). + * + * @return the value + */ + public Integer getBinlogExpireLogsSeconds() { + return binlogExpireLogsSeconds; + } + + /** + * Configures the amount of table metadata added to the binary log when using row-based logging. + * binlogRowMetadata corresponds to the MySQL binary logging system variable + * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + */ + public enum BinlogRowMetadata implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Minimal("MINIMAL"), + + /** + * 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(BinlogRowMetadata.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BinlogRowMetadata v : BinlogRowMetadata.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } - if (model.wasPropertyExplicitlySet("timeZone")) { - this.timeZone(model.getTimeZone()); + } + + BinlogRowMetadata(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BinlogRowMetadata create(String key) { + if (map.containsKey(key)) { + return map.get(key); } - return this; + LOG.warn( + "Received unknown value '{}' for enum 'BinlogRowMetadata', returning UnknownEnumValue", + key); + return UnknownEnumValue; } + }; + /** + * Configures the amount of table metadata added to the binary log when using row-based logging. + * binlogRowMetadata corresponds to the MySQL binary logging system variable + * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogRowMetadata") + private final BinlogRowMetadata binlogRowMetadata; + + /** + * Configures the amount of table metadata added to the binary log when using row-based logging. + * binlogRowMetadata corresponds to the MySQL binary logging system variable + * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + * + * @return the value + */ + public BinlogRowMetadata getBinlogRowMetadata() { + return binlogRowMetadata; + } + + /** + * When set to PARTIAL_JSON, this enables use of a space-efficient binary log format for updates + * that modify only a small portion of a JSON document. binlogRowValueOptions corresponds to the + * MySQL binary logging system variable + * [binlog_row_value_options](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_value_options). + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogRowValueOptions") + private final String binlogRowValueOptions; + + /** + * When set to PARTIAL_JSON, this enables use of a space-efficient binary log format for updates + * that modify only a small portion of a JSON document. binlogRowValueOptions corresponds to the + * MySQL binary logging system variable + * [binlog_row_value_options](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_value_options). + * + * @return the value + */ + public String getBinlogRowValueOptions() { + return binlogRowValueOptions; + } + + /** + * Enables compression for transactions that are written to binary log files on this server. + * binlogTransactionCompression corresponds to the MySQL binary logging system variable + * [binlog_transaction_compression](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_transaction_compression). + */ + @com.fasterxml.jackson.annotation.JsonProperty("binlogTransactionCompression") + private final Boolean binlogTransactionCompression; + + /** + * Enables compression for transactions that are written to binary log files on this server. + * binlogTransactionCompression corresponds to the MySQL binary logging system variable + * [binlog_transaction_compression](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_transaction_compression). + * + * @return the value + */ + public Boolean getBinlogTransactionCompression() { + return binlogTransactionCompression; + } + + /** + * The size (in bytes) of the buffer pool, that is, the memory area where InnoDB caches table + * and index data. + * + *

innodbBufferPoolSize corresponds to the MySQL server system variable + * [innodb_buffer_pool_size](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size). + * + *

The default and maximum values depend on the amount of RAM provisioned by the shape. See + * [Default User + * Variables](https://docs.cloud.oracle.com/mysql-database/doc/configuring-db-system.html#GUID-B5504C19-F6F4-4DAB-8506-189A4E8F4A6A). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolSize") + private final Long innodbBufferPoolSize; + + /** + * The size (in bytes) of the buffer pool, that is, the memory area where InnoDB caches table + * and index data. + * + *

innodbBufferPoolSize corresponds to the MySQL server system variable + * [innodb_buffer_pool_size](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size). + * + *

The default and maximum values depend on the amount of RAM provisioned by the shape. See + * [Default User + * Variables](https://docs.cloud.oracle.com/mysql-database/doc/configuring-db-system.html#GUID-B5504C19-F6F4-4DAB-8506-189A4E8F4A6A). + * + * @return the value + */ + public Long getInnodbBufferPoolSize() { + return innodbBufferPoolSize; + } + + /** ("innodb_ft_result_cache_limit") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtResultCacheLimit") + private final Long innodbFtResultCacheLimit; + + /** + * ("innodb_ft_result_cache_limit") + * + * @return the value + */ + public Long getInnodbFtResultCacheLimit() { + return innodbFtResultCacheLimit; + } + + /** + * Sets the size of the transaction cache. + * + *

maxBinlogCacheSize corresponds to the MySQL server system variable + * [max_binlog_cache_size](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_cache_size). + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxBinlogCacheSize") + private final Long maxBinlogCacheSize; + + /** + * Sets the size of the transaction cache. + * + *

maxBinlogCacheSize corresponds to the MySQL server system variable + * [max_binlog_cache_size](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_cache_size). + * + * @return the value + */ + public Long getMaxBinlogCacheSize() { + return maxBinlogCacheSize; + } + + /** ("max_connect_errors") */ + @com.fasterxml.jackson.annotation.JsonProperty("maxConnectErrors") + private final Long maxConnectErrors; + + /** + * ("max_connect_errors") + * + * @return the value + */ + public Long getMaxConnectErrors() { + return maxConnectErrors; + } + + /** + * This variable sets the maximum size to which user-created MEMORY tables are permitted to + * grow. + * + *

maxHeapTableSize corresponds to the MySQL system variable + * [max_heap_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_heap_table_size) + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxHeapTableSize") + private final Long maxHeapTableSize; + + /** + * This variable sets the maximum size to which user-created MEMORY tables are permitted to + * grow. + * + *

maxHeapTableSize corresponds to the MySQL system variable + * [max_heap_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_heap_table_size) + * + * @return the value + */ + public Long getMaxHeapTableSize() { + return maxHeapTableSize; + } + + /** ("max_connections") */ + @com.fasterxml.jackson.annotation.JsonProperty("maxConnections") + private final Integer maxConnections; + + /** + * ("max_connections") + * + * @return the value + */ + public Integer getMaxConnections() { + return maxConnections; } - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); + /** ("max_prepared_stmt_count") */ + @com.fasterxml.jackson.annotation.JsonProperty("maxPreparedStmtCount") + private final Integer maxPreparedStmtCount; + + /** + * ("max_prepared_stmt_count") + * + * @return the value + */ + public Integer getMaxPreparedStmtCount() { + return maxPreparedStmtCount; } - public Builder toBuilder() { - return new Builder().copy(this); + /** + * The number of seconds that the mysqld server waits for a connect packet before responding + * with Bad handshake. + * + *

connectTimeout corresponds to the MySQL system variable + * [connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_connect_timeout) + * + *

Increasing the connect_timeout value might help if clients frequently encounter errors of + * the form "Lost connection to MySQL server at 'XXX', system error: errno". + */ + @com.fasterxml.jackson.annotation.JsonProperty("connectTimeout") + private final Integer connectTimeout; + + /** + * The number of seconds that the mysqld server waits for a connect packet before responding + * with Bad handshake. + * + *

connectTimeout corresponds to the MySQL system variable + * [connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_connect_timeout) + * + *

Increasing the connect_timeout value might help if clients frequently encounter errors of + * the form "Lost connection to MySQL server at 'XXX', system error: errno". + * + * @return the value + */ + public Integer getConnectTimeout() { + return connectTimeout; } - /** ("completion_type") */ - public enum CompletionType implements com.oracle.bmc.http.internal.BmcEnum { - NoChain("NO_CHAIN"), - Chain("CHAIN"), - Release("RELEASE"), + /** ("cte_max_recursion_depth") */ + @com.fasterxml.jackson.annotation.JsonProperty("cteMaxRecursionDepth") + private final Long cteMaxRecursionDepth; - /** - * 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); + /** + * ("cte_max_recursion_depth") + * + * @return the value + */ + public Long getCteMaxRecursionDepth() { + return cteMaxRecursionDepth; + } - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CompletionType.class); + /** + * ("generated_random_password_length") DEPRECATED -- variable should not be settable and will + * be ignored + */ + @com.fasterxml.jackson.annotation.JsonProperty("generatedRandomPasswordLength") + private final Integer generatedRandomPasswordLength; - private final String value; - private static java.util.Map map; + /** + * ("generated_random_password_length") DEPRECATED -- variable should not be settable and will + * be ignored + * + * @return the value + */ + public Integer getGeneratedRandomPasswordLength() { + return generatedRandomPasswordLength; + } - static { - map = new java.util.HashMap<>(); - for (CompletionType v : CompletionType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } + /** ("information_schema_stats_expiry") */ + @com.fasterxml.jackson.annotation.JsonProperty("informationSchemaStatsExpiry") + private final Integer informationSchemaStatsExpiry; - CompletionType(String value) { - this.value = value; - } + /** + * ("information_schema_stats_expiry") + * + * @return the value + */ + public Integer getInformationSchemaStatsExpiry() { + return informationSchemaStatsExpiry; + } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } + /** + * Specifies the percentage of the most recently used pages for each buffer pool to read out and + * dump. + * + *

innodbBufferPoolDumpPct corresponds to the MySQL InnoDB system variable + * [innodb_buffer_pool_dump_pct](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_dump_pct). + * + *

The range is 1 to 100. The default value is 25. + * + *

For example, if there are 4 buffer pools with 100 pages each, and + * innodb_buffer_pool_dump_pct is set to 25, the 25 most recently used pages from each buffer + * pool are dumped. + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolDumpPct") + private final Integer innodbBufferPoolDumpPct; - @com.fasterxml.jackson.annotation.JsonCreator - public static CompletionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'CompletionType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** ("completion_type") */ - @com.fasterxml.jackson.annotation.JsonProperty("completionType") - private final CompletionType completionType; + /** + * Specifies the percentage of the most recently used pages for each buffer pool to read out and + * dump. + * + *

innodbBufferPoolDumpPct corresponds to the MySQL InnoDB system variable + * [innodb_buffer_pool_dump_pct](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_dump_pct). + * + *

The range is 1 to 100. The default value is 25. + * + *

For example, if there are 4 buffer pools with 100 pages each, and + * innodb_buffer_pool_dump_pct is set to 25, the 25 most recently used pages from each buffer + * pool are dumped. + * + * @return the value + */ + public Integer getInnodbBufferPoolDumpPct() { + return innodbBufferPoolDumpPct; + } + + /** ("innodb_buffer_pool_instances") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolInstances") + private final Integer innodbBufferPoolInstances; /** - * ("completion_type") + * ("innodb_buffer_pool_instances") + * + * @return the value + */ + public Integer getInnodbBufferPoolInstances() { + return innodbBufferPoolInstances; + } + + /** + * innodbDdlBufferSize corresponds to the MySQL system variable [innodb_ddl_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_buffer_size) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbDdlBufferSize") + private final Long innodbDdlBufferSize; + + /** + * innodbDdlBufferSize corresponds to the MySQL system variable [innodb_ddl_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_buffer_size) + * + * @return the value + */ + public Long getInnodbDdlBufferSize() { + return innodbDdlBufferSize; + } + + /** + * innodbDdlThreads corresponds to the MySQL system variable [innodb_ddl_threads] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_threads) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbDdlThreads") + private final Integer innodbDdlThreads; + + /** + * innodbDdlThreads corresponds to the MySQL system variable [innodb_ddl_threads] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_threads) + * + * @return the value + */ + public Integer getInnodbDdlThreads() { + return innodbDdlThreads; + } + + /** ("innodb_ft_max_token_size") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtMaxTokenSize") + private final Integer innodbFtMaxTokenSize; + + /** + * ("innodb_ft_max_token_size") + * + * @return the value + */ + public Integer getInnodbFtMaxTokenSize() { + return innodbFtMaxTokenSize; + } + + /** ("innodb_ft_min_token_size") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtMinTokenSize") + private final Integer innodbFtMinTokenSize; + + /** + * ("innodb_ft_min_token_size") + * + * @return the value + */ + public Integer getInnodbFtMinTokenSize() { + return innodbFtMinTokenSize; + } + + /** ("innodb_ft_num_word_optimize") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbFtNumWordOptimize") + private final Integer innodbFtNumWordOptimize; + + /** + * ("innodb_ft_num_word_optimize") + * + * @return the value + */ + public Integer getInnodbFtNumWordOptimize() { + return innodbFtNumWordOptimize; + } + + /** ("innodb_lock_wait_timeout") */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbLockWaitTimeout") + private final Integer innodbLockWaitTimeout; + + /** + * ("innodb_lock_wait_timeout") * * @return the value */ - public CompletionType getCompletionType() { - return completionType; + public Integer getInnodbLockWaitTimeout() { + return innodbLockWaitTimeout; } /** - * If enabled, the server stores all temporary tables on disk rather than in memory. + * The desired maximum purge lag in terms of transactions. * - *

bigTables corresponds to the MySQL server variable - * [big_tables](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_big_tables). + *

InnoDB maintains a list of transactions that have index records delete-marked by UPDATE or + * DELETE operations. The length of the list is the purge lag. + * + *

If this value is exceeded, a delay is imposed on INSERT, UPDATE, and DELETE operations to + * allow time for purge to catch up. + * + *

The default value is 0, which means there is no maximum purge lag and no delay. + * + *

innodbMaxPurgeLag corresponds to the MySQL server system variable + * [innodb_max_purge_lag](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag). */ - @com.fasterxml.jackson.annotation.JsonProperty("bigTables") - private final Boolean bigTables; + @com.fasterxml.jackson.annotation.JsonProperty("innodbMaxPurgeLag") + private final Long innodbMaxPurgeLag; /** - * If enabled, the server stores all temporary tables on disk rather than in memory. + * The desired maximum purge lag in terms of transactions. * - *

bigTables corresponds to the MySQL server variable - * [big_tables](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_big_tables). + *

InnoDB maintains a list of transactions that have index records delete-marked by UPDATE or + * DELETE operations. The length of the list is the purge lag. + * + *

If this value is exceeded, a delay is imposed on INSERT, UPDATE, and DELETE operations to + * allow time for purge to catch up. + * + *

The default value is 0, which means there is no maximum purge lag and no delay. + * + *

innodbMaxPurgeLag corresponds to the MySQL server system variable + * [innodb_max_purge_lag](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag). * * @return the value */ - public Boolean getBigTables() { - return bigTables; + public Long getInnodbMaxPurgeLag() { + return innodbMaxPurgeLag; } /** - * Set the chunking size for updates to the global memory usage counter - * Global_connection_memory. + * The maximum delay in microseconds for the delay imposed when the innodb_max_purge_lag + * threshold is exceeded. * - *

connectionMemoryChunkSize corresponds to the MySQL system variable - * [connection_memory_chunk_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_chunk_size). + *

The specified innodb_max_purge_lag_delay value is an upper limit on the delay period. + * + *

innodbMaxPurgeLagDelay corresponds to the MySQL server system variable + * [innodb_max_purge_lag_delay](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag_delay). */ - @com.fasterxml.jackson.annotation.JsonProperty("connectionMemoryChunkSize") - private final Integer connectionMemoryChunkSize; + @com.fasterxml.jackson.annotation.JsonProperty("innodbMaxPurgeLagDelay") + private final Integer innodbMaxPurgeLagDelay; /** - * Set the chunking size for updates to the global memory usage counter - * Global_connection_memory. + * The maximum delay in microseconds for the delay imposed when the innodb_max_purge_lag + * threshold is exceeded. * - *

connectionMemoryChunkSize corresponds to the MySQL system variable - * [connection_memory_chunk_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_chunk_size). + *

The specified innodb_max_purge_lag_delay value is an upper limit on the delay period. + * + *

innodbMaxPurgeLagDelay corresponds to the MySQL server system variable + * [innodb_max_purge_lag_delay](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag_delay). * * @return the value */ - public Integer getConnectionMemoryChunkSize() { - return connectionMemoryChunkSize; + public Integer getInnodbMaxPurgeLagDelay() { + return innodbMaxPurgeLagDelay; } /** - * Set the maximum amount of memory that can be used by a single user connection. + * The number of seconds the server waits for activity on an interactive connection before + * closing it. * - *

connectionMemoryLimit corresponds to the MySQL system variable - * [connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_limit). + *

interactiveTimeout corresponds to the MySQL system variable. + * [interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_interactive_timeout) */ - @com.fasterxml.jackson.annotation.JsonProperty("connectionMemoryLimit") - private final Long connectionMemoryLimit; + @com.fasterxml.jackson.annotation.JsonProperty("interactiveTimeout") + private final Integer interactiveTimeout; /** - * Set the maximum amount of memory that can be used by a single user connection. + * The number of seconds the server waits for activity on an interactive connection before + * closing it. * - *

connectionMemoryLimit corresponds to the MySQL system variable - * [connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_connection_memory_limit). + *

interactiveTimeout corresponds to the MySQL system variable. + * [interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_interactive_timeout) * * @return the value */ - public Long getConnectionMemoryLimit() { - return connectionMemoryLimit; + public Integer getInteractiveTimeout() { + return interactiveTimeout; } - /** ("default_authentication_plugin") */ - public enum DefaultAuthenticationPlugin implements com.oracle.bmc.http.internal.BmcEnum { - MysqlNativePassword("mysql_native_password"), - Sha256Password("sha256_password"), - CachingSha2Password("caching_sha2_password"), - - /** - * 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(DefaultAuthenticationPlugin.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DefaultAuthenticationPlugin v : DefaultAuthenticationPlugin.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DefaultAuthenticationPlugin(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DefaultAuthenticationPlugin create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DefaultAuthenticationPlugin', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** ("default_authentication_plugin") */ - @com.fasterxml.jackson.annotation.JsonProperty("defaultAuthenticationPlugin") - private final DefaultAuthenticationPlugin defaultAuthenticationPlugin; - /** - * ("default_authentication_plugin") + * The number of index pages to sample when estimating cardinality and other statistics for an + * indexed column, such as those calculated by ANALYZE TABLE. * - * @return the value - */ - public DefaultAuthenticationPlugin getDefaultAuthenticationPlugin() { - return defaultAuthenticationPlugin; - } - - /** - * Set the total amount of memory that can be used by all user connections. + *

innodbStatsPersistentSamplePages corresponds to the MySQL InnoDB system variable + * [innodb_stats_persistent_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_persistent_sample_pages) * - *

globalConnectionMemoryLimit corresponds to the MySQL system variable - * [global_connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_limit). + *

innodb_stats_persistent_sample_pages only applies when innodb_stats_persistent is enabled + * for a table; when innodb_stats_persistent is disabled, innodb_stats_transient_sample_pages + * applies instead. */ - @com.fasterxml.jackson.annotation.JsonProperty("globalConnectionMemoryLimit") - private final Long globalConnectionMemoryLimit; + @com.fasterxml.jackson.annotation.JsonProperty("innodbStatsPersistentSamplePages") + private final Long innodbStatsPersistentSamplePages; /** - * Set the total amount of memory that can be used by all user connections. + * The number of index pages to sample when estimating cardinality and other statistics for an + * indexed column, such as those calculated by ANALYZE TABLE. * - *

globalConnectionMemoryLimit corresponds to the MySQL system variable - * [global_connection_memory_limit](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_limit). + *

innodbStatsPersistentSamplePages corresponds to the MySQL InnoDB system variable + * [innodb_stats_persistent_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_persistent_sample_pages) + * + *

innodb_stats_persistent_sample_pages only applies when innodb_stats_persistent is enabled + * for a table; when innodb_stats_persistent is disabled, innodb_stats_transient_sample_pages + * applies instead. * * @return the value */ - public Long getGlobalConnectionMemoryLimit() { - return globalConnectionMemoryLimit; + public Long getInnodbStatsPersistentSamplePages() { + return innodbStatsPersistentSamplePages; } /** - * Determines whether the MySQL server calculates Global_connection_memory. + * The number of index pages to sample when estimating cardinality and other statistics for an + * indexed column, such as those calculated by [ANALYZE + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html). * - *

globalConnectionMemoryTracking corresponds to the MySQL system variable - * [global_connection_memory_tracking](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_tracking). + *

innodbStatsTransientSamplePages corresponds to the MySQL InnoDB system variable + * [innodb_stats_transient_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_transient_sample_pages) + * + *

innodb_stats_transient_sample_pages only applies when innodb_stats_persistent is disabled + * for a table; when innodb_stats_persistent is enabled, innodb_stats_persistent_sample_pages + * applies instead. + * + *

innodb_stats_persistent is ON by default and cannot be changed. It is possible to override + * it using the STATS_PERSISTENT clause of the [CREATE + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/create-table.html) and [ALTER + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/alter-table.html) statements. */ - @com.fasterxml.jackson.annotation.JsonProperty("globalConnectionMemoryTracking") - private final Boolean globalConnectionMemoryTracking; + @com.fasterxml.jackson.annotation.JsonProperty("innodbStatsTransientSamplePages") + private final Long innodbStatsTransientSamplePages; /** - * Determines whether the MySQL server calculates Global_connection_memory. + * The number of index pages to sample when estimating cardinality and other statistics for an + * indexed column, such as those calculated by [ANALYZE + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html). * - *

globalConnectionMemoryTracking corresponds to the MySQL system variable - * [global_connection_memory_tracking](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_global_connection_memory_tracking). + *

innodbStatsTransientSamplePages corresponds to the MySQL InnoDB system variable + * [innodb_stats_transient_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_transient_sample_pages) + * + *

innodb_stats_transient_sample_pages only applies when innodb_stats_persistent is disabled + * for a table; when innodb_stats_persistent is enabled, innodb_stats_persistent_sample_pages + * applies instead. + * + *

innodb_stats_persistent is ON by default and cannot be changed. It is possible to override + * it using the STATS_PERSISTENT clause of the [CREATE + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/create-table.html) and [ALTER + * TABLE](https://dev.mysql.com/doc/refman/8.0/en/alter-table.html) statements. * * @return the value - */ - public Boolean getGlobalConnectionMemoryTracking() { - return globalConnectionMemoryTracking; - } - - /** ("transaction_isolation") */ - public enum TransactionIsolation implements com.oracle.bmc.http.internal.BmcEnum { - ReadUncommitted("READ-UNCOMMITTED"), - ReadCommited("READ-COMMITED"), - ReadCommitted("READ-COMMITTED"), - RepeatableRead("REPEATABLE-READ"), - Serializable("SERIALIZABLE"), - - /** - * 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(TransactionIsolation.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (TransactionIsolation v : TransactionIsolation.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - TransactionIsolation(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } + */ + public Long getInnodbStatsTransientSamplePages() { + return innodbStatsTransientSamplePages; + } - @com.fasterxml.jackson.annotation.JsonCreator - public static TransactionIsolation create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'TransactionIsolation', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** ("transaction_isolation") */ - @com.fasterxml.jackson.annotation.JsonProperty("transactionIsolation") - private final TransactionIsolation transactionIsolation; + /** + * When you enable innodbStrictMode, the InnoDB storage engine returns errors instead of + * warnings for invalid or incompatible table options. + * + *

innodbStrictMode corresponds to the MySQL InnoDB system variable + * [innodb_strict_mode](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_strict_mode) + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbStrictMode") + private final Boolean innodbStrictMode; /** - * ("transaction_isolation") + * When you enable innodbStrictMode, the InnoDB storage engine returns errors instead of + * warnings for invalid or incompatible table options. + * + *

innodbStrictMode corresponds to the MySQL InnoDB system variable + * [innodb_strict_mode](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_strict_mode) * * @return the value */ - public TransactionIsolation getTransactionIsolation() { - return transactionIsolation; + public Boolean getInnodbStrictMode() { + return innodbStrictMode; } - /** ("innodb_ft_server_stopword_table") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtServerStopwordTable") - private final String innodbFtServerStopwordTable; + /** + * The maximum size of one packet or any generated/intermediate string. + * + *

This is the mysql variable "max_allowed_packet". + */ + @com.fasterxml.jackson.annotation.JsonProperty("maxAllowedPacket") + private final Integer maxAllowedPacket; /** - * ("innodb_ft_server_stopword_table") + * The maximum size of one packet or any generated/intermediate string. + * + *

This is the mysql variable "max_allowed_packet". * * @return the value */ - public String getInnodbFtServerStopwordTable() { - return innodbFtServerStopwordTable; + public Integer getMaxAllowedPacket() { + return maxAllowedPacket; } - /** ("mandatory_roles") */ - @com.fasterxml.jackson.annotation.JsonProperty("mandatoryRoles") - private final String mandatoryRoles; + /** ("max_execution_time") */ + @com.fasterxml.jackson.annotation.JsonProperty("maxExecutionTime") + private final Long maxExecutionTime; /** - * ("mandatory_roles") + * ("max_execution_time") * * @return the value */ - public String getMandatoryRoles() { - return mandatoryRoles; + public Long getMaxExecutionTime() { + return maxExecutionTime; } - /** ("autocommit") */ - @com.fasterxml.jackson.annotation.JsonProperty("autocommit") - private final Boolean autocommit; + /** + * The number of seconds X Plugin waits for the first packet to be received from newly connected + * clients. + * + *

mysqlxConnectTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_connect_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxConnectTimeout") + private final Integer mysqlxConnectTimeout; /** - * ("autocommit") + * The number of seconds X Plugin waits for the first packet to be received from newly connected + * clients. + * + *

mysqlxConnectTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_connect_timeout) * * @return the value */ - public Boolean getAutocommit() { - return autocommit; + public Integer getMysqlxConnectTimeout() { + return mysqlxConnectTimeout; } - /** ("foreign_key_checks") */ - @com.fasterxml.jackson.annotation.JsonProperty("foreignKeyChecks") - private final Boolean foreignKeyChecks; + /** + * ("mysqlx_document_id_unique_prefix") DEPRECATED -- variable should not be settable and will + * be ignored + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDocumentIdUniquePrefix") + private final Integer mysqlxDocumentIdUniquePrefix; /** - * ("foreign_key_checks") + * ("mysqlx_document_id_unique_prefix") DEPRECATED -- variable should not be settable and will + * be ignored * * @return the value */ - public Boolean getForeignKeyChecks() { - return foreignKeyChecks; + public Integer getMysqlxDocumentIdUniquePrefix() { + return mysqlxDocumentIdUniquePrefix; } /** - * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied - * before executing. A RW transaction does not wait for other members to apply a transaction. - * This means that a transaction could be externalized on one member before the others. This - * also means that in the event of a primary failover, the new primary can accept new RO and RW - * transactions before the previous primary transactions are all applied. RO transactions could - * result in outdated values, RW transactions could result in a rollback due to conflicts. - - * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is - * applying backlog from the old primary are held (not applied) until any backlog has been - * applied. This ensures that when a primary failover happens, intentionally or not, clients - * always see the latest value on the primary. This guarantees consistency, but means that - * clients must be able to handle the delay in the event that a backlog is being applied. - * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A - * RW transaction waits for all preceding transactions to complete before being applied. A RO - * transaction waits for all preceding transactions to complete before being executed. This - * ensures that this transaction reads the latest value by only affecting the latency of the - * transaction. This reduces the overhead of synchronization on every RW transaction, by - * ensuring synchronization is used only on RO transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW - * transaction waits until its changes have been applied to all of the other members. This value - * has no effect on RO transactions. This mode ensures that when a transaction is committed on - * the local member, any subsequent transaction reads the written value or a more recent value - * on any group member. Use this mode with a group that is used for predominantly RO operations - * to ensure that applied RW transactions are applied everywhere once they commit. This could be - * used by your application to ensure that subsequent reads fetch the latest data which includes - * the latest writes. This reduces the overhead of synchronization on every RO transaction, by - * ensuring synchronization is used only on RW transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - - * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before - * being applied and 2) until its changes have been applied on other members. A RO transaction - * waits for all preceding transactions to complete before execution takes place. This - * consistency level also includes the consistency guarantees provided by - * BEFORE_ON_PRIMARY_FAILOVER. + * ("mysqlx_idle_worker_thread_timeout") DEPRECATED -- variable should not be settable and will + * be ignored */ - public enum GroupReplicationConsistency implements com.oracle.bmc.http.internal.BmcEnum { - Eventual("EVENTUAL"), - BeforeOnPrimaryFailover("BEFORE_ON_PRIMARY_FAILOVER"), - Before("BEFORE"), - After("AFTER"), - BeforeAndAfter("BEFORE_AND_AFTER"), - - /** - * 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(GroupReplicationConsistency.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (GroupReplicationConsistency v : GroupReplicationConsistency.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - GroupReplicationConsistency(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxIdleWorkerThreadTimeout") + private final Integer mysqlxIdleWorkerThreadTimeout; - @com.fasterxml.jackson.annotation.JsonCreator - public static GroupReplicationConsistency create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'GroupReplicationConsistency', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** - * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied - * before executing. A RW transaction does not wait for other members to apply a transaction. - * This means that a transaction could be externalized on one member before the others. This - * also means that in the event of a primary failover, the new primary can accept new RO and RW - * transactions before the previous primary transactions are all applied. RO transactions could - * result in outdated values, RW transactions could result in a rollback due to conflicts. - - * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is - * applying backlog from the old primary are held (not applied) until any backlog has been - * applied. This ensures that when a primary failover happens, intentionally or not, clients - * always see the latest value on the primary. This guarantees consistency, but means that - * clients must be able to handle the delay in the event that a backlog is being applied. - * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A - * RW transaction waits for all preceding transactions to complete before being applied. A RO - * transaction waits for all preceding transactions to complete before being executed. This - * ensures that this transaction reads the latest value by only affecting the latency of the - * transaction. This reduces the overhead of synchronization on every RW transaction, by - * ensuring synchronization is used only on RO transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW - * transaction waits until its changes have been applied to all of the other members. This value - * has no effect on RO transactions. This mode ensures that when a transaction is committed on - * the local member, any subsequent transaction reads the written value or a more recent value - * on any group member. Use this mode with a group that is used for predominantly RO operations - * to ensure that applied RW transactions are applied everywhere once they commit. This could be - * used by your application to ensure that subsequent reads fetch the latest data which includes - * the latest writes. This reduces the overhead of synchronization on every RO transaction, by - * ensuring synchronization is used only on RW transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - - * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before - * being applied and 2) until its changes have been applied on other members. A RO transaction - * waits for all preceding transactions to complete before execution takes place. This - * consistency level also includes the consistency guarantees provided by - * BEFORE_ON_PRIMARY_FAILOVER. + * ("mysqlx_idle_worker_thread_timeout") DEPRECATED -- variable should not be settable and will + * be ignored + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("groupReplicationConsistency") - private final GroupReplicationConsistency groupReplicationConsistency; + public Integer getMysqlxIdleWorkerThreadTimeout() { + return mysqlxIdleWorkerThreadTimeout; + } /** - * - EVENTUAL: Both RO and RW transactions do not wait for preceding transactions to be applied - * before executing. A RW transaction does not wait for other members to apply a transaction. - * This means that a transaction could be externalized on one member before the others. This - * also means that in the event of a primary failover, the new primary can accept new RO and RW - * transactions before the previous primary transactions are all applied. RO transactions could - * result in outdated values, RW transactions could result in a rollback due to conflicts. - - * BEFORE_ON_PRIMARY_FAILOVER: New RO or RW transactions with a newly elected primary that is - * applying backlog from the old primary are held (not applied) until any backlog has been - * applied. This ensures that when a primary failover happens, intentionally or not, clients - * always see the latest value on the primary. This guarantees consistency, but means that - * clients must be able to handle the delay in the event that a backlog is being applied. - * Usually this delay should be minimal, but does depend on the size of the backlog. - BEFORE: A - * RW transaction waits for all preceding transactions to complete before being applied. A RO - * transaction waits for all preceding transactions to complete before being executed. This - * ensures that this transaction reads the latest value by only affecting the latency of the - * transaction. This reduces the overhead of synchronization on every RW transaction, by - * ensuring synchronization is used only on RO transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - AFTER: A RW - * transaction waits until its changes have been applied to all of the other members. This value - * has no effect on RO transactions. This mode ensures that when a transaction is committed on - * the local member, any subsequent transaction reads the written value or a more recent value - * on any group member. Use this mode with a group that is used for predominantly RO operations - * to ensure that applied RW transactions are applied everywhere once they commit. This could be - * used by your application to ensure that subsequent reads fetch the latest data which includes - * the latest writes. This reduces the overhead of synchronization on every RO transaction, by - * ensuring synchronization is used only on RW transactions. This consistency level also - * includes the consistency guarantees provided by BEFORE_ON_PRIMARY_FAILOVER. - - * BEFORE_AND_AFTER: A RW transaction waits for 1) all preceding transactions to complete before - * being applied and 2) until its changes have been applied on other members. A RO transaction - * waits for all preceding transactions to complete before execution takes place. This - * consistency level also includes the consistency guarantees provided by - * BEFORE_ON_PRIMARY_FAILOVER. + * The number of seconds to wait for interactive clients to timeout. + * + *

mysqlxInteractiveTimeout corresponds to the MySQL X Plugin system variable. + * [mysqlx_interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_interactive_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxInteractiveTimeout") + private final Integer mysqlxInteractiveTimeout; + + /** + * The number of seconds to wait for interactive clients to timeout. + * + *

mysqlxInteractiveTimeout corresponds to the MySQL X Plugin system variable. + * [mysqlx_interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_interactive_timeout) * * @return the value */ - public GroupReplicationConsistency getGroupReplicationConsistency() { - return groupReplicationConsistency; + public Integer getMysqlxInteractiveTimeout() { + return mysqlxInteractiveTimeout; } - /** ("innodb_ft_enable_stopword") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtEnableStopword") - private final Boolean innodbFtEnableStopword; + /** + * The maximum size of network packets that can be received by X Plugin. + * + *

This is the mysql variable "mysqlx_max_allowed_packet". + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxMaxAllowedPacket") + private final Integer mysqlxMaxAllowedPacket; /** - * ("innodb_ft_enable_stopword") + * The maximum size of network packets that can be received by X Plugin. + * + *

This is the mysql variable "mysqlx_max_allowed_packet". * * @return the value */ - public Boolean getInnodbFtEnableStopword() { - return innodbFtEnableStopword; + public Integer getMysqlxMaxAllowedPacket() { + return mysqlxMaxAllowedPacket; } /** - * Enables dedicated log writer threads for writing redo log records from the log buffer to the - * system buffers and flushing the system buffers to the redo log files. + * ("mysqlx_min_worker_threads") DEPRECATED -- variable should not be settable and will be + * ignored + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxMinWorkerThreads") + private final Integer mysqlxMinWorkerThreads; + + /** + * ("mysqlx_min_worker_threads") DEPRECATED -- variable should not be settable and will be + * ignored * - *

This is the MySQL variable "innodb_log_writer_threads". For more information, please see - * the [MySQL - * documentation](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_log_writer_threads) + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbLogWriterThreads") - private final Boolean innodbLogWriterThreads; + public Integer getMysqlxMinWorkerThreads() { + return mysqlxMinWorkerThreads; + } /** - * Enables dedicated log writer threads for writing redo log records from the log buffer to the - * system buffers and flushing the system buffers to the redo log files. + * The number of seconds that X Plugin waits for blocking read operations to complete. After + * this time, if the read operation is not successful, X Plugin closes the connection and + * returns a warning notice with the error code ER_IO_READ_ERROR to the client application. * - *

This is the MySQL variable "innodb_log_writer_threads". For more information, please see - * the [MySQL - * documentation](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_log_writer_threads) + *

mysqlxReadTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_read_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxReadTimeout") + private final Integer mysqlxReadTimeout; + + /** + * The number of seconds that X Plugin waits for blocking read operations to complete. After + * this time, if the read operation is not successful, X Plugin closes the connection and + * returns a warning notice with the error code ER_IO_READ_ERROR to the client application. + * + *

mysqlxReadTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_read_timeout) * * @return the value */ - public Boolean getInnodbLogWriterThreads() { - return innodbLogWriterThreads; + public Integer getMysqlxReadTimeout() { + return mysqlxReadTimeout; } - /** ("local_infile") */ - @com.fasterxml.jackson.annotation.JsonProperty("localInfile") - private final Boolean localInfile; + /** + * The number of seconds that X Plugin waits for activity on a connection. + * + *

mysqlxWaitTimeout corresponds to the MySQL X Plugin system variable. + * [mysqlx_wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_wait_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxWaitTimeout") + private final Integer mysqlxWaitTimeout; /** - * ("local_infile") + * The number of seconds that X Plugin waits for activity on a connection. + * + *

mysqlxWaitTimeout corresponds to the MySQL X Plugin system variable. + * [mysqlx_wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_wait_timeout) * * @return the value */ - public Boolean getLocalInfile() { - return localInfile; + public Integer getMysqlxWaitTimeout() { + return mysqlxWaitTimeout; } - /** ("mysql_firewall_mode") */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlFirewallMode") - private final Boolean mysqlFirewallMode; + /** + * The number of seconds that X Plugin waits for blocking write operations to complete. After + * this time, if the write operation is not successful, X Plugin closes the connection. + * + *

mysqlxReadmysqlxWriteTimeoutTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_write_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxWriteTimeout") + private final Integer mysqlxWriteTimeout; /** - * ("mysql_firewall_mode") + * The number of seconds that X Plugin waits for blocking write operations to complete. After + * this time, if the write operation is not successful, X Plugin closes the connection. + * + *

mysqlxReadmysqlxWriteTimeoutTimeout corresponds to the MySQL X Plugin system variable + * [mysqlx_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_write_timeout) * * @return the value */ - public Boolean getMysqlFirewallMode() { - return mysqlFirewallMode; + public Integer getMysqlxWriteTimeout() { + return mysqlxWriteTimeout; } /** - * ("mysqlx_enable_hello_notice") DEPRECATED -- variable should not be settable and will be - * ignored + * The number of seconds to wait for more data from a connection before aborting the read. + * + *

netReadTimeout corresponds to the MySQL system variable + * [net_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_read_timeout) */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxEnableHelloNotice") - private final Boolean mysqlxEnableHelloNotice; + @com.fasterxml.jackson.annotation.JsonProperty("netReadTimeout") + private final Integer netReadTimeout; /** - * ("mysqlx_enable_hello_notice") DEPRECATED -- variable should not be settable and will be - * ignored + * The number of seconds to wait for more data from a connection before aborting the read. + * + *

netReadTimeout corresponds to the MySQL system variable + * [net_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_read_timeout) * * @return the value */ - public Boolean getMysqlxEnableHelloNotice() { - return mysqlxEnableHelloNotice; + public Integer getNetReadTimeout() { + return netReadTimeout; } - /** ("sql_require_primary_key") */ - @com.fasterxml.jackson.annotation.JsonProperty("sqlRequirePrimaryKey") - private final Boolean sqlRequirePrimaryKey; + /** + * The number of seconds to wait for a block to be written to a connection before aborting the + * write. + * + *

netWriteTimeout corresponds to the MySQL system variable + * [net_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_write_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("netWriteTimeout") + private final Integer netWriteTimeout; /** - * ("sql_require_primary_key") + * The number of seconds to wait for a block to be written to a connection before aborting the + * write. + * + *

netWriteTimeout corresponds to the MySQL system variable + * [net_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_write_timeout) * * @return the value */ - public Boolean getSqlRequirePrimaryKey() { - return sqlRequirePrimaryKey; + public Integer getNetWriteTimeout() { + return netWriteTimeout; } - /** ("sql_warnings") */ - @com.fasterxml.jackson.annotation.JsonProperty("sqlWarnings") - private final Boolean sqlWarnings; + /** ("parser_max_mem_size") */ + @com.fasterxml.jackson.annotation.JsonProperty("parserMaxMemSize") + private final Long parserMaxMemSize; /** - * ("sql_warnings") + * ("parser_max_mem_size") * * @return the value */ - public Boolean getSqlWarnings() { - return sqlWarnings; + public Long getParserMaxMemSize() { + return parserMaxMemSize; } /** - * Sets the binary log expiration period in seconds. binlogExpireLogsSeconds corresponds to the - * MySQL binary logging system variable - * [binlog_expire_logs_seconds](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds). + * ("query_alloc_block_size") DEPRECATED -- variable should not be settable and will be ignored */ - @com.fasterxml.jackson.annotation.JsonProperty("binlogExpireLogsSeconds") - private final Integer binlogExpireLogsSeconds; + @com.fasterxml.jackson.annotation.JsonProperty("queryAllocBlockSize") + private final Long queryAllocBlockSize; /** - * Sets the binary log expiration period in seconds. binlogExpireLogsSeconds corresponds to the - * MySQL binary logging system variable - * [binlog_expire_logs_seconds](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds). + * ("query_alloc_block_size") DEPRECATED -- variable should not be settable and will be ignored * * @return the value */ - public Integer getBinlogExpireLogsSeconds() { - return binlogExpireLogsSeconds; + public Long getQueryAllocBlockSize() { + return queryAllocBlockSize; } + /** ("query_prealloc_size") DEPRECATED -- variable should not be settable and will be ignored */ + @com.fasterxml.jackson.annotation.JsonProperty("queryPreallocSize") + private final Long queryPreallocSize; + /** - * Configures the amount of table metadata added to the binary log when using row-based logging. - * binlogRowMetadata corresponds to the MySQL binary logging system variable - * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + * ("query_prealloc_size") DEPRECATED -- variable should not be settable and will be ignored + * + * @return the value */ - public enum BinlogRowMetadata implements com.oracle.bmc.http.internal.BmcEnum { - Full("FULL"), - Minimal("MINIMAL"), - - /** - * 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(BinlogRowMetadata.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (BinlogRowMetadata v : BinlogRowMetadata.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - BinlogRowMetadata(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } + public Long getQueryPreallocSize() { + return queryPreallocSize; + } - @com.fasterxml.jackson.annotation.JsonCreator - public static BinlogRowMetadata create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'BinlogRowMetadata', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; /** - * Configures the amount of table metadata added to the binary log when using row-based logging. - * binlogRowMetadata corresponds to the MySQL binary logging system variable - * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + * regexpTimeLimit corresponds to the MySQL system variable [regexp_time_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_regexp_time_limit) */ - @com.fasterxml.jackson.annotation.JsonProperty("binlogRowMetadata") - private final BinlogRowMetadata binlogRowMetadata; + @com.fasterxml.jackson.annotation.JsonProperty("regexpTimeLimit") + private final Integer regexpTimeLimit; /** - * Configures the amount of table metadata added to the binary log when using row-based logging. - * binlogRowMetadata corresponds to the MySQL binary logging system variable - * [binlog_row_metadata](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata). + * regexpTimeLimit corresponds to the MySQL system variable [regexp_time_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_regexp_time_limit) * * @return the value */ - public BinlogRowMetadata getBinlogRowMetadata() { - return binlogRowMetadata; + public Integer getRegexpTimeLimit() { + return regexpTimeLimit; } - /** - * When set to PARTIAL_JSON, this enables use of a space-efficient binary log format for updates - * that modify only a small portion of a JSON document. binlogRowValueOptions corresponds to the - * MySQL binary logging system variable - * [binlog_row_value_options](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_value_options). - */ - @com.fasterxml.jackson.annotation.JsonProperty("binlogRowValueOptions") - private final String binlogRowValueOptions; + /** ("sql_mode") */ + @com.fasterxml.jackson.annotation.JsonProperty("sqlMode") + private final String sqlMode; /** - * When set to PARTIAL_JSON, this enables use of a space-efficient binary log format for updates - * that modify only a small portion of a JSON document. binlogRowValueOptions corresponds to the - * MySQL binary logging system variable - * [binlog_row_value_options](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_value_options). + * ("sql_mode") * * @return the value */ - public String getBinlogRowValueOptions() { - return binlogRowValueOptions; + public String getSqlMode() { + return sqlMode; } /** - * Enables compression for transactions that are written to binary log files on this server. - * binlogTransactionCompression corresponds to the MySQL binary logging system variable - * [binlog_transaction_compression](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_transaction_compression). + * The maximum size of internal in-memory temporary tables. This variable does not apply to + * user-created MEMORY tables. + * + *

tmp_table_size corresponds to the MySQL system variable + * [tmp_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmp_table_size) */ - @com.fasterxml.jackson.annotation.JsonProperty("binlogTransactionCompression") - private final Boolean binlogTransactionCompression; + @com.fasterxml.jackson.annotation.JsonProperty("tmpTableSize") + private final Long tmpTableSize; /** - * Enables compression for transactions that are written to binary log files on this server. - * binlogTransactionCompression corresponds to the MySQL binary logging system variable - * [binlog_transaction_compression](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_transaction_compression). + * The maximum size of internal in-memory temporary tables. This variable does not apply to + * user-created MEMORY tables. + * + *

tmp_table_size corresponds to the MySQL system variable + * [tmp_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmp_table_size) * * @return the value */ - public Boolean getBinlogTransactionCompression() { - return binlogTransactionCompression; + public Long getTmpTableSize() { + return tmpTableSize; } /** - * The size (in bytes) of the buffer pool, that is, the memory area where InnoDB caches table - * and index data. - * - *

innodbBufferPoolSize corresponds to the MySQL server system variable - * [innodb_buffer_pool_size](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size). - * - *

The default and maximum values depend on the amount of RAM provisioned by the shape. See - * [Default User - * Variables](https://docs.cloud.oracle.com/mysql-database/doc/configuring-db-system.html#GUID-B5504C19-F6F4-4DAB-8506-189A4E8F4A6A). + * Set the default compression level for the deflate algorithm. + * ("mysqlx_deflate_default_compression_level") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolSize") - private final Long innodbBufferPoolSize; + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDeflateDefaultCompressionLevel") + private final Integer mysqlxDeflateDefaultCompressionLevel; /** - * The size (in bytes) of the buffer pool, that is, the memory area where InnoDB caches table - * and index data. - * - *

innodbBufferPoolSize corresponds to the MySQL server system variable - * [innodb_buffer_pool_size](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_buffer_pool_size). - * - *

The default and maximum values depend on the amount of RAM provisioned by the shape. See - * [Default User - * Variables](https://docs.cloud.oracle.com/mysql-database/doc/configuring-db-system.html#GUID-B5504C19-F6F4-4DAB-8506-189A4E8F4A6A). + * Set the default compression level for the deflate algorithm. + * ("mysqlx_deflate_default_compression_level") * * @return the value */ - public Long getInnodbBufferPoolSize() { - return innodbBufferPoolSize; + public Integer getMysqlxDeflateDefaultCompressionLevel() { + return mysqlxDeflateDefaultCompressionLevel; } - /** ("innodb_ft_result_cache_limit") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtResultCacheLimit") - private final Long innodbFtResultCacheLimit; + /** + * Limit the upper bound of accepted compression levels for the deflate algorithm. + * ("mysqlx_deflate_max_client_compression_level") + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDeflateMaxClientCompressionLevel") + private final Integer mysqlxDeflateMaxClientCompressionLevel; /** - * ("innodb_ft_result_cache_limit") + * Limit the upper bound of accepted compression levels for the deflate algorithm. + * ("mysqlx_deflate_max_client_compression_level") * * @return the value */ - public Long getInnodbFtResultCacheLimit() { - return innodbFtResultCacheLimit; + public Integer getMysqlxDeflateMaxClientCompressionLevel() { + return mysqlxDeflateMaxClientCompressionLevel; } /** - * Sets the size of the transaction cache. - * - *

maxBinlogCacheSize corresponds to the MySQL server system variable - * [max_binlog_cache_size](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_cache_size). + * Limit the upper bound of accepted compression levels for the lz4 algorithm. + * ("mysqlx_lz4_max_client_compression_level") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxBinlogCacheSize") - private final Long maxBinlogCacheSize; + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxLz4MaxClientCompressionLevel") + private final Integer mysqlxLz4MaxClientCompressionLevel; /** - * Sets the size of the transaction cache. - * - *

maxBinlogCacheSize corresponds to the MySQL server system variable - * [max_binlog_cache_size](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_cache_size). + * Limit the upper bound of accepted compression levels for the lz4 algorithm. + * ("mysqlx_lz4_max_client_compression_level") * * @return the value */ - public Long getMaxBinlogCacheSize() { - return maxBinlogCacheSize; + public Integer getMysqlxLz4MaxClientCompressionLevel() { + return mysqlxLz4MaxClientCompressionLevel; } - /** ("max_connect_errors") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxConnectErrors") - private final Long maxConnectErrors; + /** + * Set the default compression level for the lz4 algorithm. + * ("mysqlx_lz4_default_compression_level") + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxLz4DefaultCompressionLevel") + private final Integer mysqlxLz4DefaultCompressionLevel; /** - * ("max_connect_errors") + * Set the default compression level for the lz4 algorithm. + * ("mysqlx_lz4_default_compression_level") * * @return the value */ - public Long getMaxConnectErrors() { - return maxConnectErrors; + public Integer getMysqlxLz4DefaultCompressionLevel() { + return mysqlxLz4DefaultCompressionLevel; } /** - * This variable sets the maximum size to which user-created MEMORY tables are permitted to - * grow. - * - *

maxHeapTableSize corresponds to the MySQL system variable - * [max_heap_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_heap_table_size) + * Limit the upper bound of accepted compression levels for the zstd algorithm. + * ("mysqlx_zstd_max_client_compression_level") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxHeapTableSize") - private final Long maxHeapTableSize; + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxZstdMaxClientCompressionLevel") + private final Integer mysqlxZstdMaxClientCompressionLevel; /** - * This variable sets the maximum size to which user-created MEMORY tables are permitted to - * grow. - * - *

maxHeapTableSize corresponds to the MySQL system variable - * [max_heap_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_heap_table_size) + * Limit the upper bound of accepted compression levels for the zstd algorithm. + * ("mysqlx_zstd_max_client_compression_level") * * @return the value */ - public Long getMaxHeapTableSize() { - return maxHeapTableSize; + public Integer getMysqlxZstdMaxClientCompressionLevel() { + return mysqlxZstdMaxClientCompressionLevel; } - /** ("max_connections") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxConnections") - private final Integer maxConnections; + /** + * Set the default compression level for the zstd algorithm. + * ("mysqlx_zstd_default_compression_level") + */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlxZstdDefaultCompressionLevel") + private final Integer mysqlxZstdDefaultCompressionLevel; /** - * ("max_connections") + * Set the default compression level for the zstd algorithm. + * ("mysqlx_zstd_default_compression_level") * * @return the value */ - public Integer getMaxConnections() { - return maxConnections; + public Integer getMysqlxZstdDefaultCompressionLevel() { + return mysqlxZstdDefaultCompressionLevel; } - /** ("max_prepared_stmt_count") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxPreparedStmtCount") - private final Integer maxPreparedStmtCount; + /** DEPRECATED -- typo of mysqlx_zstd_default_compression_level. variable will be ignored. */ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlZstdDefaultCompressionLevel") + private final Integer mysqlZstdDefaultCompressionLevel; /** - * ("max_prepared_stmt_count") + * DEPRECATED -- typo of mysqlx_zstd_default_compression_level. variable will be ignored. * * @return the value */ - public Integer getMaxPreparedStmtCount() { - return maxPreparedStmtCount; + public Integer getMysqlZstdDefaultCompressionLevel() { + return mysqlZstdDefaultCompressionLevel; } /** - * The number of seconds that the mysqld server waits for a connect packet before responding - * with Bad handshake. - * - *

connectTimeout corresponds to the MySQL system variable - * [connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_connect_timeout) + * Each session that must perform a sort allocates a buffer of this size. * - *

Increasing the connect_timeout value might help if clients frequently encounter errors of - * the form "Lost connection to MySQL server at 'XXX', system error: errno". + *

sortBufferSize corresponds to the MySQL system variable + * [sort_buffer_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_sort_buffer_size) */ - @com.fasterxml.jackson.annotation.JsonProperty("connectTimeout") - private final Integer connectTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("sortBufferSize") + private final Long sortBufferSize; /** - * The number of seconds that the mysqld server waits for a connect packet before responding - * with Bad handshake. - * - *

connectTimeout corresponds to the MySQL system variable - * [connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_connect_timeout) + * Each session that must perform a sort allocates a buffer of this size. * - *

Increasing the connect_timeout value might help if clients frequently encounter errors of - * the form "Lost connection to MySQL server at 'XXX', system error: errno". + *

sortBufferSize corresponds to the MySQL system variable + * [sort_buffer_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_sort_buffer_size) * * @return the value */ - public Integer getConnectTimeout() { - return connectTimeout; + public Long getSortBufferSize() { + return sortBufferSize; } - /** ("cte_max_recursion_depth") */ - @com.fasterxml.jackson.annotation.JsonProperty("cteMaxRecursionDepth") - private final Long cteMaxRecursionDepth; + /** + * The number of seconds the server waits for activity on a noninteractive connection before + * closing it. + * + *

waitTimeout corresponds to the MySQL system variable. + * [wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) + */ + @com.fasterxml.jackson.annotation.JsonProperty("waitTimeout") + private final Integer waitTimeout; /** - * ("cte_max_recursion_depth") + * The number of seconds the server waits for activity on a noninteractive connection before + * closing it. + * + *

waitTimeout corresponds to the MySQL system variable. + * [wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) * * @return the value */ - public Long getCteMaxRecursionDepth() { - return cteMaxRecursionDepth; + public Integer getWaitTimeout() { + return waitTimeout; } /** - * ("generated_random_password_length") DEPRECATED -- variable should not be settable and will - * be ignored + * Controls whether the thread pool uses dedicated listener threads. If enabled, a listener + * thread in each thread group is dedicated to the task of listening for network events from + * clients, ensuring that the maximum number of query worker threads is no more than the value + * specified by threadPoolMaxTransactionsLimit. threadPoolDedicatedListeners corresponds to the + * MySQL Database Service-specific system variable thread_pool_dedicated_listeners. */ - @com.fasterxml.jackson.annotation.JsonProperty("generatedRandomPasswordLength") - private final Integer generatedRandomPasswordLength; + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolDedicatedListeners") + private final Boolean threadPoolDedicatedListeners; /** - * ("generated_random_password_length") DEPRECATED -- variable should not be settable and will - * be ignored + * Controls whether the thread pool uses dedicated listener threads. If enabled, a listener + * thread in each thread group is dedicated to the task of listening for network events from + * clients, ensuring that the maximum number of query worker threads is no more than the value + * specified by threadPoolMaxTransactionsLimit. threadPoolDedicatedListeners corresponds to the + * MySQL Database Service-specific system variable thread_pool_dedicated_listeners. * * @return the value */ - public Integer getGeneratedRandomPasswordLength() { - return generatedRandomPasswordLength; + public Boolean getThreadPoolDedicatedListeners() { + return threadPoolDedicatedListeners; } - /** ("information_schema_stats_expiry") */ - @com.fasterxml.jackson.annotation.JsonProperty("informationSchemaStatsExpiry") - private final Integer informationSchemaStatsExpiry; + /** + * Limits the maximum number of open transactions to the defined value. The default value is 0, + * which enforces no limit. threadPoolMaxTransactionsLimit corresponds to the MySQL Database + * Service-specific system variable thread_pool_max_transactions_limit. + */ + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolMaxTransactionsLimit") + private final Integer threadPoolMaxTransactionsLimit; /** - * ("information_schema_stats_expiry") + * Limits the maximum number of open transactions to the defined value. The default value is 0, + * which enforces no limit. threadPoolMaxTransactionsLimit corresponds to the MySQL Database + * Service-specific system variable thread_pool_max_transactions_limit. * * @return the value */ - public Integer getInformationSchemaStatsExpiry() { - return informationSchemaStatsExpiry; + public Integer getThreadPoolMaxTransactionsLimit() { + return threadPoolMaxTransactionsLimit; } /** - * Specifies the percentage of the most recently used pages for each buffer pool to read out and - * dump. + * Initializes the time zone for each client that connects. * - *

innodbBufferPoolDumpPct corresponds to the MySQL InnoDB system variable - * [innodb_buffer_pool_dump_pct](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_dump_pct). + *

This corresponds to the MySQL System Variable "time_zone". * - *

The range is 1 to 100. The default value is 25. + *

The values can be given in one of the following formats, none of which are case-sensitive: * - *

For example, if there are 4 buffer pools with 100 pages each, and - * innodb_buffer_pool_dump_pct is set to 25, the 25 most recently used pages from each buffer - * pool are dumped. + *

- As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, + * such as '+10:00', '-6:00', or '+05:30'. The permitted range is '-13:59' to '+14:00', + * inclusive. - As a named time zone, as defined by the "IANA Time Zone database", such as + * 'Europe/Helsinki', 'US/Eastern', 'MET', or 'UTC'. */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolDumpPct") - private final Integer innodbBufferPoolDumpPct; + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private final String timeZone; /** - * Specifies the percentage of the most recently used pages for each buffer pool to read out and - * dump. + * Initializes the time zone for each client that connects. * - *

innodbBufferPoolDumpPct corresponds to the MySQL InnoDB system variable - * [innodb_buffer_pool_dump_pct](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_buffer_pool_dump_pct). + *

This corresponds to the MySQL System Variable "time_zone". * - *

The range is 1 to 100. The default value is 25. + *

The values can be given in one of the following formats, none of which are case-sensitive: * - *

For example, if there are 4 buffer pools with 100 pages each, and - * innodb_buffer_pool_dump_pct is set to 25, the 25 most recently used pages from each buffer - * pool are dumped. + *

- As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, + * such as '+10:00', '-6:00', or '+05:30'. The permitted range is '-13:59' to '+14:00', + * inclusive. - As a named time zone, as defined by the "IANA Time Zone database", such as + * 'Europe/Helsinki', 'US/Eastern', 'MET', or 'UTC'. * * @return the value */ - public Integer getInnodbBufferPoolDumpPct() { - return innodbBufferPoolDumpPct; + public String getTimeZone() { + return timeZone; } - /** ("innodb_buffer_pool_instances") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbBufferPoolInstances") - private final Integer innodbBufferPoolInstances; - /** - * ("innodb_buffer_pool_instances") + * This variable controls the block encryption mode for block-based algorithms such as AES. It + * affects encryption for AES_ENCRYPT() and AES_DECRYPT(). * - * @return the value - */ - public Integer getInnodbBufferPoolInstances() { - return innodbBufferPoolInstances; - } - - /** - * innodbDdlBufferSize corresponds to the MySQL system variable [innodb_ddl_buffer_size] - * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_buffer_size) + *

block_encryption_mode takes a value in aes-keylen-mode format, where keylen is the key + * length in bits and mode is the encryption mode. The value is not case-sensitive. Permitted + * keylen values are 128, 192, and 256. Permitted mode values are ECB, CBC, CFB1, CFB8, CFB128, + * and OFB. + * + *

block_encryption_mode corresponds to the MySQL Server Administration system variable + * [block_encryption_mode](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode) */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbDdlBufferSize") - private final Long innodbDdlBufferSize; + @com.fasterxml.jackson.annotation.JsonProperty("blockEncryptionMode") + private final String blockEncryptionMode; /** - * innodbDdlBufferSize corresponds to the MySQL system variable [innodb_ddl_buffer_size] - * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_buffer_size) + * This variable controls the block encryption mode for block-based algorithms such as AES. It + * affects encryption for AES_ENCRYPT() and AES_DECRYPT(). + * + *

block_encryption_mode takes a value in aes-keylen-mode format, where keylen is the key + * length in bits and mode is the encryption mode. The value is not case-sensitive. Permitted + * keylen values are 128, 192, and 256. Permitted mode values are ECB, CBC, CFB1, CFB8, CFB128, + * and OFB. + * + *

block_encryption_mode corresponds to the MySQL Server Administration system variable + * [block_encryption_mode](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode) * * @return the value */ - public Long getInnodbDdlBufferSize() { - return innodbDdlBufferSize; + public String getBlockEncryptionMode() { + return blockEncryptionMode; } /** - * innodbDdlThreads corresponds to the MySQL system variable [innodb_ddl_threads] - * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_threads) + * Controls how many microseconds the binary log commit waits before synchronizing the binary + * log file to disk. There is no delay by default. Setting this variable to a microsecond delay + * enables more transactions to be synchronized together to disk at once, reducing the overall + * time to commit a group of transactions because the larger groups required fewer time units + * per group. + * + *

binlogGroupCommitSyncDelay corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_delay](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_delay) */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbDdlThreads") - private final Integer innodbDdlThreads; + @com.fasterxml.jackson.annotation.JsonProperty("binlogGroupCommitSyncDelay") + private final Integer binlogGroupCommitSyncDelay; /** - * innodbDdlThreads corresponds to the MySQL system variable [innodb_ddl_threads] - * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_ddl_threads) + * Controls how many microseconds the binary log commit waits before synchronizing the binary + * log file to disk. There is no delay by default. Setting this variable to a microsecond delay + * enables more transactions to be synchronized together to disk at once, reducing the overall + * time to commit a group of transactions because the larger groups required fewer time units + * per group. + * + *

binlogGroupCommitSyncDelay corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_delay](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_delay) * * @return the value */ - public Integer getInnodbDdlThreads() { - return innodbDdlThreads; + public Integer getBinlogGroupCommitSyncDelay() { + return binlogGroupCommitSyncDelay; } - /** ("innodb_ft_max_token_size") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtMaxTokenSize") - private final Integer innodbFtMaxTokenSize; - /** - * ("innodb_ft_max_token_size") + * The maximum number of transactions to wait for before aborting the current delay as specified + * by binlog_group_commit_sync_delay. If binlog_group_commit_sync_delay is set to 0, then this + * option has no effect. * - * @return the value + *

binlogGroupCommitSyncNoDelayCount corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_no_delay_count](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_no_delay_count) */ - public Integer getInnodbFtMaxTokenSize() { - return innodbFtMaxTokenSize; - } - - /** ("innodb_ft_min_token_size") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtMinTokenSize") - private final Integer innodbFtMinTokenSize; + @com.fasterxml.jackson.annotation.JsonProperty("binlogGroupCommitSyncNoDelayCount") + private final Integer binlogGroupCommitSyncNoDelayCount; /** - * ("innodb_ft_min_token_size") + * The maximum number of transactions to wait for before aborting the current delay as specified + * by binlog_group_commit_sync_delay. If binlog_group_commit_sync_delay is set to 0, then this + * option has no effect. + * + *

binlogGroupCommitSyncNoDelayCount corresponds to the MySQL Replication system variable + * [binlog_group_commit_sync_no_delay_count](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_binlog_group_commit_sync_no_delay_count) * * @return the value */ - public Integer getInnodbFtMinTokenSize() { - return innodbFtMinTokenSize; + public Integer getBinlogGroupCommitSyncNoDelayCount() { + return binlogGroupCommitSyncNoDelayCount; } - /** ("innodb_ft_num_word_optimize") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbFtNumWordOptimize") - private final Integer innodbFtNumWordOptimize; - /** - * ("innodb_ft_num_word_optimize") + * Specifies the number of seconds to wait for more data or a heartbeat signal from the source + * before the replica considers the connection broken, aborts the read, and tries to reconnect. + * Setting this variable has no immediate effect. The state of the variable applies on all + * subsequent START REPLICA commands. * - * @return the value + *

replicaNetTimeout corresponds to the MySQL Replica server system variable + * [replica_net_timeout](https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_net_timeout) */ - public Integer getInnodbFtNumWordOptimize() { - return innodbFtNumWordOptimize; - } - - /** ("innodb_lock_wait_timeout") */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbLockWaitTimeout") - private final Integer innodbLockWaitTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("replicaNetTimeout") + private final Integer replicaNetTimeout; /** - * ("innodb_lock_wait_timeout") + * Specifies the number of seconds to wait for more data or a heartbeat signal from the source + * before the replica considers the connection broken, aborts the read, and tries to reconnect. + * Setting this variable has no immediate effect. The state of the variable applies on all + * subsequent START REPLICA commands. + * + *

replicaNetTimeout corresponds to the MySQL Replica server system variable + * [replica_net_timeout](https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_net_timeout) * * @return the value */ - public Integer getInnodbLockWaitTimeout() { - return innodbLockWaitTimeout; + public Integer getReplicaNetTimeout() { + return replicaNetTimeout; } /** - * The desired maximum purge lag in terms of transactions. - * - *

InnoDB maintains a list of transactions that have index records delete-marked by UPDATE or - * DELETE operations. The length of the list is the purge lag. - * - *

If this value is exceeded, a delay is imposed on INSERT, UPDATE, and DELETE operations to - * allow time for purge to catch up. + * Whether client connections to the server are required to use some form of secure transport. + * When this variable is enabled, the server permits only TCP/IP connections encrypted using + * TLS/SSL, or connections that use a socket file or shared memory. The server rejects nonsecure + * connection attempts, which fail with an ER_SECURE_TRANSPORT_REQUIRED error. * - *

The default value is 0, which means there is no maximum purge lag and no delay. - * - *

innodbMaxPurgeLag corresponds to the MySQL server system variable - * [innodb_max_purge_lag](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag). + *

require_secure_transport corresponds to the MySQL Server Administration system variable + * [require_secure_transport](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_require_secure_transport) */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbMaxPurgeLag") - private final Long innodbMaxPurgeLag; + @com.fasterxml.jackson.annotation.JsonProperty("requireSecureTransport") + private final Boolean requireSecureTransport; /** - * The desired maximum purge lag in terms of transactions. - * - *

InnoDB maintains a list of transactions that have index records delete-marked by UPDATE or - * DELETE operations. The length of the list is the purge lag. - * - *

If this value is exceeded, a delay is imposed on INSERT, UPDATE, and DELETE operations to - * allow time for purge to catch up. - * - *

The default value is 0, which means there is no maximum purge lag and no delay. + * Whether client connections to the server are required to use some form of secure transport. + * When this variable is enabled, the server permits only TCP/IP connections encrypted using + * TLS/SSL, or connections that use a socket file or shared memory. The server rejects nonsecure + * connection attempts, which fail with an ER_SECURE_TRANSPORT_REQUIRED error. * - *

innodbMaxPurgeLag corresponds to the MySQL server system variable - * [innodb_max_purge_lag](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag). + *

require_secure_transport corresponds to the MySQL Server Administration system variable + * [require_secure_transport](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_require_secure_transport) * * @return the value */ - public Long getInnodbMaxPurgeLag() { - return innodbMaxPurgeLag; + public Boolean getRequireSecureTransport() { + return requireSecureTransport; } /** - * The maximum delay in microseconds for the delay imposed when the innodb_max_purge_lag - * threshold is exceeded. - * - *

The specified innodb_max_purge_lag_delay value is an upper limit on the delay period. + * Defines the amount of disk space occupied by redo log files. innodb_redo_log_capacity + * supercedes the innodb_log_files_in_group and innodb_log_file_size variables, which are both + * ignored if innodb_redo_log_capacity is defined. If innodb_redo_log_capacity is not defined, + * and if neither innodb_log_file_size or innodb_log_files_in_group are defined, then the + * default innodb_redo_log_capacity value is used. * - *

innodbMaxPurgeLagDelay corresponds to the MySQL server system variable - * [innodb_max_purge_lag_delay](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag_delay). + *

innodbRedoLogCapacity corresponds to the InnoDB Startup Options and System Variables + * [innodb_redo_log_capacity](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_redo_log_capacity) */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbMaxPurgeLagDelay") - private final Integer innodbMaxPurgeLagDelay; + @com.fasterxml.jackson.annotation.JsonProperty("innodbRedoLogCapacity") + private final Long innodbRedoLogCapacity; /** - * The maximum delay in microseconds for the delay imposed when the innodb_max_purge_lag - * threshold is exceeded. - * - *

The specified innodb_max_purge_lag_delay value is an upper limit on the delay period. + * Defines the amount of disk space occupied by redo log files. innodb_redo_log_capacity + * supercedes the innodb_log_files_in_group and innodb_log_file_size variables, which are both + * ignored if innodb_redo_log_capacity is defined. If innodb_redo_log_capacity is not defined, + * and if neither innodb_log_file_size or innodb_log_files_in_group are defined, then the + * default innodb_redo_log_capacity value is used. * - *

innodbMaxPurgeLagDelay corresponds to the MySQL server system variable - * [innodb_max_purge_lag_delay](https://dev.mysql.com/doc/refman/en/innodb-parameters.html#sysvar_innodb_max_purge_lag_delay). + *

innodbRedoLogCapacity corresponds to the InnoDB Startup Options and System Variables + * [innodb_redo_log_capacity](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_redo_log_capacity) * * @return the value */ - public Integer getInnodbMaxPurgeLagDelay() { - return innodbMaxPurgeLagDelay; + public Long getInnodbRedoLogCapacity() { + return innodbRedoLogCapacity; } /** - * The number of seconds the server waits for activity on an interactive connection before - * closing it. + * The delay period before executing a new transaction, in milliseconds. The maximum value is + * 300000 (5 minutes). A transaction delay can be used in cases where parallel transactions + * affect the performance of other operations due to resource contention. For example, if + * parallel transactions affect index creation or an online buffer pool resizing operation, you + * can configure a transaction delay to reduce resource contention while those operations are + * running. * - *

interactiveTimeout corresponds to the MySQL system variable. - * [interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_interactive_timeout) + *

threadPoolTransactionDelay corresponds to the MySQL Server system variable + * [thread_pool_transaction_delay](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_transaction_delay) */ - @com.fasterxml.jackson.annotation.JsonProperty("interactiveTimeout") - private final Integer interactiveTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolTransactionDelay") + private final Integer threadPoolTransactionDelay; /** - * The number of seconds the server waits for activity on an interactive connection before - * closing it. + * The delay period before executing a new transaction, in milliseconds. The maximum value is + * 300000 (5 minutes). A transaction delay can be used in cases where parallel transactions + * affect the performance of other operations due to resource contention. For example, if + * parallel transactions affect index creation or an online buffer pool resizing operation, you + * can configure a transaction delay to reduce resource contention while those operations are + * running. * - *

interactiveTimeout corresponds to the MySQL system variable. - * [interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_interactive_timeout) + *

threadPoolTransactionDelay corresponds to the MySQL Server system variable + * [thread_pool_transaction_delay](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_transaction_delay) * * @return the value */ - public Integer getInteractiveTimeout() { - return interactiveTimeout; + public Integer getThreadPoolTransactionDelay() { + return threadPoolTransactionDelay; } /** - * The number of index pages to sample when estimating cardinality and other statistics for an - * indexed column, such as those calculated by ANALYZE TABLE. - * - *

innodbStatsPersistentSamplePages corresponds to the MySQL InnoDB system variable - * [innodb_stats_persistent_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_persistent_sample_pages) + * The maximum number of query threads permitted in a thread group. The maximum value is 4096, + * but if thread_pool_max_transactions_limit is set, thread_pool_query_threads_per_group must + * not exceed that value. The default value of 1 means there is one active query thread in each + * thread group, which works well for many loads. When you are using the high concurrency thread + * pool algorithm (thread_pool_algorithm = 1), consider increasing the value if you experience + * slower response times due to long-running transactions. * - *

innodb_stats_persistent_sample_pages only applies when innodb_stats_persistent is enabled - * for a table; when innodb_stats_persistent is disabled, innodb_stats_transient_sample_pages - * applies instead. + *

threadPoolQueryThreadsPerGroup corresponds to the MySQL Server system variable + * [thread_pool_query_threads_per_group](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_query_threads_per_group) */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbStatsPersistentSamplePages") - private final Long innodbStatsPersistentSamplePages; + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolQueryThreadsPerGroup") + private final Integer threadPoolQueryThreadsPerGroup; /** - * The number of index pages to sample when estimating cardinality and other statistics for an - * indexed column, such as those calculated by ANALYZE TABLE. - * - *

innodbStatsPersistentSamplePages corresponds to the MySQL InnoDB system variable - * [innodb_stats_persistent_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_persistent_sample_pages) + * The maximum number of query threads permitted in a thread group. The maximum value is 4096, + * but if thread_pool_max_transactions_limit is set, thread_pool_query_threads_per_group must + * not exceed that value. The default value of 1 means there is one active query thread in each + * thread group, which works well for many loads. When you are using the high concurrency thread + * pool algorithm (thread_pool_algorithm = 1), consider increasing the value if you experience + * slower response times due to long-running transactions. * - *

innodb_stats_persistent_sample_pages only applies when innodb_stats_persistent is enabled - * for a table; when innodb_stats_persistent is disabled, innodb_stats_transient_sample_pages - * applies instead. + *

threadPoolQueryThreadsPerGroup corresponds to the MySQL Server system variable + * [thread_pool_query_threads_per_group](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_query_threads_per_group) * * @return the value */ - public Long getInnodbStatsPersistentSamplePages() { - return innodbStatsPersistentSamplePages; + public Integer getThreadPoolQueryThreadsPerGroup() { + return threadPoolQueryThreadsPerGroup; } /** - * The number of index pages to sample when estimating cardinality and other statistics for an - * indexed column, such as those calculated by [ANALYZE - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html). - * - *

innodbStatsTransientSamplePages corresponds to the MySQL InnoDB system variable - * [innodb_stats_transient_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_transient_sample_pages) - * - *

innodb_stats_transient_sample_pages only applies when innodb_stats_persistent is disabled - * for a table; when innodb_stats_persistent is enabled, innodb_stats_persistent_sample_pages - * applies instead. + * This variable determines the default output format used by EXPLAIN in the absence of a FORMAT + * option when displaying a query execution plan. * - *

innodb_stats_persistent is ON by default and cannot be changed. It is possible to override - * it using the STATS_PERSISTENT clause of the [CREATE - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/create-table.html) and [ALTER - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/alter-table.html) statements. + *

explainFormat corresponds to the MySQL system variable + * [explain_format](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explain_format). */ - @com.fasterxml.jackson.annotation.JsonProperty("innodbStatsTransientSamplePages") - private final Long innodbStatsTransientSamplePages; + public enum ExplainFormat implements com.oracle.bmc.http.internal.BmcEnum { + Traditional("TRADITIONAL"), + Json("JSON"), + Tree("TREE"), - /** - * The number of index pages to sample when estimating cardinality and other statistics for an - * indexed column, such as those calculated by [ANALYZE - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html). - * - *

innodbStatsTransientSamplePages corresponds to the MySQL InnoDB system variable - * [innodb_stats_transient_sample_pages](https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_stats_transient_sample_pages) - * - *

innodb_stats_transient_sample_pages only applies when innodb_stats_persistent is disabled - * for a table; when innodb_stats_persistent is enabled, innodb_stats_persistent_sample_pages - * applies instead. - * - *

innodb_stats_persistent is ON by default and cannot be changed. It is possible to override - * it using the STATS_PERSISTENT clause of the [CREATE - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/create-table.html) and [ALTER - * TABLE](https://dev.mysql.com/doc/refman/8.0/en/alter-table.html) statements. - * - * @return the value - */ - public Long getInnodbStatsTransientSamplePages() { - return innodbStatsTransientSamplePages; - } + /** + * 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(ExplainFormat.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ExplainFormat v : ExplainFormat.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ExplainFormat(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + @com.fasterxml.jackson.annotation.JsonCreator + public static ExplainFormat create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ExplainFormat', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** - * The maximum size of one packet or any generated/intermediate string. + * This variable determines the default output format used by EXPLAIN in the absence of a FORMAT + * option when displaying a query execution plan. * - *

This is the mysql variable "max_allowed_packet". + *

explainFormat corresponds to the MySQL system variable + * [explain_format](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explain_format). */ - @com.fasterxml.jackson.annotation.JsonProperty("maxAllowedPacket") - private final Integer maxAllowedPacket; + @com.fasterxml.jackson.annotation.JsonProperty("explainFormat") + private final ExplainFormat explainFormat; /** - * The maximum size of one packet or any generated/intermediate string. + * This variable determines the default output format used by EXPLAIN in the absence of a FORMAT + * option when displaying a query execution plan. * - *

This is the mysql variable "max_allowed_packet". + *

explainFormat corresponds to the MySQL system variable + * [explain_format](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explain_format). * * @return the value */ - public Integer getMaxAllowedPacket() { - return maxAllowedPacket; + public ExplainFormat getExplainFormat() { + return explainFormat; } - /** ("max_execution_time") */ - @com.fasterxml.jackson.annotation.JsonProperty("maxExecutionTime") - private final Long maxExecutionTime; + /** + * This system variable determines whether the server enables certain nonstandard behaviors for + * default values and NULL-value handling in TIMESTAMP columns. By default, + * explicit_defaults_for_timestamp is enabled, which disables the nonstandard behaviors. + * Disabling explicit_defaults_for_timestamp results in a warning. + * + *

explicit_defaults_for_timestamp corresponds to the MySQL Server Administration system + * variable + * [explicit_defaults_for_timestamp](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp) + */ + @com.fasterxml.jackson.annotation.JsonProperty("explicitDefaultsForTimestamp") + private final Boolean explicitDefaultsForTimestamp; /** - * ("max_execution_time") + * This system variable determines whether the server enables certain nonstandard behaviors for + * default values and NULL-value handling in TIMESTAMP columns. By default, + * explicit_defaults_for_timestamp is enabled, which disables the nonstandard behaviors. + * Disabling explicit_defaults_for_timestamp results in a warning. + * + *

explicit_defaults_for_timestamp corresponds to the MySQL Server Administration system + * variable + * [explicit_defaults_for_timestamp](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_explicit_defaults_for_timestamp) * * @return the value */ - public Long getMaxExecutionTime() { - return maxExecutionTime; + public Boolean getExplicitDefaultsForTimestamp() { + return explicitDefaultsForTimestamp; } /** - * The number of seconds X Plugin waits for the first packet to be received from newly connected - * clients. + * Whether GIPK mode is in effect, in which case a MySQL replication source server adds a + * generated invisible primary key to any InnoDB table that is created without one. * - *

mysqlxConnectTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_connect_timeout) + *

sqlGenerateInvisiblePrimaryKey corresponds to the MySQL system variable + * [sql_generate_invisible_primary_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_generate_invisible_primary_key). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxConnectTimeout") - private final Integer mysqlxConnectTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("sqlGenerateInvisiblePrimaryKey") + private final Boolean sqlGenerateInvisiblePrimaryKey; /** - * The number of seconds X Plugin waits for the first packet to be received from newly connected - * clients. + * Whether GIPK mode is in effect, in which case a MySQL replication source server adds a + * generated invisible primary key to any InnoDB table that is created without one. * - *

mysqlxConnectTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_connect_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_connect_timeout) + *

sqlGenerateInvisiblePrimaryKey corresponds to the MySQL system variable + * [sql_generate_invisible_primary_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_generate_invisible_primary_key). * * @return the value */ - public Integer getMysqlxConnectTimeout() { - return mysqlxConnectTimeout; + public Boolean getSqlGenerateInvisiblePrimaryKey() { + return sqlGenerateInvisiblePrimaryKey; } /** - * ("mysqlx_document_id_unique_prefix") DEPRECATED -- variable should not be settable and will - * be ignored + * Defines the maximum amount of memory that can be occupied by the TempTable storage engine + * before it starts storing data on disk. The default value is 1073741824 bytes (1GiB). For more + * information, see Section 10.4.4, \u201CInternal Temporary Table Use in MySQL\u201D. + * + *

temptableMaxRam corresponds to the MySQL system variable [temptable_max_ram] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_temptable_max_ram). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDocumentIdUniquePrefix") - private final Integer mysqlxDocumentIdUniquePrefix; + @com.fasterxml.jackson.annotation.JsonProperty("temptableMaxRam") + private final Long temptableMaxRam; /** - * ("mysqlx_document_id_unique_prefix") DEPRECATED -- variable should not be settable and will - * be ignored + * Defines the maximum amount of memory that can be occupied by the TempTable storage engine + * before it starts storing data on disk. The default value is 1073741824 bytes (1GiB). For more + * information, see Section 10.4.4, \u201CInternal Temporary Table Use in MySQL\u201D. + * + *

temptableMaxRam corresponds to the MySQL system variable [temptable_max_ram] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_temptable_max_ram). * * @return the value */ - public Integer getMysqlxDocumentIdUniquePrefix() { - return mysqlxDocumentIdUniquePrefix; + public Long getTemptableMaxRam() { + return temptableMaxRam; } /** - * ("mysqlx_idle_worker_thread_timeout") DEPRECATED -- variable should not be settable and will - * be ignored - */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxIdleWorkerThreadTimeout") - private final Integer mysqlxIdleWorkerThreadTimeout; - - /** - * ("mysqlx_idle_worker_thread_timeout") DEPRECATED -- variable should not be settable and will - * be ignored + * Whether InnoDB performs change buffering, an optimization that delays write operations to + * secondary indexes so that the I/O operations can be performed sequentially. Permitted values + * are described in the following table. Values may also be specified numerically. * - * @return the value + *

innodbChangeBuffering corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_change_buffering] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_change_buffering). */ - public Integer getMysqlxIdleWorkerThreadTimeout() { - return mysqlxIdleWorkerThreadTimeout; - } + public enum InnodbChangeBuffering implements com.oracle.bmc.http.internal.BmcEnum { + None("NONE"), + Inserts("INSERTS"), + Deletes("DELETES"), + Changes("CHANGES"), + Purges("PURGES"), + All("ALL"), + + /** + * 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(InnodbChangeBuffering.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InnodbChangeBuffering v : InnodbChangeBuffering.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InnodbChangeBuffering(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + @com.fasterxml.jackson.annotation.JsonCreator + public static InnodbChangeBuffering create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InnodbChangeBuffering', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** - * The number of seconds to wait for interactive clients to timeout. + * Whether InnoDB performs change buffering, an optimization that delays write operations to + * secondary indexes so that the I/O operations can be performed sequentially. Permitted values + * are described in the following table. Values may also be specified numerically. * - *

mysqlxInteractiveTimeout corresponds to the MySQL X Plugin system variable. - * [mysqlx_interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_interactive_timeout) + *

innodbChangeBuffering corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_change_buffering] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_change_buffering). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxInteractiveTimeout") - private final Integer mysqlxInteractiveTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("innodbChangeBuffering") + private final InnodbChangeBuffering innodbChangeBuffering; /** - * The number of seconds to wait for interactive clients to timeout. + * Whether InnoDB performs change buffering, an optimization that delays write operations to + * secondary indexes so that the I/O operations can be performed sequentially. Permitted values + * are described in the following table. Values may also be specified numerically. * - *

mysqlxInteractiveTimeout corresponds to the MySQL X Plugin system variable. - * [mysqlx_interactive_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_interactive_timeout) + *

innodbChangeBuffering corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_change_buffering] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_change_buffering). * * @return the value */ - public Integer getMysqlxInteractiveTimeout() { - return mysqlxInteractiveTimeout; + public InnodbChangeBuffering getInnodbChangeBuffering() { + return innodbChangeBuffering; } /** - * The maximum size of network packets that can be received by X Plugin. + * Whether the InnoDB adaptive hash index is enabled or disabled. It may be desirable, depending + * on your workload, to dynamically enable or disable adaptive hash indexing to improve query + * performance. Because the adaptive hash index may not be useful for all workloads, conduct + * benchmarks with it both enabled and disabled, using realistic workloads. * - *

This is the mysql variable "mysqlx_max_allowed_packet". + *

innodbAdaptiveHashIndex corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_adaptive_hash_index] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_adaptive_hash_index). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxMaxAllowedPacket") - private final Integer mysqlxMaxAllowedPacket; + @com.fasterxml.jackson.annotation.JsonProperty("innodbAdaptiveHashIndex") + private final Boolean innodbAdaptiveHashIndex; /** - * The maximum size of network packets that can be received by X Plugin. + * Whether the InnoDB adaptive hash index is enabled or disabled. It may be desirable, depending + * on your workload, to dynamically enable or disable adaptive hash indexing to improve query + * performance. Because the adaptive hash index may not be useful for all workloads, conduct + * benchmarks with it both enabled and disabled, using realistic workloads. * - *

This is the mysql variable "mysqlx_max_allowed_packet". + *

innodbAdaptiveHashIndex corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_adaptive_hash_index] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_adaptive_hash_index). * * @return the value */ - public Integer getMysqlxMaxAllowedPacket() { - return mysqlxMaxAllowedPacket; + public Boolean getInnodbAdaptiveHashIndex() { + return innodbAdaptiveHashIndex; } /** - * ("mysqlx_min_worker_threads") DEPRECATED -- variable should not be settable and will be - * ignored + * When enabled, undo tablespaces that exceed the threshold value defined by + * innodb_max_undo_log_size are marked for truncation. Only undo tablespaces can be truncated. + * Truncating undo logs that reside in the system tablespace is not supported. For truncation to + * occur, there must be at least two undo tablespaces. + * + *

innodbUndoLogTruncate corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_undo_log_truncate] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_undo_log_truncate). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxMinWorkerThreads") - private final Integer mysqlxMinWorkerThreads; + @com.fasterxml.jackson.annotation.JsonProperty("innodbUndoLogTruncate") + private final Boolean innodbUndoLogTruncate; /** - * ("mysqlx_min_worker_threads") DEPRECATED -- variable should not be settable and will be - * ignored + * When enabled, undo tablespaces that exceed the threshold value defined by + * innodb_max_undo_log_size are marked for truncation. Only undo tablespaces can be truncated. + * Truncating undo logs that reside in the system tablespace is not supported. For truncation to + * occur, there must be at least two undo tablespaces. + * + *

innodbUndoLogTruncate corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_undo_log_truncate] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_undo_log_truncate). * * @return the value */ - public Integer getMysqlxMinWorkerThreads() { - return mysqlxMinWorkerThreads; + public Boolean getInnodbUndoLogTruncate() { + return innodbUndoLogTruncate; } /** - * The number of seconds that X Plugin waits for blocking read operations to complete. After - * this time, if the read operation is not successful, X Plugin closes the connection and - * returns a warning notice with the error code ER_IO_READ_ERROR to the client application. + * The number of table definitions that can be stored in the table definition cache. If you use + * a large number of tables, you can create a large table definition cache to speed up opening + * of tables. The table definition cache takes less space and does not use file descriptors, + * unlike the normal table cache. * - *

mysqlxReadTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_read_timeout) + *

table_definition_cache corresponds to the MySQL Server Administration system variable + * [table_definition_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_definition_cache) */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxReadTimeout") - private final Integer mysqlxReadTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("tableDefinitionCache") + private final Integer tableDefinitionCache; /** - * The number of seconds that X Plugin waits for blocking read operations to complete. After - * this time, if the read operation is not successful, X Plugin closes the connection and - * returns a warning notice with the error code ER_IO_READ_ERROR to the client application. + * The number of table definitions that can be stored in the table definition cache. If you use + * a large number of tables, you can create a large table definition cache to speed up opening + * of tables. The table definition cache takes less space and does not use file descriptors, + * unlike the normal table cache. * - *

mysqlxReadTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_read_timeout) + *

table_definition_cache corresponds to the MySQL Server Administration system variable + * [table_definition_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_definition_cache) * * @return the value */ - public Integer getMysqlxReadTimeout() { - return mysqlxReadTimeout; + public Integer getTableDefinitionCache() { + return tableDefinitionCache; } /** - * The number of seconds that X Plugin waits for activity on a connection. + * The number of open tables for all threads. Increasing this value increases the number of file + * descriptors that mysqld requires. * - *

mysqlxWaitTimeout corresponds to the MySQL X Plugin system variable. - * [mysqlx_wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_wait_timeout) + *

table_open_cache corresponds to the MySQL Server Administration system variable + * [table_open_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_open_cache) */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxWaitTimeout") - private final Integer mysqlxWaitTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("tableOpenCache") + private final Integer tableOpenCache; /** - * The number of seconds that X Plugin waits for activity on a connection. + * The number of open tables for all threads. Increasing this value increases the number of file + * descriptors that mysqld requires. * - *

mysqlxWaitTimeout corresponds to the MySQL X Plugin system variable. - * [mysqlx_wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_wait_timeout) + *

table_open_cache corresponds to the MySQL Server Administration system variable + * [table_open_cache](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_table_open_cache) * * @return the value */ - public Integer getMysqlxWaitTimeout() { - return mysqlxWaitTimeout; + public Integer getTableOpenCache() { + return tableOpenCache; } /** - * The number of seconds that X Plugin waits for blocking write operations to complete. After - * this time, if the write operation is not successful, X Plugin closes the connection. + * The maximum amount of space to use for all relay logs. * - *

mysqlxReadmysqlxWriteTimeoutTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_write_timeout) + *

relayLogSpaceLimit corresponds to the MySQL Replica Server Options variable + * [relay_log_space_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_relay_log_space_limit). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxWriteTimeout") - private final Integer mysqlxWriteTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("relayLogSpaceLimit") + private final Long relayLogSpaceLimit; /** - * The number of seconds that X Plugin waits for blocking write operations to complete. After - * this time, if the write operation is not successful, X Plugin closes the connection. + * The maximum amount of space to use for all relay logs. * - *

mysqlxReadmysqlxWriteTimeoutTimeout corresponds to the MySQL X Plugin system variable - * [mysqlx_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/x-plugin-options-system-variables.html#sysvar_mysqlx_write_timeout) + *

relayLogSpaceLimit corresponds to the MySQL Replica Server Options variable + * [relay_log_space_limit] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_relay_log_space_limit). * * @return the value */ - public Integer getMysqlxWriteTimeout() { - return mysqlxWriteTimeout; + public Long getRelayLogSpaceLimit() { + return relayLogSpaceLimit; } /** - * The number of seconds to wait for more data from a connection before aborting the read. + * The optimizer_switch system variable enables control over optimizer behavior. The value of + * this variable is a set of flags, each of which has a value of on or off to indicate whether + * the corresponding optimizer behavior is enabled or disabled. This variable has global and + * session values and can be changed at runtime. The global default can be set at server + * startup. * - *

netReadTimeout corresponds to the MySQL system variable - * [net_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_read_timeout) + *

Setting hypergraph_optimizer=on for cloud builds below 9.0.0 will fail. + * + *

optimizerSwitch corresponds to the MySQL Server System variable [optimizer_switch] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch). */ - @com.fasterxml.jackson.annotation.JsonProperty("netReadTimeout") - private final Integer netReadTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("optimizerSwitch") + private final String optimizerSwitch; /** - * The number of seconds to wait for more data from a connection before aborting the read. + * The optimizer_switch system variable enables control over optimizer behavior. The value of + * this variable is a set of flags, each of which has a value of on or off to indicate whether + * the corresponding optimizer behavior is enabled or disabled. This variable has global and + * session values and can be changed at runtime. The global default can be set at server + * startup. * - *

netReadTimeout corresponds to the MySQL system variable - * [net_read_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_read_timeout) + *

Setting hypergraph_optimizer=on for cloud builds below 9.0.0 will fail. + * + *

optimizerSwitch corresponds to the MySQL Server System variable [optimizer_switch] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_optimizer_switch). * * @return the value */ - public Integer getNetReadTimeout() { - return netReadTimeout; + public String getOptimizerSwitch() { + return optimizerSwitch; } /** - * The number of seconds to wait for a block to be written to a connection before aborting the - * write. + * From MySQL 8.0.26, use replica_type_conversions in place of slave_type_conversions, which is + * deprecated from that release. In releases before MySQL 8.0.26, use slave_type_conversions. * - *

netWriteTimeout corresponds to the MySQL system variable - * [net_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_write_timeout) + *

replica_type_conversions controls the type conversion mode in effect on the replica when + * using row-based replication. Its value is a comma-delimited set of zero or more elements from + * the list: ALL_LOSSY, ALL_NON_LOSSY, ALL_SIGNED, ALL_UNSIGNED. Set this variable to an empty + * string to disallow type conversions between the source and the replica. Setting this variable + * takes effect for all replication channels immediately, including running channels. + * + *

replica_type_conversions corresponds to the MySQL Replica Server Options variable + * [replica_type_conversions] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_type_conversions). */ - @com.fasterxml.jackson.annotation.JsonProperty("netWriteTimeout") - private final Integer netWriteTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("replicaTypeConversions") + private final String replicaTypeConversions; /** - * The number of seconds to wait for a block to be written to a connection before aborting the - * write. + * From MySQL 8.0.26, use replica_type_conversions in place of slave_type_conversions, which is + * deprecated from that release. In releases before MySQL 8.0.26, use slave_type_conversions. * - *

netWriteTimeout corresponds to the MySQL system variable - * [net_write_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_net_write_timeout) + *

replica_type_conversions controls the type conversion mode in effect on the replica when + * using row-based replication. Its value is a comma-delimited set of zero or more elements from + * the list: ALL_LOSSY, ALL_NON_LOSSY, ALL_SIGNED, ALL_UNSIGNED. Set this variable to an empty + * string to disallow type conversions between the source and the replica. Setting this variable + * takes effect for all replication channels immediately, including running channels. * - * @return the value - */ - public Integer getNetWriteTimeout() { - return netWriteTimeout; - } - - /** ("parser_max_mem_size") */ - @com.fasterxml.jackson.annotation.JsonProperty("parserMaxMemSize") - private final Long parserMaxMemSize; - - /** - * ("parser_max_mem_size") + *

replica_type_conversions corresponds to the MySQL Replica Server Options variable + * [replica_type_conversions] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_type_conversions). * * @return the value */ - public Long getParserMaxMemSize() { - return parserMaxMemSize; + public String getReplicaTypeConversions() { + return replicaTypeConversions; } /** - * ("query_alloc_block_size") DEPRECATED -- variable should not be settable and will be ignored - */ - @com.fasterxml.jackson.annotation.JsonProperty("queryAllocBlockSize") - private final Long queryAllocBlockSize; - - /** - * ("query_alloc_block_size") DEPRECATED -- variable should not be settable and will be ignored + * Beginning with MySQL 8.0.26, slave_parallel_workers is deprecated, and you should use + * replica_parallel_workers instead. (Prior to MySQL 8.0.26, you must use slave_parallel_workers + * to set the number of applier threads.) * - * @return the value + *

replicaParallelWorkers corresponds to the MySQL Replica Server Options variable + * [replica_parallel_workers] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_parallel_workers). */ - public Long getQueryAllocBlockSize() { - return queryAllocBlockSize; - } - - /** ("query_prealloc_size") DEPRECATED -- variable should not be settable and will be ignored */ - @com.fasterxml.jackson.annotation.JsonProperty("queryPreallocSize") - private final Long queryPreallocSize; + @com.fasterxml.jackson.annotation.JsonProperty("replicaParallelWorkers") + private final Integer replicaParallelWorkers; /** - * ("query_prealloc_size") DEPRECATED -- variable should not be settable and will be ignored + * Beginning with MySQL 8.0.26, slave_parallel_workers is deprecated, and you should use + * replica_parallel_workers instead. (Prior to MySQL 8.0.26, you must use slave_parallel_workers + * to set the number of applier threads.) + * + *

replicaParallelWorkers corresponds to the MySQL Replica Server Options variable + * [replica_parallel_workers] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-replica.html#sysvar_replica_parallel_workers). * * @return the value */ - public Long getQueryPreallocSize() { - return queryPreallocSize; + public Integer getReplicaParallelWorkers() { + return replicaParallelWorkers; } /** - * regexpTimeLimit corresponds to the MySQL system variable [regexp_time_limit] - * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_regexp_time_limit) - */ - @com.fasterxml.jackson.annotation.JsonProperty("regexpTimeLimit") - private final Integer regexpTimeLimit; - - /** - * regexpTimeLimit corresponds to the MySQL system variable [regexp_time_limit] - * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_regexp_time_limit) + * Whether to resolve host names when checking client connections. If this variable is OFF, + * mysqld resolves host names when checking client connections. If it is ON, mysqld uses only IP + * numbers; in this case, all Host column values in the grant tables must be IP addresses. See + * Section 7.1.12.3, \u201CDNS Lookups and the Host Cache\u201D. * - * @return the value + *

skipNameResolve corresponds to the MySQL Server System variable [skip_name_resolve] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_skip_name_resolve). */ - public Integer getRegexpTimeLimit() { - return regexpTimeLimit; - } - - /** ("sql_mode") */ - @com.fasterxml.jackson.annotation.JsonProperty("sqlMode") - private final String sqlMode; + @com.fasterxml.jackson.annotation.JsonProperty("skipNameResolve") + private final Boolean skipNameResolve; /** - * ("sql_mode") + * Whether to resolve host names when checking client connections. If this variable is OFF, + * mysqld resolves host names when checking client connections. If it is ON, mysqld uses only IP + * numbers; in this case, all Host column values in the grant tables must be IP addresses. See + * Section 7.1.12.3, \u201CDNS Lookups and the Host Cache\u201D. + * + *

skipNameResolve corresponds to the MySQL Server System variable [skip_name_resolve] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_skip_name_resolve). * * @return the value */ - public String getSqlMode() { - return sqlMode; + public Boolean getSkipNameResolve() { + return skipNameResolve; } /** - * The maximum size of internal in-memory temporary tables. This variable does not apply to - * user-created MEMORY tables. + * The maximum number of simultaneous connections permitted to any given MySQL user account. A + * value of 0 (the default) means \u201Cno limit.\u201D This variable has a global value that + * can be set at server startup or runtime. It also has a read-only session value that indicates + * the effective simultaneous-connection limit that applies to the account associated with the + * current session. * - *

tmp_table_size corresponds to the MySQL system variable - * [tmp_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmp_table_size) + *

maxUserConnections corresponds to the MySQL Server System variable [max_user_connections] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_user_connections). */ - @com.fasterxml.jackson.annotation.JsonProperty("tmpTableSize") - private final Long tmpTableSize; + @com.fasterxml.jackson.annotation.JsonProperty("maxUserConnections") + private final Long maxUserConnections; /** - * The maximum size of internal in-memory temporary tables. This variable does not apply to - * user-created MEMORY tables. + * The maximum number of simultaneous connections permitted to any given MySQL user account. A + * value of 0 (the default) means \u201Cno limit.\u201D This variable has a global value that + * can be set at server startup or runtime. It also has a read-only session value that indicates + * the effective simultaneous-connection limit that applies to the account associated with the + * current session. * - *

tmp_table_size corresponds to the MySQL system variable - * [tmp_table_size](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_tmp_table_size) + *

maxUserConnections corresponds to the MySQL Server System variable [max_user_connections] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_user_connections). * * @return the value */ - public Long getTmpTableSize() { - return tmpTableSize; + public Long getMaxUserConnections() { + return maxUserConnections; } /** - * Set the default compression level for the deflate algorithm. - * ("mysqlx_deflate_default_compression_level") + * The minimum size of the buffer that is used for plain index scans, range index scans, and + * joins that do not use indexes and thus perform full table scans. In MySQL 8.0.18 and later, + * this variable also controls the amount of memory used for hash joins. Normally, the best way + * to get fast joins is to add indexes. Increase the value of join_buffer_size to get a faster + * full join when adding indexes is not possible. One join buffer is allocated for each full + * join between two tables. For a complex join between several tables for which indexes are not + * used, multiple join buffers might be necessary. + * + *

joinBufferSize corresponds to the MySQL Server System variable [join_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_join_buffer_size). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDeflateDefaultCompressionLevel") - private final Integer mysqlxDeflateDefaultCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("joinBufferSize") + private final Long joinBufferSize; /** - * Set the default compression level for the deflate algorithm. - * ("mysqlx_deflate_default_compression_level") + * The minimum size of the buffer that is used for plain index scans, range index scans, and + * joins that do not use indexes and thus perform full table scans. In MySQL 8.0.18 and later, + * this variable also controls the amount of memory used for hash joins. Normally, the best way + * to get fast joins is to add indexes. Increase the value of join_buffer_size to get a faster + * full join when adding indexes is not possible. One join buffer is allocated for each full + * join between two tables. For a complex join between several tables for which indexes are not + * used, multiple join buffers might be necessary. + * + *

joinBufferSize corresponds to the MySQL Server System variable [join_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_join_buffer_size). * * @return the value */ - public Integer getMysqlxDeflateDefaultCompressionLevel() { - return mysqlxDeflateDefaultCompressionLevel; + public Long getJoinBufferSize() { + return joinBufferSize; } /** - * Limit the upper bound of accepted compression levels for the deflate algorithm. - * ("mysqlx_deflate_max_client_compression_level") + * Limit the assumed maximum number of seeks when looking up rows based on a key. The MySQL + * optimizer assumes that no more than this number of key seeks are required when searching for + * matching rows in a table by scanning an index, regardless of the actual cardinality of the + * index (see Section 15.7.7.22, \u201CSHOW INDEX Statement\u201D). By setting this to a low + * value (say, 100), you can force MySQL to prefer indexes instead of table scans. + * + *

maxSeeksForKey corresponds to the MySQL Server System variable [max_seeks_for_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_seeks_for_key). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxDeflateMaxClientCompressionLevel") - private final Integer mysqlxDeflateMaxClientCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("maxSeeksForKey") + private final Long maxSeeksForKey; /** - * Limit the upper bound of accepted compression levels for the deflate algorithm. - * ("mysqlx_deflate_max_client_compression_level") + * Limit the assumed maximum number of seeks when looking up rows based on a key. The MySQL + * optimizer assumes that no more than this number of key seeks are required when searching for + * matching rows in a table by scanning an index, regardless of the actual cardinality of the + * index (see Section 15.7.7.22, \u201CSHOW INDEX Statement\u201D). By setting this to a low + * value (say, 100), you can force MySQL to prefer indexes instead of table scans. + * + *

maxSeeksForKey corresponds to the MySQL Server System variable [max_seeks_for_key] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_seeks_for_key). * * @return the value */ - public Integer getMysqlxDeflateMaxClientCompressionLevel() { - return mysqlxDeflateMaxClientCompressionLevel; + public Long getMaxSeeksForKey() { + return maxSeeksForKey; } /** - * Limit the upper bound of accepted compression levels for the lz4 algorithm. - * ("mysqlx_lz4_max_client_compression_level") + * The limit on memory consumption for the range optimizer. A value of 0 means \u201Cno + * limit.\u201D If an execution plan considered by the optimizer uses the range access method + * but the optimizer estimates that the amount of memory needed for this method would exceed the + * limit, it abandons the plan and considers other plans. + * + *

rangeOptimizerMaxMemSize corresponds to the MySQL Server System variable + * [range_optimizer_max_mem_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_range_optimizer_max_mem_size). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxLz4MaxClientCompressionLevel") - private final Integer mysqlxLz4MaxClientCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("rangeOptimizerMaxMemSize") + private final Long rangeOptimizerMaxMemSize; /** - * Limit the upper bound of accepted compression levels for the lz4 algorithm. - * ("mysqlx_lz4_max_client_compression_level") + * The limit on memory consumption for the range optimizer. A value of 0 means \u201Cno + * limit.\u201D If an execution plan considered by the optimizer uses the range access method + * but the optimizer estimates that the amount of memory needed for this method would exceed the + * limit, it abandons the plan and considers other plans. + * + *

rangeOptimizerMaxMemSize corresponds to the MySQL Server System variable + * [range_optimizer_max_mem_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_range_optimizer_max_mem_size). * * @return the value */ - public Integer getMysqlxLz4MaxClientCompressionLevel() { - return mysqlxLz4MaxClientCompressionLevel; + public Long getRangeOptimizerMaxMemSize() { + return rangeOptimizerMaxMemSize; } /** - * Set the default compression level for the lz4 algorithm. - * ("mysqlx_lz4_default_compression_level") + * auto_increment_increment and auto_increment_offset are intended for use with circular + * (source-to-source) replication, and can be used to control the operation of AUTO_INCREMENT + * columns. Both variables have global and session values, and each can assume an integer value + * between 1 and 65,535 inclusive. + * + *

autoIncrementIncrement corresponds to the MySQL Replication Source Options variable + * [auto_increment_increment] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_increment). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxLz4DefaultCompressionLevel") - private final Integer mysqlxLz4DefaultCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("autoIncrementIncrement") + private final Integer autoIncrementIncrement; /** - * Set the default compression level for the lz4 algorithm. - * ("mysqlx_lz4_default_compression_level") + * auto_increment_increment and auto_increment_offset are intended for use with circular + * (source-to-source) replication, and can be used to control the operation of AUTO_INCREMENT + * columns. Both variables have global and session values, and each can assume an integer value + * between 1 and 65,535 inclusive. + * + *

autoIncrementIncrement corresponds to the MySQL Replication Source Options variable + * [auto_increment_increment] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_increment). * * @return the value */ - public Integer getMysqlxLz4DefaultCompressionLevel() { - return mysqlxLz4DefaultCompressionLevel; + public Integer getAutoIncrementIncrement() { + return autoIncrementIncrement; } /** - * Limit the upper bound of accepted compression levels for the zstd algorithm. - * ("mysqlx_zstd_max_client_compression_level") + * This variable has a default value of 1. If it is left with its default value, and Group + * Replication is started on the server in multi-primary mode, it is changed to the server ID. + * + *

autoIncrementOffset corresponds to the MySQL Replication Source Options variable + * [auto_increment_offset] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_offset). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxZstdMaxClientCompressionLevel") - private final Integer mysqlxZstdMaxClientCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("autoIncrementOffset") + private final Integer autoIncrementOffset; /** - * Limit the upper bound of accepted compression levels for the zstd algorithm. - * ("mysqlx_zstd_max_client_compression_level") + * This variable has a default value of 1. If it is left with its default value, and Group + * Replication is started on the server in multi-primary mode, it is changed to the server ID. + * + *

autoIncrementOffset corresponds to the MySQL Replication Source Options variable + * [auto_increment_offset] + * (https://dev.mysql.com/doc/refman/8.0/en/replication-options-source.html#sysvar_auto_increment_offset). * * @return the value */ - public Integer getMysqlxZstdMaxClientCompressionLevel() { - return mysqlxZstdMaxClientCompressionLevel; + public Integer getAutoIncrementOffset() { + return autoIncrementOffset; } /** - * Set the default compression level for the zstd algorithm. - * ("mysqlx_zstd_default_compression_level") + * The lock mode to use for generating auto-increment values. Permissible values are 0, 1, or 2, + * for traditional, consecutive, or interleaved, respectively. + * + *

innodbAutoincLockMode corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_autoinc_lock_mode] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_autoinc_lock_mode). */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlxZstdDefaultCompressionLevel") - private final Integer mysqlxZstdDefaultCompressionLevel; + @com.fasterxml.jackson.annotation.JsonProperty("innodbAutoincLockMode") + private final Integer innodbAutoincLockMode; /** - * Set the default compression level for the zstd algorithm. - * ("mysqlx_zstd_default_compression_level") + * The lock mode to use for generating auto-increment values. Permissible values are 0, 1, or 2, + * for traditional, consecutive, or interleaved, respectively. + * + *

innodbAutoincLockMode corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_autoinc_lock_mode] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_autoinc_lock_mode). * * @return the value */ - public Integer getMysqlxZstdDefaultCompressionLevel() { - return mysqlxZstdDefaultCompressionLevel; + public Integer getInnodbAutoincLockMode() { + return innodbAutoincLockMode; } - /** DEPRECATED -- typo of mysqlx_zstd_default_compression_level. variable will be ignored. */ - @com.fasterxml.jackson.annotation.JsonProperty("mysqlZstdDefaultCompressionLevel") - private final Integer mysqlZstdDefaultCompressionLevel; + /** + * InnoDB rolls back only the last statement on a transaction timeout by default. If + * --innodb-rollback-on-timeout is specified, a transaction timeout causes InnoDB to abort and + * roll back the entire transaction. + * + *

innodbRollbackOnTimeout corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_rollback_on_timeout] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_rollback_on_timeout). + */ + @com.fasterxml.jackson.annotation.JsonProperty("innodbRollbackOnTimeout") + private final Boolean innodbRollbackOnTimeout; /** - * DEPRECATED -- typo of mysqlx_zstd_default_compression_level. variable will be ignored. + * InnoDB rolls back only the last statement on a transaction timeout by default. If + * --innodb-rollback-on-timeout is specified, a transaction timeout causes InnoDB to abort and + * roll back the entire transaction. + * + *

innodbRollbackOnTimeout corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_rollback_on_timeout] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_rollback_on_timeout). * * @return the value */ - public Integer getMysqlZstdDefaultCompressionLevel() { - return mysqlZstdDefaultCompressionLevel; + public Boolean getInnodbRollbackOnTimeout() { + return innodbRollbackOnTimeout; } /** - * Each session that must perform a sort allocates a buffer of this size. + * Specifies an upper limit in bytes on the size of the temporary log files used during online + * DDL operations for InnoDB tables. There is one such log file for each index being created or + * table being altered. This log file stores data inserted, updated, or deleted in the table + * during the DDL operation. * - *

sortBufferSize corresponds to the MySQL system variable - * [sort_buffer_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_sort_buffer_size) + *

innodbOnlineAlterLogMaxSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_online_alter_log_max_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_online_alter_log_max_size). */ - @com.fasterxml.jackson.annotation.JsonProperty("sortBufferSize") - private final Long sortBufferSize; + @com.fasterxml.jackson.annotation.JsonProperty("innodbOnlineAlterLogMaxSize") + private final Long innodbOnlineAlterLogMaxSize; /** - * Each session that must perform a sort allocates a buffer of this size. + * Specifies an upper limit in bytes on the size of the temporary log files used during online + * DDL operations for InnoDB tables. There is one such log file for each index being created or + * table being altered. This log file stores data inserted, updated, or deleted in the table + * during the DDL operation. * - *

sortBufferSize corresponds to the MySQL system variable - * [sort_buffer_size](https://dev.mysql.com/doc/refman/en/server-system-variables.html#sysvar_sort_buffer_size) + *

innodbOnlineAlterLogMaxSize corresponds to the MySQL InnoDB Startup Options and System + * Variables [innodb_online_alter_log_max_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_online_alter_log_max_size). * * @return the value */ - public Long getSortBufferSize() { - return sortBufferSize; + public Long getInnodbOnlineAlterLogMaxSize() { + return innodbOnlineAlterLogMaxSize; } /** - * The number of seconds the server waits for activity on a noninteractive connection before - * closing it. + * This variable defines: * - *

waitTimeout corresponds to the MySQL system variable. - * [wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) + *

The sort buffer size for online DDL operations that create or rebuild secondary indexes. + * However, as of MySQL 8.0.27, this responsibility is subsumed by the innodb_ddl_buffer_size + * variable. + * + *

The amount by which the temporary log file is extended when recording concurrent DML + * during an online DDL operation, and the size of the temporary log file read buffer and write + * buffer. + * + *

innodbSortBufferSize corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_sort_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size). */ - @com.fasterxml.jackson.annotation.JsonProperty("waitTimeout") - private final Integer waitTimeout; + @com.fasterxml.jackson.annotation.JsonProperty("innodbSortBufferSize") + private final Integer innodbSortBufferSize; /** - * The number of seconds the server waits for activity on a noninteractive connection before - * closing it. + * This variable defines: * - *

waitTimeout corresponds to the MySQL system variable. - * [wait_timeout](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_wait_timeout) + *

The sort buffer size for online DDL operations that create or rebuild secondary indexes. + * However, as of MySQL 8.0.27, this responsibility is subsumed by the innodb_ddl_buffer_size + * variable. + * + *

The amount by which the temporary log file is extended when recording concurrent DML + * during an online DDL operation, and the size of the temporary log file read buffer and write + * buffer. + * + *

innodbSortBufferSize corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_sort_buffer_size] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size). * * @return the value */ - public Integer getWaitTimeout() { - return waitTimeout; + public Integer getInnodbSortBufferSize() { + return innodbSortBufferSize; } /** - * Controls whether the thread pool uses dedicated listener threads. If enabled, a listener - * thread in each thread group is dedicated to the task of listening for network events from - * clients, ensuring that the maximum number of query worker threads is no more than the value - * specified by threadPoolMaxTransactionsLimit. threadPoolDedicatedListeners corresponds to the - * MySQL Database Service-specific system variable thread_pool_dedicated_listeners. + * Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. When + * innodb_numa_interleave is enabled, the NUMA memory policy is set to MPOL_INTERLEAVE for the + * mysqld process. After the InnoDB buffer pool is allocated, the NUMA memory policy is set back + * to MPOL_DEFAULT. For the innodb_numa_interleave option to be available, MySQL must be + * compiled on a NUMA-enabled Linux system. + * + *

innodbNumaInterleave corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_numa_interleave] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_numa_interleave). */ - @com.fasterxml.jackson.annotation.JsonProperty("threadPoolDedicatedListeners") - private final Boolean threadPoolDedicatedListeners; + @com.fasterxml.jackson.annotation.JsonProperty("innodbNumaInterleave") + private final Boolean innodbNumaInterleave; /** - * Controls whether the thread pool uses dedicated listener threads. If enabled, a listener - * thread in each thread group is dedicated to the task of listening for network events from - * clients, ensuring that the maximum number of query worker threads is no more than the value - * specified by threadPoolMaxTransactionsLimit. threadPoolDedicatedListeners corresponds to the - * MySQL Database Service-specific system variable thread_pool_dedicated_listeners. + * Enables the NUMA interleave memory policy for allocation of the InnoDB buffer pool. When + * innodb_numa_interleave is enabled, the NUMA memory policy is set to MPOL_INTERLEAVE for the + * mysqld process. After the InnoDB buffer pool is allocated, the NUMA memory policy is set back + * to MPOL_DEFAULT. For the innodb_numa_interleave option to be available, MySQL must be + * compiled on a NUMA-enabled Linux system. + * + *

innodbNumaInterleave corresponds to the MySQL InnoDB Startup Options and System Variables + * [innodb_numa_interleave] + * (https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_numa_interleave). * * @return the value */ - public Boolean getThreadPoolDedicatedListeners() { - return threadPoolDedicatedListeners; + public Boolean getInnodbNumaInterleave() { + return innodbNumaInterleave; } /** - * Limits the maximum number of open transactions to the defined value. The default value is 0, - * which enforces no limit. threadPoolMaxTransactionsLimit corresponds to the MySQL Database - * Service-specific system variable thread_pool_max_transactions_limit. + * The number of thread groups in the thread pool. This is the most important parameter + * controlling thread pool performance. It affects how many statements can execute + * simultaneously. If a value outside the range of permissible values is specified, the thread + * pool plugin does not load and the server writes a message to the error log. + * + *

threadPoolSize corresponds to the MySQL Server System variable [thread_pool_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_size). */ - @com.fasterxml.jackson.annotation.JsonProperty("threadPoolMaxTransactionsLimit") - private final Integer threadPoolMaxTransactionsLimit; + @com.fasterxml.jackson.annotation.JsonProperty("threadPoolSize") + private final Integer threadPoolSize; /** - * Limits the maximum number of open transactions to the defined value. The default value is 0, - * which enforces no limit. threadPoolMaxTransactionsLimit corresponds to the MySQL Database - * Service-specific system variable thread_pool_max_transactions_limit. + * The number of thread groups in the thread pool. This is the most important parameter + * controlling thread pool performance. It affects how many statements can execute + * simultaneously. If a value outside the range of permissible values is specified, the thread + * pool plugin does not load and the server writes a message to the error log. + * + *

threadPoolSize corresponds to the MySQL Server System variable [thread_pool_size] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_thread_pool_size). * * @return the value */ - public Integer getThreadPoolMaxTransactionsLimit() { - return threadPoolMaxTransactionsLimit; + public Integer getThreadPoolSize() { + return threadPoolSize; } /** - * Initializes the time zone for each client that connects. - * - *

This corresponds to the MySQL System Variable "time_zone". - * - *

The values can be given in one of the following formats, none of which are case-sensitive: + * If a query takes longer than this many seconds, the server increments the Slow_queries status + * variable. If the slow query log is enabled, the query is logged to the slow query log file. + * This value is measured in real time, not CPU time, so a query that is under the threshold on + * a lightly loaded system might be above the threshold on a heavily loaded one. * - *

- As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, - * such as '+10:00', '-6:00', or '+05:30'. The permitted range is '-13:59' to '+14:00', - * inclusive. - As a named time zone, as defined by the "IANA Time Zone database", such as - * 'Europe/Helsinki', 'US/Eastern', 'MET', or 'UTC'. + *

longQueryTime corresponds to the MySQL Server System variable [long_query_time] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time). */ - @com.fasterxml.jackson.annotation.JsonProperty("timeZone") - private final String timeZone; + @com.fasterxml.jackson.annotation.JsonProperty("longQueryTime") + private final Integer longQueryTime; /** - * Initializes the time zone for each client that connects. + * If a query takes longer than this many seconds, the server increments the Slow_queries status + * variable. If the slow query log is enabled, the query is logged to the slow query log file. + * This value is measured in real time, not CPU time, so a query that is under the threshold on + * a lightly loaded system might be above the threshold on a heavily loaded one. * - *

This corresponds to the MySQL System Variable "time_zone". - * - *

The values can be given in one of the following formats, none of which are case-sensitive: - * - *

- As a string indicating an offset from UTC of the form [H]H:MM, prefixed with a + or -, - * such as '+10:00', '-6:00', or '+05:30'. The permitted range is '-13:59' to '+14:00', - * inclusive. - As a named time zone, as defined by the "IANA Time Zone database", such as - * 'Europe/Helsinki', 'US/Eastern', 'MET', or 'UTC'. + *

longQueryTime corresponds to the MySQL Server System variable [long_query_time] + * (https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_long_query_time). * * @return the value */ - public String getTimeZone() { - return timeZone; + public Integer getLongQueryTime() { + return longQueryTime; } @Override @@ -4170,6 +7319,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("completionType=").append(String.valueOf(this.completionType)); sb.append(", bigTables=").append(String.valueOf(this.bigTables)); + sb.append(", characterSetServer=").append(String.valueOf(this.characterSetServer)); + sb.append(", collationServer=").append(String.valueOf(this.collationServer)); sb.append(", connectionMemoryChunkSize=") .append(String.valueOf(this.connectionMemoryChunkSize)); sb.append(", connectionMemoryLimit=").append(String.valueOf(this.connectionMemoryLimit)); @@ -4187,6 +7338,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", foreignKeyChecks=").append(String.valueOf(this.foreignKeyChecks)); sb.append(", groupReplicationConsistency=") .append(String.valueOf(this.groupReplicationConsistency)); + sb.append(", groupConcatMaxLen=").append(String.valueOf(this.groupConcatMaxLen)); sb.append(", innodbFtEnableStopword=").append(String.valueOf(this.innodbFtEnableStopword)); sb.append(", innodbLogWriterThreads=").append(String.valueOf(this.innodbLogWriterThreads)); sb.append(", localInfile=").append(String.valueOf(this.localInfile)); @@ -4233,6 +7385,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.innodbStatsPersistentSamplePages)); sb.append(", innodbStatsTransientSamplePages=") .append(String.valueOf(this.innodbStatsTransientSamplePages)); + sb.append(", innodbStrictMode=").append(String.valueOf(this.innodbStrictMode)); sb.append(", maxAllowedPacket=").append(String.valueOf(this.maxAllowedPacket)); sb.append(", maxExecutionTime=").append(String.valueOf(this.maxExecutionTime)); sb.append(", mysqlxConnectTimeout=").append(String.valueOf(this.mysqlxConnectTimeout)); @@ -4276,6 +7429,51 @@ public String toString(boolean includeByteArrayContents) { sb.append(", threadPoolMaxTransactionsLimit=") .append(String.valueOf(this.threadPoolMaxTransactionsLimit)); sb.append(", timeZone=").append(String.valueOf(this.timeZone)); + sb.append(", blockEncryptionMode=").append(String.valueOf(this.blockEncryptionMode)); + sb.append(", binlogGroupCommitSyncDelay=") + .append(String.valueOf(this.binlogGroupCommitSyncDelay)); + sb.append(", binlogGroupCommitSyncNoDelayCount=") + .append(String.valueOf(this.binlogGroupCommitSyncNoDelayCount)); + sb.append(", replicaNetTimeout=").append(String.valueOf(this.replicaNetTimeout)); + sb.append(", requireSecureTransport=").append(String.valueOf(this.requireSecureTransport)); + sb.append(", innodbRedoLogCapacity=").append(String.valueOf(this.innodbRedoLogCapacity)); + sb.append(", threadPoolTransactionDelay=") + .append(String.valueOf(this.threadPoolTransactionDelay)); + sb.append(", threadPoolQueryThreadsPerGroup=") + .append(String.valueOf(this.threadPoolQueryThreadsPerGroup)); + sb.append(", explainFormat=").append(String.valueOf(this.explainFormat)); + sb.append(", explicitDefaultsForTimestamp=") + .append(String.valueOf(this.explicitDefaultsForTimestamp)); + sb.append(", sqlGenerateInvisiblePrimaryKey=") + .append(String.valueOf(this.sqlGenerateInvisiblePrimaryKey)); + sb.append(", temptableMaxRam=").append(String.valueOf(this.temptableMaxRam)); + sb.append(", innodbChangeBuffering=").append(String.valueOf(this.innodbChangeBuffering)); + sb.append(", innodbAdaptiveHashIndex=") + .append(String.valueOf(this.innodbAdaptiveHashIndex)); + sb.append(", innodbUndoLogTruncate=").append(String.valueOf(this.innodbUndoLogTruncate)); + sb.append(", tableDefinitionCache=").append(String.valueOf(this.tableDefinitionCache)); + sb.append(", tableOpenCache=").append(String.valueOf(this.tableOpenCache)); + sb.append(", relayLogSpaceLimit=").append(String.valueOf(this.relayLogSpaceLimit)); + sb.append(", optimizerSwitch=").append(String.valueOf(this.optimizerSwitch)); + sb.append(", replicaTypeConversions=").append(String.valueOf(this.replicaTypeConversions)); + sb.append(", replicaParallelWorkers=").append(String.valueOf(this.replicaParallelWorkers)); + sb.append(", skipNameResolve=").append(String.valueOf(this.skipNameResolve)); + sb.append(", maxUserConnections=").append(String.valueOf(this.maxUserConnections)); + sb.append(", joinBufferSize=").append(String.valueOf(this.joinBufferSize)); + sb.append(", maxSeeksForKey=").append(String.valueOf(this.maxSeeksForKey)); + sb.append(", rangeOptimizerMaxMemSize=") + .append(String.valueOf(this.rangeOptimizerMaxMemSize)); + sb.append(", autoIncrementIncrement=").append(String.valueOf(this.autoIncrementIncrement)); + sb.append(", autoIncrementOffset=").append(String.valueOf(this.autoIncrementOffset)); + sb.append(", innodbAutoincLockMode=").append(String.valueOf(this.innodbAutoincLockMode)); + sb.append(", innodbRollbackOnTimeout=") + .append(String.valueOf(this.innodbRollbackOnTimeout)); + sb.append(", innodbOnlineAlterLogMaxSize=") + .append(String.valueOf(this.innodbOnlineAlterLogMaxSize)); + sb.append(", innodbSortBufferSize=").append(String.valueOf(this.innodbSortBufferSize)); + sb.append(", innodbNumaInterleave=").append(String.valueOf(this.innodbNumaInterleave)); + sb.append(", threadPoolSize=").append(String.valueOf(this.threadPoolSize)); + sb.append(", longQueryTime=").append(String.valueOf(this.longQueryTime)); sb.append(")"); return sb.toString(); } @@ -4292,6 +7490,8 @@ public boolean equals(Object o) { ConfigurationVariables other = (ConfigurationVariables) o; return java.util.Objects.equals(this.completionType, other.completionType) && java.util.Objects.equals(this.bigTables, other.bigTables) + && java.util.Objects.equals(this.characterSetServer, other.characterSetServer) + && java.util.Objects.equals(this.collationServer, other.collationServer) && java.util.Objects.equals( this.connectionMemoryChunkSize, other.connectionMemoryChunkSize) && java.util.Objects.equals(this.connectionMemoryLimit, other.connectionMemoryLimit) @@ -4309,6 +7509,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.foreignKeyChecks, other.foreignKeyChecks) && java.util.Objects.equals( this.groupReplicationConsistency, other.groupReplicationConsistency) + && java.util.Objects.equals(this.groupConcatMaxLen, other.groupConcatMaxLen) && java.util.Objects.equals( this.innodbFtEnableStopword, other.innodbFtEnableStopword) && java.util.Objects.equals( @@ -4359,6 +7560,7 @@ public boolean equals(Object o) { other.innodbStatsPersistentSamplePages) && java.util.Objects.equals( this.innodbStatsTransientSamplePages, other.innodbStatsTransientSamplePages) + && java.util.Objects.equals(this.innodbStrictMode, other.innodbStrictMode) && java.util.Objects.equals(this.maxAllowedPacket, other.maxAllowedPacket) && java.util.Objects.equals(this.maxExecutionTime, other.maxExecutionTime) && java.util.Objects.equals(this.mysqlxConnectTimeout, other.mysqlxConnectTimeout) @@ -4411,6 +7613,56 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.threadPoolMaxTransactionsLimit, other.threadPoolMaxTransactionsLimit) && java.util.Objects.equals(this.timeZone, other.timeZone) + && java.util.Objects.equals(this.blockEncryptionMode, other.blockEncryptionMode) + && java.util.Objects.equals( + this.binlogGroupCommitSyncDelay, other.binlogGroupCommitSyncDelay) + && java.util.Objects.equals( + this.binlogGroupCommitSyncNoDelayCount, + other.binlogGroupCommitSyncNoDelayCount) + && java.util.Objects.equals(this.replicaNetTimeout, other.replicaNetTimeout) + && java.util.Objects.equals( + this.requireSecureTransport, other.requireSecureTransport) + && java.util.Objects.equals(this.innodbRedoLogCapacity, other.innodbRedoLogCapacity) + && java.util.Objects.equals( + this.threadPoolTransactionDelay, other.threadPoolTransactionDelay) + && java.util.Objects.equals( + this.threadPoolQueryThreadsPerGroup, other.threadPoolQueryThreadsPerGroup) + && java.util.Objects.equals(this.explainFormat, other.explainFormat) + && java.util.Objects.equals( + this.explicitDefaultsForTimestamp, other.explicitDefaultsForTimestamp) + && java.util.Objects.equals( + this.sqlGenerateInvisiblePrimaryKey, other.sqlGenerateInvisiblePrimaryKey) + && java.util.Objects.equals(this.temptableMaxRam, other.temptableMaxRam) + && java.util.Objects.equals(this.innodbChangeBuffering, other.innodbChangeBuffering) + && java.util.Objects.equals( + this.innodbAdaptiveHashIndex, other.innodbAdaptiveHashIndex) + && java.util.Objects.equals(this.innodbUndoLogTruncate, other.innodbUndoLogTruncate) + && java.util.Objects.equals(this.tableDefinitionCache, other.tableDefinitionCache) + && java.util.Objects.equals(this.tableOpenCache, other.tableOpenCache) + && java.util.Objects.equals(this.relayLogSpaceLimit, other.relayLogSpaceLimit) + && java.util.Objects.equals(this.optimizerSwitch, other.optimizerSwitch) + && java.util.Objects.equals( + this.replicaTypeConversions, other.replicaTypeConversions) + && java.util.Objects.equals( + this.replicaParallelWorkers, other.replicaParallelWorkers) + && java.util.Objects.equals(this.skipNameResolve, other.skipNameResolve) + && java.util.Objects.equals(this.maxUserConnections, other.maxUserConnections) + && java.util.Objects.equals(this.joinBufferSize, other.joinBufferSize) + && java.util.Objects.equals(this.maxSeeksForKey, other.maxSeeksForKey) + && java.util.Objects.equals( + this.rangeOptimizerMaxMemSize, other.rangeOptimizerMaxMemSize) + && java.util.Objects.equals( + this.autoIncrementIncrement, other.autoIncrementIncrement) + && java.util.Objects.equals(this.autoIncrementOffset, other.autoIncrementOffset) + && java.util.Objects.equals(this.innodbAutoincLockMode, other.innodbAutoincLockMode) + && java.util.Objects.equals( + this.innodbRollbackOnTimeout, other.innodbRollbackOnTimeout) + && java.util.Objects.equals( + this.innodbOnlineAlterLogMaxSize, other.innodbOnlineAlterLogMaxSize) + && java.util.Objects.equals(this.innodbSortBufferSize, other.innodbSortBufferSize) + && java.util.Objects.equals(this.innodbNumaInterleave, other.innodbNumaInterleave) + && java.util.Objects.equals(this.threadPoolSize, other.threadPoolSize) + && java.util.Objects.equals(this.longQueryTime, other.longQueryTime) && super.equals(other); } @@ -4422,6 +7674,14 @@ public int hashCode() { (result * PRIME) + (this.completionType == null ? 43 : this.completionType.hashCode()); result = (result * PRIME) + (this.bigTables == null ? 43 : this.bigTables.hashCode()); + result = + (result * PRIME) + + (this.characterSetServer == null + ? 43 + : this.characterSetServer.hashCode()); + result = + (result * PRIME) + + (this.collationServer == null ? 43 : this.collationServer.hashCode()); result = (result * PRIME) + (this.connectionMemoryChunkSize == null @@ -4469,6 +7729,9 @@ public int hashCode() { + (this.groupReplicationConsistency == null ? 43 : this.groupReplicationConsistency.hashCode()); + result = + (result * PRIME) + + (this.groupConcatMaxLen == null ? 43 : this.groupConcatMaxLen.hashCode()); result = (result * PRIME) + (this.innodbFtEnableStopword == null @@ -4620,6 +7883,9 @@ public int hashCode() { + (this.innodbStatsTransientSamplePages == null ? 43 : this.innodbStatsTransientSamplePages.hashCode()); + result = + (result * PRIME) + + (this.innodbStrictMode == null ? 43 : this.innodbStrictMode.hashCode()); result = (result * PRIME) + (this.maxAllowedPacket == null ? 43 : this.maxAllowedPacket.hashCode()); @@ -4739,6 +8005,161 @@ public int hashCode() { ? 43 : this.threadPoolMaxTransactionsLimit.hashCode()); result = (result * PRIME) + (this.timeZone == null ? 43 : this.timeZone.hashCode()); + result = + (result * PRIME) + + (this.blockEncryptionMode == null + ? 43 + : this.blockEncryptionMode.hashCode()); + result = + (result * PRIME) + + (this.binlogGroupCommitSyncDelay == null + ? 43 + : this.binlogGroupCommitSyncDelay.hashCode()); + result = + (result * PRIME) + + (this.binlogGroupCommitSyncNoDelayCount == null + ? 43 + : this.binlogGroupCommitSyncNoDelayCount.hashCode()); + result = + (result * PRIME) + + (this.replicaNetTimeout == null ? 43 : this.replicaNetTimeout.hashCode()); + result = + (result * PRIME) + + (this.requireSecureTransport == null + ? 43 + : this.requireSecureTransport.hashCode()); + result = + (result * PRIME) + + (this.innodbRedoLogCapacity == null + ? 43 + : this.innodbRedoLogCapacity.hashCode()); + result = + (result * PRIME) + + (this.threadPoolTransactionDelay == null + ? 43 + : this.threadPoolTransactionDelay.hashCode()); + result = + (result * PRIME) + + (this.threadPoolQueryThreadsPerGroup == null + ? 43 + : this.threadPoolQueryThreadsPerGroup.hashCode()); + result = + (result * PRIME) + + (this.explainFormat == null ? 43 : this.explainFormat.hashCode()); + result = + (result * PRIME) + + (this.explicitDefaultsForTimestamp == null + ? 43 + : this.explicitDefaultsForTimestamp.hashCode()); + result = + (result * PRIME) + + (this.sqlGenerateInvisiblePrimaryKey == null + ? 43 + : this.sqlGenerateInvisiblePrimaryKey.hashCode()); + result = + (result * PRIME) + + (this.temptableMaxRam == null ? 43 : this.temptableMaxRam.hashCode()); + result = + (result * PRIME) + + (this.innodbChangeBuffering == null + ? 43 + : this.innodbChangeBuffering.hashCode()); + result = + (result * PRIME) + + (this.innodbAdaptiveHashIndex == null + ? 43 + : this.innodbAdaptiveHashIndex.hashCode()); + result = + (result * PRIME) + + (this.innodbUndoLogTruncate == null + ? 43 + : this.innodbUndoLogTruncate.hashCode()); + result = + (result * PRIME) + + (this.tableDefinitionCache == null + ? 43 + : this.tableDefinitionCache.hashCode()); + result = + (result * PRIME) + + (this.tableOpenCache == null ? 43 : this.tableOpenCache.hashCode()); + result = + (result * PRIME) + + (this.relayLogSpaceLimit == null + ? 43 + : this.relayLogSpaceLimit.hashCode()); + result = + (result * PRIME) + + (this.optimizerSwitch == null ? 43 : this.optimizerSwitch.hashCode()); + result = + (result * PRIME) + + (this.replicaTypeConversions == null + ? 43 + : this.replicaTypeConversions.hashCode()); + result = + (result * PRIME) + + (this.replicaParallelWorkers == null + ? 43 + : this.replicaParallelWorkers.hashCode()); + result = + (result * PRIME) + + (this.skipNameResolve == null ? 43 : this.skipNameResolve.hashCode()); + result = + (result * PRIME) + + (this.maxUserConnections == null + ? 43 + : this.maxUserConnections.hashCode()); + result = + (result * PRIME) + + (this.joinBufferSize == null ? 43 : this.joinBufferSize.hashCode()); + result = + (result * PRIME) + + (this.maxSeeksForKey == null ? 43 : this.maxSeeksForKey.hashCode()); + result = + (result * PRIME) + + (this.rangeOptimizerMaxMemSize == null + ? 43 + : this.rangeOptimizerMaxMemSize.hashCode()); + result = + (result * PRIME) + + (this.autoIncrementIncrement == null + ? 43 + : this.autoIncrementIncrement.hashCode()); + result = + (result * PRIME) + + (this.autoIncrementOffset == null + ? 43 + : this.autoIncrementOffset.hashCode()); + result = + (result * PRIME) + + (this.innodbAutoincLockMode == null + ? 43 + : this.innodbAutoincLockMode.hashCode()); + result = + (result * PRIME) + + (this.innodbRollbackOnTimeout == null + ? 43 + : this.innodbRollbackOnTimeout.hashCode()); + result = + (result * PRIME) + + (this.innodbOnlineAlterLogMaxSize == null + ? 43 + : this.innodbOnlineAlterLogMaxSize.hashCode()); + result = + (result * PRIME) + + (this.innodbSortBufferSize == null + ? 43 + : this.innodbSortBufferSize.hashCode()); + result = + (result * PRIME) + + (this.innodbNumaInterleave == null + ? 43 + : this.innodbNumaInterleave.hashCode()); + result = + (result * PRIME) + + (this.threadPoolSize == null ? 43 : this.threadPoolSize.hashCode()); + result = + (result * PRIME) + + (this.longQueryTime == null ? 43 : this.longQueryTime.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } 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 f85502f64f0..d19445837f1 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 @@ -54,6 +54,7 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "timeUpdated", "freeformTags", "definedTags", + "systemTags", "crashRecovery", "pointInTimeRecoveryDetails", "databaseManagement", @@ -96,6 +97,7 @@ public DbSystem( java.util.Date timeUpdated, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, CrashRecoveryStatus crashRecovery, PointInTimeRecoveryDetails pointInTimeRecoveryDetails, DatabaseManagementStatus databaseManagement, @@ -137,6 +139,7 @@ public DbSystem( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; this.crashRecovery = crashRecovery; this.pointInTimeRecoveryDetails = pointInTimeRecoveryDetails; this.databaseManagement = databaseManagement; @@ -662,6 +665,25 @@ public Builder 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; + } /** * Whether to run the DB System with InnoDB Redo Logs and the Double Write Buffer enabled or * disabled, and whether to enable or disable syncing of the Binary Logs. @@ -842,6 +864,7 @@ public DbSystem build() { this.timeUpdated, this.freeformTags, this.definedTags, + this.systemTags, this.crashRecovery, this.pointInTimeRecoveryDetails, this.databaseManagement, @@ -954,6 +977,9 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("crashRecovery")) { this.crashRecovery(model.getCrashRecovery()); } @@ -1490,6 +1516,23 @@ 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; + } + /** * Whether to run the DB System with InnoDB Redo Logs and the Double Write Buffer enabled or * disabled, and whether to enable or disable syncing of the Binary Logs. @@ -1765,6 +1808,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); 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(", crashRecovery=").append(String.valueOf(this.crashRecovery)); sb.append(", pointInTimeRecoveryDetails=") .append(String.valueOf(this.pointInTimeRecoveryDetails)); @@ -1821,6 +1865,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && 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.crashRecovery, other.crashRecovery) && java.util.Objects.equals( this.pointInTimeRecoveryDetails, other.pointInTimeRecoveryDetails) @@ -1899,6 +1944,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.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.crashRecovery == null ? 43 : this.crashRecovery.hashCode()); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSummary.java index 181f2cea7ab..f24ce78d860 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSummary.java @@ -41,6 +41,7 @@ public final class DbSystemSummary "deletionPolicy", "freeformTags", "definedTags", + "systemTags", "backupPolicy", "shapeName", "crashRecovery", @@ -68,6 +69,7 @@ public DbSystemSummary( DeletionPolicyDetails deletionPolicy, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> systemTags, BackupPolicy backupPolicy, String shapeName, CrashRecoveryStatus crashRecovery, @@ -94,6 +96,7 @@ public DbSystemSummary( this.deletionPolicy = deletionPolicy; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; this.backupPolicy = backupPolicy; this.shapeName = shapeName; this.crashRecovery = crashRecovery; @@ -402,6 +405,25 @@ public Builder 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("backupPolicy") private BackupPolicy backupPolicy; @@ -556,6 +578,7 @@ public DbSystemSummary build() { this.deletionPolicy, this.freeformTags, this.definedTags, + this.systemTags, this.backupPolicy, this.shapeName, this.crashRecovery, @@ -625,6 +648,9 @@ public Builder copy(DbSystemSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } if (model.wasPropertyExplicitlySet("backupPolicy")) { this.backupPolicy(model.getBackupPolicy()); } @@ -919,6 +945,23 @@ 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("backupPolicy") private final BackupPolicy backupPolicy; @@ -1068,6 +1111,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", deletionPolicy=").append(String.valueOf(this.deletionPolicy)); 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(", backupPolicy=").append(String.valueOf(this.backupPolicy)); sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", crashRecovery=").append(String.valueOf(this.crashRecovery)); @@ -1108,6 +1152,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.deletionPolicy, other.deletionPolicy) && 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.backupPolicy, other.backupPolicy) && java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.crashRecovery, other.crashRecovery) @@ -1160,6 +1205,7 @@ public int hashCode() { + (this.deletionPolicy == null ? 43 : this.deletionPolicy.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.backupPolicy == null ? 43 : this.backupPolicy.hashCode()); result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); result = diff --git a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json index 01702370309..19f2535b2a3 100644 --- a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json +++ b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json @@ -327,6 +327,18 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ConfigurationVariables$CharacterSetServer", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ConfigurationVariables$CollationServer", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.ConfigurationVariables$DefaultAuthenticationPlugin", @@ -351,6 +363,18 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ConfigurationVariables$ExplainFormat", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.ConfigurationVariables$InnodbChangeBuffering", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.CopyBackupDetails", diff --git a/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties b/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties index cfbb6672f01..0038674f3e0 100644 --- a/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties +++ b/bmc-mysql/src/main/resources/com/oracle/bmc/mysql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 49acf4b4720..b0fe20f14dd 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties b/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties index df6a3d2231f..806fe9682e4 100644 --- a/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties +++ b/bmc-networkfirewall/src/main/resources/com/oracle/bmc/networkfirewall/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230501") \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index e2c9da68a32..375aa2ebcbb 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties b/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties index 104f52484ad..847b8550903 100644 --- a/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties +++ b/bmc-networkloadbalancer/src/main/resources/com/oracle/bmc/networkloadbalancer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200501") \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 1cf87752070..8776d352c76 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties b/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties index febc9e4e58d..b972989cb86 100644 --- a/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties +++ b/bmc-nosql/src/main/resources/com/oracle/bmc/nosql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190828") \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 4ef64a1a307..fe6198fb7d9 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.57.2 + 3.58.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.57.2 + 3.58.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 9cb1f6f0aa6..24d3ff51cae 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.57.2 + 3.58.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.57.2 + 3.58.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 04ccbe2a83e..747f88483b1 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.57.2 + 3.58.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/resources/com/oracle/bmc/objectstorage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 10b8bce8a86..ed891f80dd0 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 7addb337505..ca2b391a629 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties b/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties index 545a1f9f278..fa5391a0848 100644 --- a/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties +++ b/bmc-oce/src/main/resources/com/oracle/bmc/oce/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190912") \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index ab9583980ba..12b9e89f6ff 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties b/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties index 0e69e751831..ae6cee04cd7 100644 --- a/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties +++ b/bmc-ocicontrolcenter/src/main/resources/com/oracle/bmc/ocicontrolcenter/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230515") \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 1a0cbe74a29..967d06387a1 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties b/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties index 730d5b63806..fa0443bc615 100644 --- a/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties +++ b/bmc-ocvp/src/main/resources/com/oracle/bmc/ocvp/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 9a466a96017..fe11993eaa6 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties b/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties index e294efde207..8768604734c 100644 --- a/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties +++ b/bmc-oda/src/main/resources/com/oracle/bmc/oda/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190506") \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 5c76ce40fbc..852a268d44f 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties b/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties index 0170c01e3b0..e795f427b83 100644 --- a/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties +++ b/bmc-onesubscription/src/main/resources/com/oracle/bmc/onesubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 57358c9368d..9c18bfe7e10 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties b/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties index 1f8ec770a6d..526bdb209c3 100644 --- a/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties +++ b/bmc-ons/src/main/resources/com/oracle/bmc/ons/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index c97d245594a..6bfc88c1f3f 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties b/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties index 2a6a17ba124..0f3785aed30 100644 --- a/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties +++ b/bmc-opa/src/main/resources/com/oracle/bmc/opa/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210621") \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 6b171988343..e2670ec8cce 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties b/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties index f785785598d..63d617e0d35 100644 --- a/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties +++ b/bmc-opensearch/src/main/resources/com/oracle/bmc/opensearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 13eb06a945b..882f80a4216 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties b/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties index a258d075e29..37d5cb6e06d 100644 --- a/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties +++ b/bmc-operatoraccesscontrol/src/main/resources/com/oracle/bmc/operatoraccesscontrol/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 29d1f552858..687f24b3f9e 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties b/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties index a258d075e29..37d5cb6e06d 100644 --- a/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties +++ b/bmc-opsi/src/main/resources/com/oracle/bmc/opsi/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 9ce42414cc4..f05be16c7e7 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties b/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties index 352af003a1b..46b6dba0133 100644 --- a/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties +++ b/bmc-optimizer/src/main/resources/com/oracle/bmc/optimizer/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200606") \ No newline at end of file diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 1023c83937e..3a2d987bc99 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-osmanagement/src/main/resources/com/oracle/bmc/osmanagement/client.properties b/bmc-osmanagement/src/main/resources/com/oracle/bmc/osmanagement/client.properties index f9480b25a68..150cf7eda04 100644 --- a/bmc-osmanagement/src/main/resources/com/oracle/bmc/osmanagement/client.properties +++ b/bmc-osmanagement/src/main/resources/com/oracle/bmc/osmanagement/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190801") \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index ae6dc9c41de..95f5b46b52b 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironment.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironment.java index dcb572b5ed8..e943179ebe6 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironment.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironment.java @@ -268,6 +268,22 @@ ListLifecycleStageInstalledPackagesResponse listLifecycleStageInstalledPackages( PromoteSoftwareSourceToLifecycleStageResponse promoteSoftwareSourceToLifecycleStage( PromoteSoftwareSourceToLifecycleStageRequest request); + /** + * Reboots all managed instances in the specified lifecycle stage. + * + * @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 + * RebootLifecycleStage API. + */ + RebootLifecycleStageResponse rebootLifecycleStage(RebootLifecycleStageRequest request); + /** * Updates the specified lifecycle environment's name, description, stages, or tags. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsync.java index 9eff0292fe5..14def7100f3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsync.java @@ -267,6 +267,22 @@ java.util.concurrent.Future listLifecycleStages( PromoteSoftwareSourceToLifecycleStageResponse> handler); + /** + * Reboots all managed instances in the specified lifecycle stage. + * + * @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 rebootLifecycleStage( + RebootLifecycleStageRequest request, + com.oracle.bmc.responses.AsyncHandler< + RebootLifecycleStageRequest, RebootLifecycleStageResponse> + handler); + /** * Updates the specified lifecycle environment's name, description, stages, or tags. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsyncClient.java index 0d1f26eddc8..4d14bfab980 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentAsyncClient.java @@ -540,6 +540,44 @@ public java.util.concurrent.Future listLifecycleSta .callAsync(handler); } + @Override + public java.util.concurrent.Future rebootLifecycleStage( + RebootLifecycleStageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RebootLifecycleStageRequest, RebootLifecycleStageResponse> + handler) { + + Validate.notBlank(request.getLifecycleStageId(), "lifecycleStageId must not be blank"); + Objects.requireNonNull( + request.getRebootLifecycleStageDetails(), + "rebootLifecycleStageDetails is required"); + + return clientCall(request, RebootLifecycleStageResponse::builder) + .logger(LOG, "rebootLifecycleStage") + .serviceDetails( + "LifecycleEnvironment", + "RebootLifecycleStage", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/LifecycleStage/RebootLifecycleStage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootLifecycleStageRequest::builder) + .basePath("/20220901") + .appendPathParam("lifecycleStages") + .appendPathParam(request.getLifecycleStageId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootLifecycleStageResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootLifecycleStageResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateLifecycleEnvironment( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentClient.java index 5c0b4f80350..8b111ad798a 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/LifecycleEnvironmentClient.java @@ -532,6 +532,41 @@ public PromoteSoftwareSourceToLifecycleStageResponse promoteSoftwareSourceToLife .callSync(); } + @Override + public RebootLifecycleStageResponse rebootLifecycleStage(RebootLifecycleStageRequest request) { + + Validate.notBlank(request.getLifecycleStageId(), "lifecycleStageId must not be blank"); + Objects.requireNonNull( + request.getRebootLifecycleStageDetails(), + "rebootLifecycleStageDetails is required"); + + return clientCall(request, RebootLifecycleStageResponse::builder) + .logger(LOG, "rebootLifecycleStage") + .serviceDetails( + "LifecycleEnvironment", + "RebootLifecycleStage", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/LifecycleStage/RebootLifecycleStage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootLifecycleStageRequest::builder) + .basePath("/20220901") + .appendPathParam("lifecycleStages") + .appendPathParam(request.getLifecycleStageId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootLifecycleStageResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootLifecycleStageResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateLifecycleEnvironmentResponse updateLifecycleEnvironment( UpdateLifecycleEnvironmentRequest request) { diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java index 8e8001297fc..aa37e7ff616 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstance.java @@ -66,6 +66,24 @@ public interface ManagedInstance extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Associates managed instances to the specified management station + * + * @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 + * AssociateManagedInstancesWithManagementStation API. + */ + AssociateManagedInstancesWithManagementStationResponse + associateManagedInstancesWithManagementStation( + AssociateManagedInstancesWithManagementStationRequest request); + /** * Adds profile to a managed instance. After the profile has been added, the instance can be * registered as a managed instance. @@ -497,6 +515,23 @@ ListManagedInstanceUpdatablePackagesResponse listManagedInstanceUpdatablePackage ManageModuleStreamsOnManagedInstanceResponse manageModuleStreamsOnManagedInstance( ManageModuleStreamsOnManagedInstanceRequest request); + /** + * Initiates a reboot of the specified managed instance. You can also specify the number of + * minutes the service waits before marking the reboot operation as failed. + * + * @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 + * RebootManagedInstance API. + */ + RebootManagedInstanceResponse rebootManagedInstance(RebootManagedInstanceRequest request); + /** * Refreshes the package or Windows update information on a managed instance with the latest * data from the software source. This does not update packages on the instance. It provides the diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java index 5b65c231be5..574e8bbc0da 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsync.java @@ -63,6 +63,24 @@ public interface ManagedInstanceAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Associates managed instances to the specified management station + * + * @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 + associateManagedInstancesWithManagementStation( + AssociateManagedInstancesWithManagementStationRequest request, + com.oracle.bmc.responses.AsyncHandler< + AssociateManagedInstancesWithManagementStationRequest, + AssociateManagedInstancesWithManagementStationResponse> + handler); + /** * Adds profile to a managed instance. After the profile has been added, the instance can be * registered as a managed instance. @@ -507,6 +525,23 @@ java.util.concurrent.Future listWindowsUpdates( ManageModuleStreamsOnManagedInstanceResponse> handler); + /** + * Initiates a reboot of the specified managed instance. You can also specify the number of + * minutes the service waits before marking the reboot operation as failed. + * + * @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 rebootManagedInstance( + RebootManagedInstanceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RebootManagedInstanceRequest, RebootManagedInstanceResponse> + handler); + /** * Refreshes the package or Windows update information on a managed instance with the latest * data from the software source. This does not update packages on the instance. It provides the diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java index 5a5282ff367..359c38c3710 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceAsyncClient.java @@ -95,6 +95,50 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + associateManagedInstancesWithManagementStation( + AssociateManagedInstancesWithManagementStationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AssociateManagedInstancesWithManagementStationRequest, + AssociateManagedInstancesWithManagementStationResponse> + handler) { + + Validate.notBlank( + request.getManagementStationId(), "managementStationId must not be blank"); + Objects.requireNonNull( + request.getAssociateManagedInstancesWithManagementStationDetails(), + "associateManagedInstancesWithManagementStationDetails is required"); + + return clientCall(request, AssociateManagedInstancesWithManagementStationResponse::builder) + .logger(LOG, "associateManagedInstancesWithManagementStation") + .serviceDetails( + "ManagedInstance", + "AssociateManagedInstancesWithManagementStation", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/AssociateManagedInstancesWithManagementStation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AssociateManagedInstancesWithManagementStationRequest::builder) + .basePath("/20220901") + .appendPathParam("managementStations") + .appendPathParam(request.getManagementStationId()) + .appendPathParam("actions") + .appendPathParam("associateManagedInstances") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AssociateManagedInstancesWithManagementStationResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AssociateManagedInstancesWithManagementStationResponse.Builder + ::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future attachProfileToManagedInstance( @@ -1065,6 +1109,16 @@ public java.util.concurrent.Future listManagedInst .appendQueryParam("isProfileAttached", request.getIsProfileAttached()) .appendQueryParam( "isManagedByAutonomousLinux", request.getIsManagedByAutonomousLinux()) + .appendQueryParam("agentVersion", request.getAgentVersion()) + .appendListQueryParam( + "managementStation", + request.getManagementStation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "managementStationNotEqualTo", + request.getManagementStationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isRebootRequired", request.getIsRebootRequired()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -1078,6 +1132,8 @@ public java.util.concurrent.Future listManagedInst "opc-request-id", ListManagedInstancesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListManagedInstancesResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListManagedInstancesResponse.Builder::opcTotalItems) .callAsync(handler); } @@ -1166,6 +1222,44 @@ public java.util.concurrent.Future listWindowsUpdate .callAsync(handler); } + @Override + public java.util.concurrent.Future rebootManagedInstance( + RebootManagedInstanceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RebootManagedInstanceRequest, RebootManagedInstanceResponse> + handler) { + + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + Objects.requireNonNull( + request.getRebootManagedInstanceDetails(), + "rebootManagedInstanceDetails is required"); + + return clientCall(request, RebootManagedInstanceResponse::builder) + .logger(LOG, "rebootManagedInstance") + .serviceDetails( + "ManagedInstance", + "RebootManagedInstance", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/RebootManagedInstance") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootManagedInstanceRequest::builder) + .basePath("/20220901") + .appendPathParam("managedInstances") + .appendPathParam(request.getManagedInstanceId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootManagedInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootManagedInstanceResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future refreshSoftwareOnManagedInstance( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java index 4dab0d86a86..0bd0c25bd5f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceClient.java @@ -88,6 +88,47 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public AssociateManagedInstancesWithManagementStationResponse + associateManagedInstancesWithManagementStation( + AssociateManagedInstancesWithManagementStationRequest request) { + + Validate.notBlank( + request.getManagementStationId(), "managementStationId must not be blank"); + Objects.requireNonNull( + request.getAssociateManagedInstancesWithManagementStationDetails(), + "associateManagedInstancesWithManagementStationDetails is required"); + + return clientCall(request, AssociateManagedInstancesWithManagementStationResponse::builder) + .logger(LOG, "associateManagedInstancesWithManagementStation") + .serviceDetails( + "ManagedInstance", + "AssociateManagedInstancesWithManagementStation", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/AssociateManagedInstancesWithManagementStation") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AssociateManagedInstancesWithManagementStationRequest::builder) + .basePath("/20220901") + .appendPathParam("managementStations") + .appendPathParam(request.getManagementStationId()) + .appendPathParam("actions") + .appendPathParam("associateManagedInstances") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + AssociateManagedInstancesWithManagementStationResponse.Builder + ::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + AssociateManagedInstancesWithManagementStationResponse.Builder + ::opcRequestId) + .callSync(); + } + @Override public AttachProfileToManagedInstanceResponse attachProfileToManagedInstance( AttachProfileToManagedInstanceRequest request) { @@ -981,6 +1022,16 @@ public ListManagedInstancesResponse listManagedInstances(ListManagedInstancesReq .appendQueryParam("isProfileAttached", request.getIsProfileAttached()) .appendQueryParam( "isManagedByAutonomousLinux", request.getIsManagedByAutonomousLinux()) + .appendQueryParam("agentVersion", request.getAgentVersion()) + .appendListQueryParam( + "managementStation", + request.getManagementStation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "managementStationNotEqualTo", + request.getManagementStationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("isRebootRequired", request.getIsRebootRequired()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) @@ -995,6 +1046,8 @@ public ListManagedInstancesResponse listManagedInstances(ListManagedInstancesReq "opc-request-id", ListManagedInstancesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListManagedInstancesResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListManagedInstancesResponse.Builder::opcTotalItems) .callSync(); } @@ -1076,6 +1129,42 @@ public ManageModuleStreamsOnManagedInstanceResponse manageModuleStreamsOnManaged .callSync(); } + @Override + public RebootManagedInstanceResponse rebootManagedInstance( + RebootManagedInstanceRequest request) { + + Validate.notBlank(request.getManagedInstanceId(), "managedInstanceId must not be blank"); + Objects.requireNonNull( + request.getRebootManagedInstanceDetails(), + "rebootManagedInstanceDetails is required"); + + return clientCall(request, RebootManagedInstanceResponse::builder) + .logger(LOG, "rebootManagedInstance") + .serviceDetails( + "ManagedInstance", + "RebootManagedInstance", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/RebootManagedInstance") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootManagedInstanceRequest::builder) + .basePath("/20220901") + .appendPathParam("managedInstances") + .appendPathParam(request.getManagedInstanceId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootManagedInstanceResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootManagedInstanceResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RefreshSoftwareOnManagedInstanceResponse refreshSoftwareOnManagedInstance( RefreshSoftwareOnManagedInstanceRequest request) { diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java index 9f2e876d39c..26c8cc853dd 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroup.java @@ -459,6 +459,23 @@ ListManagedInstanceGroupsResponse listManagedInstanceGroups( ManageModuleStreamsOnManagedInstanceGroupResponse manageModuleStreamsOnManagedInstanceGroup( ManageModuleStreamsOnManagedInstanceGroupRequest request); + /** + * Reboots all managed instances in the specified 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 + * RebootManagedInstanceGroup API. + */ + RebootManagedInstanceGroupResponse rebootManagedInstanceGroup( + RebootManagedInstanceGroupRequest request); + /** * Removes a profile for a module stream that is installed on a managed instance group. * Providing the module stream name (without specifying a profile name) removes all profiles diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java index 740162d6016..a8ecb9d83ec 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsync.java @@ -464,6 +464,22 @@ java.util.concurrent.Future listManagedInstan ManageModuleStreamsOnManagedInstanceGroupResponse> handler); + /** + * Reboots all managed instances in the specified 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 rebootManagedInstanceGroup( + RebootManagedInstanceGroupRequest request, + com.oracle.bmc.responses.AsyncHandler< + RebootManagedInstanceGroupRequest, RebootManagedInstanceGroupResponse> + handler); + /** * Removes a profile for a module stream that is installed on a managed instance group. * Providing the module stream name (without specifying a profile name) removes all profiles diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java index f204c3caf3e..0d27e93fe0c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupAsyncClient.java @@ -962,6 +962,47 @@ public java.util.concurrent.Future listManage .callAsync(handler); } + @Override + public java.util.concurrent.Future + rebootManagedInstanceGroup( + RebootManagedInstanceGroupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RebootManagedInstanceGroupRequest, + RebootManagedInstanceGroupResponse> + handler) { + + Validate.notBlank( + request.getManagedInstanceGroupId(), "managedInstanceGroupId must not be blank"); + Objects.requireNonNull( + request.getRebootManagedInstanceGroupDetails(), + "rebootManagedInstanceGroupDetails is required"); + + return clientCall(request, RebootManagedInstanceGroupResponse::builder) + .logger(LOG, "rebootManagedInstanceGroup") + .serviceDetails( + "ManagedInstanceGroup", + "RebootManagedInstanceGroup", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/RebootManagedInstanceGroup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootManagedInstanceGroupRequest::builder) + .basePath("/20220901") + .appendPathParam("managedInstanceGroups") + .appendPathParam(request.getManagedInstanceGroupId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootManagedInstanceGroupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootManagedInstanceGroupResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future removeModuleStreamProfileFromManagedInstanceGroup( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java index 75407c7b8f8..66a0bbee5c8 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagedInstanceGroupClient.java @@ -928,6 +928,43 @@ public ListManagedInstanceGroupsResponse listManagedInstanceGroups( .callSync(); } + @Override + public RebootManagedInstanceGroupResponse rebootManagedInstanceGroup( + RebootManagedInstanceGroupRequest request) { + + Validate.notBlank( + request.getManagedInstanceGroupId(), "managedInstanceGroupId must not be blank"); + Objects.requireNonNull( + request.getRebootManagedInstanceGroupDetails(), + "rebootManagedInstanceGroupDetails is required"); + + return clientCall(request, RebootManagedInstanceGroupResponse::builder) + .logger(LOG, "rebootManagedInstanceGroup") + .serviceDetails( + "ManagedInstanceGroup", + "RebootManagedInstanceGroup", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstanceGroup/RebootManagedInstanceGroup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RebootManagedInstanceGroupRequest::builder) + .basePath("/20220901") + .appendPathParam("managedInstanceGroups") + .appendPathParam(request.getManagedInstanceGroupId()) + .appendPathParam("actions") + .appendPathParam("reboot") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + RebootManagedInstanceGroupResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RebootManagedInstanceGroupResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RemoveModuleStreamProfileFromManagedInstanceGroupResponse removeModuleStreamProfileFromManagedInstanceGroup( diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStation.java index 271b3681f28..47d98bea72f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStation.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStation.java @@ -84,7 +84,7 @@ ChangeManagementStationCompartmentResponse changeManagementStationCompartment( ChangeManagementStationCompartmentRequest request); /** - * Create a management station. You must provide proxy and mirror configuration information. + * Creates a management station using the proxy and mirror configuration information provided. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -100,7 +100,9 @@ ChangeManagementStationCompartmentResponse changeManagementStationCompartment( CreateManagementStationResponse createManagementStation(CreateManagementStationRequest request); /** - * Deletes a management station. + * Deletes a management station. You can't delete a station if there are resources associated + * with the station (such as instances using the station or profiles associated with the + * station). Switch stations and edit profiles as needed before deleting the station. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -116,7 +118,7 @@ ChangeManagementStationCompartmentResponse changeManagementStationCompartment( DeleteManagementStationResponse deleteManagementStation(DeleteManagementStationRequest request); /** - * Gets information about the specified management station. + * Returns information about the specified management station. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -132,7 +134,8 @@ ChangeManagementStationCompartmentResponse changeManagementStationCompartment( GetManagementStationResponse getManagementStation(GetManagementStationRequest request); /** - * Lists management stations in a compartment. + * Lists management stations within the specified compartment. Filter the list against a variety + * of criteria including but not limited to name, status, and location. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -163,8 +166,7 @@ ChangeManagementStationCompartmentResponse changeManagementStationCompartment( ListMirrorsResponse listMirrors(ListMirrorsRequest request); /** - * Refreshes the list of software sources mirrored by the management station to support the - * associated instances. + * Refreshes the list of software sources mirrored by the management station. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -181,7 +183,7 @@ RefreshManagementStationConfigResponse refreshManagementStationConfig( RefreshManagementStationConfigRequest request); /** - * Synchronize the specified software sources mirrors on the management station. + * Synchronize the specified software sources mirrored on the management station. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsync.java index 3c921e59fe3..af818c1eb17 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsync.java @@ -82,7 +82,7 @@ public interface ManagementStationAsync extends AutoCloseable { handler); /** - * Create a management station. You must provide proxy and mirror configuration information. + * Creates a management station using the proxy and mirror configuration information provided. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -98,7 +98,9 @@ java.util.concurrent.Future createManagementSta handler); /** - * Deletes a management station. + * Deletes a management station. You can't delete a station if there are resources associated + * with the station (such as instances using the station or profiles associated with the + * station). Switch stations and edit profiles as needed before deleting the station. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -114,7 +116,7 @@ java.util.concurrent.Future deleteManagementSta handler); /** - * Gets information about the specified management station. + * Returns information about the specified management station. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -130,7 +132,8 @@ java.util.concurrent.Future getManagementStation( handler); /** - * Lists management stations in a compartment. + * Lists management stations within the specified compartment. Filter the list against a variety + * of criteria including but not limited to name, status, and location. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -160,8 +163,7 @@ java.util.concurrent.Future listMirrors( com.oracle.bmc.responses.AsyncHandler handler); /** - * Refreshes the list of software sources mirrored by the management station to support the - * associated instances. + * Refreshes the list of software sources mirrored by the management station. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -179,7 +181,7 @@ java.util.concurrent.Future listMirrors( handler); /** - * Synchronize the specified software sources mirrors on the management station. + * Synchronize the specified software sources mirrored on the management station. * * @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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsyncClient.java index 3a1c70fab30..c9913f44ce4 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationAsyncClient.java @@ -190,6 +190,7 @@ public java.util.concurrent.Future deleteManage .appendPathParam(request.getManagementStationId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-request-id", DeleteManagementStationResponse.Builder::opcRequestId) @@ -254,6 +255,14 @@ public java.util.concurrent.Future listManagemen .appendQueryParam("managedInstanceId", request.getManagedInstanceId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendListQueryParam( + "location", + request.getLocation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "locationNotEqualTo", + request.getLocationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("id", request.getId()) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationClient.java index c10e3f67cc6..65f68a28771 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/ManagementStationClient.java @@ -209,6 +209,7 @@ public DeleteManagementStationResponse deleteManagementStation( .appendPathParam(request.getManagementStationId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() .handleResponseHeaderString( @@ -268,6 +269,14 @@ public ListManagementStationsResponse listManagementStations( .appendQueryParam("managedInstanceId", request.getManagedInstanceId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendListQueryParam( + "location", + request.getLocation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "locationNotEqualTo", + request.getLocationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendQueryParam("id", request.getId()) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java index 0d77362e08a..9d0953c44ad 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/Onboarding.java @@ -66,6 +66,74 @@ public interface Onboarding extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Attaches the specified lifecycle stage to a profile. + * + * @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 + * AttachLifecycleStageToProfile API. + */ + AttachLifecycleStageToProfileResponse attachLifecycleStageToProfile( + AttachLifecycleStageToProfileRequest request); + + /** + * Attaches the specified managed instance group to a profile. + * + * @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 + * AttachManagedInstanceGroupToProfile API. + */ + AttachManagedInstanceGroupToProfileResponse attachManagedInstanceGroupToProfile( + AttachManagedInstanceGroupToProfileRequest request); + + /** + * Attaches the specified management station to a profile. + * + * @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 + * AttachManagementStationToProfile API. + */ + AttachManagementStationToProfileResponse attachManagementStationToProfile( + AttachManagementStationToProfileRequest request); + + /** + * Attaches the specified software sources to a profile. + * + * @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 + * AttachSoftwareSourcesToProfile API. + */ + AttachSoftwareSourcesToProfileResponse attachSoftwareSourcesToProfile( + AttachSoftwareSourcesToProfileRequest request); + /** * Moves the profile to a different compartment. * @@ -115,7 +183,24 @@ ChangeProfileCompartmentResponse changeProfileCompartment( DeleteProfileResponse deleteProfile(DeleteProfileRequest request); /** - * Gets information about the specified registration profile. + * Detaches the specified software sources from a profile. + * + * @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 + * DetachSoftwareSourcesFromProfile API. + */ + DetachSoftwareSourcesFromProfileResponse detachSoftwareSourcesFromProfile( + DetachSoftwareSourcesFromProfileRequest request); + + /** + * Returns information about the specified registration profile. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -129,6 +214,41 @@ ChangeProfileCompartmentResponse changeProfileCompartment( */ GetProfileResponse getProfile(GetProfileRequest request); + /** + * Returns information about the version of the specified registration profile. + * + * @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 GetProfileVersion + * API. + */ + GetProfileVersionResponse getProfileVersion(GetProfileVersionRequest request); + + /** + * Lists available software sources for a specified profile. Filter the list against a variety + * of criteria including but not limited to the software source name. The results list only + * software sources that have not already been added to the profile. + * + * @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 + * ListProfileAvailableSoftwareSources API. + */ + ListProfileAvailableSoftwareSourcesResponse listProfileAvailableSoftwareSources( + ListProfileAvailableSoftwareSourcesRequest request); + /** * Lists registration profiles that match the specified compartment or profile OCID. Filter the * list against a variety of criteria including but not limited to its name, status, vendor diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java index 3d61b596feb..a735a4285ec 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsync.java @@ -63,6 +63,78 @@ public interface OnboardingAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Attaches the specified lifecycle stage to a profile. + * + * @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 + attachLifecycleStageToProfile( + AttachLifecycleStageToProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + AttachLifecycleStageToProfileRequest, + AttachLifecycleStageToProfileResponse> + handler); + + /** + * Attaches the specified managed instance group to a profile. + * + * @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 + attachManagedInstanceGroupToProfile( + AttachManagedInstanceGroupToProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + AttachManagedInstanceGroupToProfileRequest, + AttachManagedInstanceGroupToProfileResponse> + handler); + + /** + * Attaches the specified management station to a profile. + * + * @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 + attachManagementStationToProfile( + AttachManagementStationToProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + AttachManagementStationToProfileRequest, + AttachManagementStationToProfileResponse> + handler); + + /** + * Attaches the specified software sources to a profile. + * + * @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 + attachSoftwareSourcesToProfile( + AttachSoftwareSourcesToProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + AttachSoftwareSourcesToProfileRequest, + AttachSoftwareSourcesToProfileResponse> + handler); + /** * Moves the profile to a different compartment. * @@ -111,7 +183,25 @@ java.util.concurrent.Future deleteProfile( handler); /** - * Gets information about the specified registration profile. + * Detaches the specified software sources from a profile. + * + * @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 + detachSoftwareSourcesFromProfile( + DetachSoftwareSourcesFromProfileRequest request, + com.oracle.bmc.responses.AsyncHandler< + DetachSoftwareSourcesFromProfileRequest, + DetachSoftwareSourcesFromProfileResponse> + handler); + + /** + * Returns information about the specified registration profile. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -124,6 +214,42 @@ java.util.concurrent.Future getProfile( GetProfileRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns information about the version of the specified registration profile. + * + * @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 getProfileVersion( + GetProfileVersionRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetProfileVersionRequest, GetProfileVersionResponse> + handler); + + /** + * Lists available software sources for a specified profile. Filter the list against a variety + * of criteria including but not limited to the software source name. The results list only + * software sources that have not already been added to the profile. + * + * @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 + listProfileAvailableSoftwareSources( + ListProfileAvailableSoftwareSourcesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse> + handler); + /** * Lists registration profiles that match the specified compartment or profile OCID. Filter the * list against a variety of criteria including but not limited to its name, status, vendor diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java index 81157604116..698e1b08d3f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingAsyncClient.java @@ -94,6 +94,158 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + attachLifecycleStageToProfile( + AttachLifecycleStageToProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AttachLifecycleStageToProfileRequest, + AttachLifecycleStageToProfileResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachLifecycleStageToProfileDetails(), + "attachLifecycleStageToProfileDetails is required"); + + return clientCall(request, AttachLifecycleStageToProfileResponse::builder) + .logger(LOG, "attachLifecycleStageToProfile") + .serviceDetails( + "Onboarding", + "AttachLifecycleStageToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachLifecycleStageToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachLifecycleStageToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachLifecycleStage") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachLifecycleStageToProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + attachManagedInstanceGroupToProfile( + AttachManagedInstanceGroupToProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AttachManagedInstanceGroupToProfileRequest, + AttachManagedInstanceGroupToProfileResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachManagedInstanceGroupToProfileDetails(), + "attachManagedInstanceGroupToProfileDetails is required"); + + return clientCall(request, AttachManagedInstanceGroupToProfileResponse::builder) + .logger(LOG, "attachManagedInstanceGroupToProfile") + .serviceDetails( + "Onboarding", + "AttachManagedInstanceGroupToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagedInstanceGroupToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachManagedInstanceGroupToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachManagedInstanceGroup") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachManagedInstanceGroupToProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + attachManagementStationToProfile( + AttachManagementStationToProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AttachManagementStationToProfileRequest, + AttachManagementStationToProfileResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachManagementStationToProfileDetails(), + "attachManagementStationToProfileDetails is required"); + + return clientCall(request, AttachManagementStationToProfileResponse::builder) + .logger(LOG, "attachManagementStationToProfile") + .serviceDetails( + "Onboarding", + "AttachManagementStationToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagementStationToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachManagementStationToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachManagementStation") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachManagementStationToProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + attachSoftwareSourcesToProfile( + AttachSoftwareSourcesToProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + AttachSoftwareSourcesToProfileRequest, + AttachSoftwareSourcesToProfileResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachSoftwareSourcesToProfileDetails(), + "attachSoftwareSourcesToProfileDetails is required"); + + return clientCall(request, AttachSoftwareSourcesToProfileResponse::builder) + .logger(LOG, "attachSoftwareSourcesToProfile") + .serviceDetails( + "Onboarding", + "AttachSoftwareSourcesToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachSoftwareSourcesToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachSoftwareSourcesToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachSoftwareSources") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachSoftwareSourcesToProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeProfileCompartment( ChangeProfileCompartmentRequest request, @@ -187,6 +339,44 @@ public java.util.concurrent.Future deleteProfile( .callAsync(handler); } + @Override + public java.util.concurrent.Future + detachSoftwareSourcesFromProfile( + DetachSoftwareSourcesFromProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DetachSoftwareSourcesFromProfileRequest, + DetachSoftwareSourcesFromProfileResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getDetachSoftwareSourcesFromProfileDetails(), + "detachSoftwareSourcesFromProfileDetails is required"); + + return clientCall(request, DetachSoftwareSourcesFromProfileResponse::builder) + .logger(LOG, "detachSoftwareSourcesFromProfile") + .serviceDetails( + "Onboarding", + "DetachSoftwareSourcesFromProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DetachSoftwareSourcesFromProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DetachSoftwareSourcesFromProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("detachSoftwareSources") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DetachSoftwareSourcesFromProfileResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getProfile( GetProfileRequest request, @@ -217,6 +407,90 @@ public java.util.concurrent.Future getProfile( .callAsync(handler); } + @Override + public java.util.concurrent.Future getProfileVersion( + GetProfileVersionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetProfileVersionRequest, GetProfileVersionResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + + Validate.notBlank(request.getProfileVersion(), "profileVersion must not be blank"); + + return clientCall(request, GetProfileVersionResponse::builder) + .logger(LOG, "getProfileVersion") + .serviceDetails( + "Onboarding", + "GetProfileVersion", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ProfileVersion/GetProfileVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetProfileVersionRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("version") + .appendPathParam(request.getProfileVersion()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.osmanagementhub.model.ProfileVersion.class, + GetProfileVersionResponse.Builder::profileVersion) + .handleResponseHeaderString("etag", GetProfileVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetProfileVersionResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listProfileAvailableSoftwareSources( + ListProfileAvailableSoftwareSourcesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse> + handler) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + + return clientCall(request, ListProfileAvailableSoftwareSourcesResponse::builder) + .logger(LOG, "listProfileAvailableSoftwareSources") + .serviceDetails( + "Onboarding", + "ListProfileAvailableSoftwareSources", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/ListProfileAvailableSoftwareSources") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListProfileAvailableSoftwareSourcesRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("availableSoftwareSources") + .appendListQueryParam( + "displayName", + request.getDisplayName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("displayNameContains", request.getDisplayNameContains()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + .class, + ListProfileAvailableSoftwareSourcesResponse.Builder + ::availableSoftwareSourceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListProfileAvailableSoftwareSourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListProfileAvailableSoftwareSourcesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listProfiles( ListProfilesRequest request, @@ -252,6 +526,15 @@ public java.util.concurrent.Future listProfiles( com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("isDefaultProfile", request.getIsDefaultProfile()) .appendQueryParam("isServiceProvidedProfile", request.getIsServiceProvidedProfile()) + .appendListQueryParam( + "managementStation", + request.getManagementStation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "managementStationNotEqualTo", + request.getManagementStationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("profileVersion", request.getProfileVersion()) .appendEnumQueryParam("vendorName", request.getVendorName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -267,6 +550,8 @@ public java.util.concurrent.Future listProfiles( "opc-request-id", ListProfilesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProfilesResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListProfilesResponse.Builder::opcTotalItems) .callAsync(handler); } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java index 1631dcc6588..8a95c91f929 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingClient.java @@ -122,6 +122,142 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public AttachLifecycleStageToProfileResponse attachLifecycleStageToProfile( + AttachLifecycleStageToProfileRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachLifecycleStageToProfileDetails(), + "attachLifecycleStageToProfileDetails is required"); + + return clientCall(request, AttachLifecycleStageToProfileResponse::builder) + .logger(LOG, "attachLifecycleStageToProfile") + .serviceDetails( + "Onboarding", + "AttachLifecycleStageToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachLifecycleStageToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachLifecycleStageToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachLifecycleStage") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachLifecycleStageToProfileResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public AttachManagedInstanceGroupToProfileResponse attachManagedInstanceGroupToProfile( + AttachManagedInstanceGroupToProfileRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachManagedInstanceGroupToProfileDetails(), + "attachManagedInstanceGroupToProfileDetails is required"); + + return clientCall(request, AttachManagedInstanceGroupToProfileResponse::builder) + .logger(LOG, "attachManagedInstanceGroupToProfile") + .serviceDetails( + "Onboarding", + "AttachManagedInstanceGroupToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagedInstanceGroupToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachManagedInstanceGroupToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachManagedInstanceGroup") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachManagedInstanceGroupToProfileResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public AttachManagementStationToProfileResponse attachManagementStationToProfile( + AttachManagementStationToProfileRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachManagementStationToProfileDetails(), + "attachManagementStationToProfileDetails is required"); + + return clientCall(request, AttachManagementStationToProfileResponse::builder) + .logger(LOG, "attachManagementStationToProfile") + .serviceDetails( + "Onboarding", + "AttachManagementStationToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachManagementStationToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachManagementStationToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachManagementStation") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachManagementStationToProfileResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public AttachSoftwareSourcesToProfileResponse attachSoftwareSourcesToProfile( + AttachSoftwareSourcesToProfileRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getAttachSoftwareSourcesToProfileDetails(), + "attachSoftwareSourcesToProfileDetails is required"); + + return clientCall(request, AttachSoftwareSourcesToProfileResponse::builder) + .logger(LOG, "attachSoftwareSourcesToProfile") + .serviceDetails( + "Onboarding", + "AttachSoftwareSourcesToProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/AttachSoftwareSourcesToProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(AttachSoftwareSourcesToProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("attachSoftwareSources") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + AttachSoftwareSourcesToProfileResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeProfileCompartmentResponse changeProfileCompartment( ChangeProfileCompartmentRequest request) { @@ -209,6 +345,40 @@ public DeleteProfileResponse deleteProfile(DeleteProfileRequest request) { .callSync(); } + @Override + public DetachSoftwareSourcesFromProfileResponse detachSoftwareSourcesFromProfile( + DetachSoftwareSourcesFromProfileRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + Objects.requireNonNull( + request.getDetachSoftwareSourcesFromProfileDetails(), + "detachSoftwareSourcesFromProfileDetails is required"); + + return clientCall(request, DetachSoftwareSourcesFromProfileResponse::builder) + .logger(LOG, "detachSoftwareSourcesFromProfile") + .serviceDetails( + "Onboarding", + "DetachSoftwareSourcesFromProfile", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/DetachSoftwareSourcesFromProfile") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DetachSoftwareSourcesFromProfileRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("actions") + .appendPathParam("detachSoftwareSources") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DetachSoftwareSourcesFromProfileResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetProfileResponse getProfile(GetProfileRequest request) { @@ -237,6 +407,83 @@ public GetProfileResponse getProfile(GetProfileRequest request) { .callSync(); } + @Override + public GetProfileVersionResponse getProfileVersion(GetProfileVersionRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + + Validate.notBlank(request.getProfileVersion(), "profileVersion must not be blank"); + + return clientCall(request, GetProfileVersionResponse::builder) + .logger(LOG, "getProfileVersion") + .serviceDetails( + "Onboarding", + "GetProfileVersion", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ProfileVersion/GetProfileVersion") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetProfileVersionRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("version") + .appendPathParam(request.getProfileVersion()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.osmanagementhub.model.ProfileVersion.class, + GetProfileVersionResponse.Builder::profileVersion) + .handleResponseHeaderString("etag", GetProfileVersionResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetProfileVersionResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ListProfileAvailableSoftwareSourcesResponse listProfileAvailableSoftwareSources( + ListProfileAvailableSoftwareSourcesRequest request) { + + Validate.notBlank(request.getProfileId(), "profileId must not be blank"); + + return clientCall(request, ListProfileAvailableSoftwareSourcesResponse::builder) + .logger(LOG, "listProfileAvailableSoftwareSources") + .serviceDetails( + "Onboarding", + "ListProfileAvailableSoftwareSources", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Profile/ListProfileAvailableSoftwareSources") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListProfileAvailableSoftwareSourcesRequest::builder) + .basePath("/20220901") + .appendPathParam("profiles") + .appendPathParam(request.getProfileId()) + .appendPathParam("availableSoftwareSources") + .appendListQueryParam( + "displayName", + request.getDisplayName(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("displayNameContains", request.getDisplayNameContains()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + .class, + ListProfileAvailableSoftwareSourcesResponse.Builder + ::availableSoftwareSourceCollection) + .handleResponseHeaderString( + "opc-request-id", + ListProfileAvailableSoftwareSourcesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListProfileAvailableSoftwareSourcesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListProfilesResponse listProfiles(ListProfilesRequest request) { @@ -269,6 +516,15 @@ public ListProfilesResponse listProfiles(ListProfilesRequest request) { com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("isDefaultProfile", request.getIsDefaultProfile()) .appendQueryParam("isServiceProvidedProfile", request.getIsServiceProvidedProfile()) + .appendListQueryParam( + "managementStation", + request.getManagementStation(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "managementStationNotEqualTo", + request.getManagementStationNotEqualTo(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("profileVersion", request.getProfileVersion()) .appendEnumQueryParam("vendorName", request.getVendorName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -285,6 +541,8 @@ public ListProfilesResponse listProfiles(ListProfilesRequest request) { "opc-request-id", ListProfilesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProfilesResponse.Builder::opcNextPage) + .handleResponseHeaderInteger( + "opc-total-items", ListProfilesResponse.Builder::opcTotalItems) .callSync(); } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingPaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingPaginators.java index 94f19984161..c6c10ca46ea 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingPaginators.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/OnboardingPaginators.java @@ -41,6 +41,140 @@ public OnboardingPaginators(Onboarding client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the + * listProfileAvailableSoftwareSources 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 + listProfileAvailableSoftwareSourcesResponseIterator( + final ListProfileAvailableSoftwareSourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListProfileAvailableSoftwareSourcesRequest.Builder, + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse>( + new java.util.function.Supplier< + ListProfileAvailableSoftwareSourcesRequest.Builder>() { + @Override + public ListProfileAvailableSoftwareSourcesRequest.Builder get() { + return ListProfileAvailableSoftwareSourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListProfileAvailableSoftwareSourcesResponse, String>() { + @Override + public String apply(ListProfileAvailableSoftwareSourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProfileAvailableSoftwareSourcesRequest.Builder>, + ListProfileAvailableSoftwareSourcesRequest>() { + @Override + public ListProfileAvailableSoftwareSourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProfileAvailableSoftwareSourcesRequest.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< + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse>() { + @Override + public ListProfileAvailableSoftwareSourcesResponse apply( + ListProfileAvailableSoftwareSourcesRequest request) { + return client.listProfileAvailableSoftwareSources(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceSummary} objects contained in + * responses from the listProfileAvailableSoftwareSources 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.osmanagementhub.model.AvailableSoftwareSourceSummary} objects contained in + * responses received from the service. + */ + public Iterable + listProfileAvailableSoftwareSourcesRecordIterator( + final ListProfileAvailableSoftwareSourcesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListProfileAvailableSoftwareSourcesRequest.Builder, + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse, + com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceSummary>( + new java.util.function.Supplier< + ListProfileAvailableSoftwareSourcesRequest.Builder>() { + @Override + public ListProfileAvailableSoftwareSourcesRequest.Builder get() { + return ListProfileAvailableSoftwareSourcesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListProfileAvailableSoftwareSourcesResponse, String>() { + @Override + public String apply(ListProfileAvailableSoftwareSourcesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProfileAvailableSoftwareSourcesRequest.Builder>, + ListProfileAvailableSoftwareSourcesRequest>() { + @Override + public ListProfileAvailableSoftwareSourcesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListProfileAvailableSoftwareSourcesRequest.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< + ListProfileAvailableSoftwareSourcesRequest, + ListProfileAvailableSoftwareSourcesResponse>() { + @Override + public ListProfileAvailableSoftwareSourcesResponse apply( + ListProfileAvailableSoftwareSourcesRequest request) { + return client.listProfileAvailableSoftwareSources(request); + } + }, + new java.util.function.Function< + ListProfileAvailableSoftwareSourcesResponse, + java.util.List< + com.oracle.bmc.osmanagementhub.model + .AvailableSoftwareSourceSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.osmanagementhub.model + .AvailableSoftwareSourceSummary> + apply(ListProfileAvailableSoftwareSourcesResponse response) { + return response.getAvailableSoftwareSourceCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listProfiles * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java index f65b440448f..32900b5c159 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSource.java @@ -70,7 +70,11 @@ public interface SoftwareSource extends AutoCloseable { * Adds packages to a software source. This operation can only be done for custom and versioned * custom software sources that are not created using filters. For a versioned custom software * source, you can only add packages when the source is created. Once content is added to a - * versioned custom software source, it is immutable. + * versioned custom software source, it is immutable. Packages can be of the format: * name (for + * example: git). If isLatestContentOnly is true, only the latest version of the package will be + * added, otherwise all versions of the package will be added. * + * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * + * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64) * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -139,7 +143,7 @@ ChangeSoftwareSourceCompartmentResponse changeSoftwareSourceCompartment( CreateEntitlementResponse createEntitlement(CreateEntitlementRequest request); /** - * Creates a new versioned or custom software source. + * Creates a new software source. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -250,7 +254,8 @@ ChangeSoftwareSourceCompartmentResponse changeSoftwareSourceCompartment( GetSoftwarePackageResponse getSoftwarePackage(GetSoftwarePackageRequest request); /** - * Returns information about the specified software package based on its fully qualified name. + * Returns information about the specified software package based on its fully qualified name + * (NVRA or NEVRA). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -282,6 +287,23 @@ GetSoftwarePackageByNameResponse getSoftwarePackageByName( */ GetSoftwareSourceResponse getSoftwareSource(GetSoftwareSourceRequest request); + /** + * Returns an archive containing the list of packages in the software source. + * + * @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 + * GetSoftwareSourceManifest API. + */ + GetSoftwareSourceManifestResponse getSoftwareSourceManifest( + GetSoftwareSourceManifestRequest request); + /** * Lists software packages available through the OS Management Hub service. Filter the list * against a variety of criteria including but not limited to its name. @@ -299,6 +321,25 @@ GetSoftwarePackageByNameResponse getSoftwarePackageByName( */ ListAllSoftwarePackagesResponse listAllSoftwarePackages(ListAllSoftwarePackagesRequest request); + /** + * Lists software packages that are available to be added to a custom software source of type + * MANIFEST. Filter the list against a variety of criteria including but not limited to its + * name. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. 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 + * ListAvailableSoftwarePackages API. + */ + ListAvailableSoftwarePackagesResponse listAvailableSoftwarePackages( + ListAvailableSoftwarePackagesRequest request); + /** * Lists entitlements in the specified tenancy * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Filter @@ -465,6 +506,49 @@ ListSoftwareSourceVendorsResponse listSoftwareSourceVendors( */ ListSoftwareSourcesResponse listSoftwareSources(ListSoftwareSourcesRequest request); + /** + * Removes packages from a software source. This operation can only be done for custom software + * sources that are not created using filters. Packages can be of the format: * name (for + * example: git). This removes all versions of the package. * name-version-release.architecture + * (for example: git-2.43.5-1.el8_10.x86_64) * name-epoch:version-release.architecture (for + * example: git-0:2.43.5-1.el8_10.x86_64) + * + * @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 + * RemovePackagesFromSoftwareSource API. + */ + RemovePackagesFromSoftwareSourceResponse removePackagesFromSoftwareSource( + RemovePackagesFromSoftwareSourceRequest request); + + /** + * Replaces packages in a software source with the provided list of packages. This operation can + * only be done for custom software sources that are not created using filters. Packages can be + * of the format: * name (for example: git). If isLatestContentOnly is true, only the latest + * version of the package will be added, otherwise all versions of the package will be added. * + * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * + * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64) + * + * @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 + * ReplacePackagesInSoftwareSource API. + */ + ReplacePackagesInSoftwareSourceResponse replacePackagesInSoftwareSource( + ReplacePackagesInSoftwareSourceRequest request); + /** * Returns a list of module streams from the specified software sources. Filter the list against * a variety of criteria including the module name. @@ -519,6 +603,23 @@ SearchSoftwareSourceModulesResponse searchSoftwareSourceModules( SearchSoftwareSourcePackageGroupsResponse searchSoftwareSourcePackageGroups( SearchSoftwareSourcePackageGroupsRequest request); + /** + * Regenerates metadata for the specified custom software source. + * + * @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 + * SoftwareSourceGenerateMetadata API. + */ + SoftwareSourceGenerateMetadataResponse softwareSourceGenerateMetadata( + SoftwareSourceGenerateMetadataRequest request); + /** * Updates the specified software source's details, including but not limited to name, * description, and tags. @@ -536,6 +637,53 @@ SearchSoftwareSourcePackageGroupsResponse searchSoftwareSourcePackageGroups( */ UpdateSoftwareSourceResponse updateSoftwareSource(UpdateSoftwareSourceRequest request); + /** + * Updates the package list document for the software source. + * + *

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 + * UpdateSoftwareSourceManifest API. + */ + UpdateSoftwareSourceManifestResponse updateSoftwareSourceManifest( + UpdateSoftwareSourceManifestRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java index 7014d313dbe..4568b26152c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsync.java @@ -67,7 +67,11 @@ public interface SoftwareSourceAsync extends AutoCloseable { * Adds packages to a software source. This operation can only be done for custom and versioned * custom software sources that are not created using filters. For a versioned custom software * source, you can only add packages when the source is created. Once content is added to a - * versioned custom software source, it is immutable. + * versioned custom software source, it is immutable. Packages can be of the format: * name (for + * example: git). If isLatestContentOnly is true, only the latest version of the package will be + * added, otherwise all versions of the package will be added. * + * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * + * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64) * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -137,7 +141,7 @@ java.util.concurrent.Future createEntitlement( handler); /** - * Creates a new versioned or custom software source. + * Creates a new software source. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -245,7 +249,8 @@ java.util.concurrent.Future getSoftwarePackage( handler); /** - * Returns information about the specified software package based on its fully qualified name. + * Returns information about the specified software package based on its fully qualified name + * (NVRA or NEVRA). * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -276,6 +281,22 @@ java.util.concurrent.Future getSoftwareSource( GetSoftwareSourceRequest, GetSoftwareSourceResponse> handler); + /** + * Returns an archive containing the list of packages in the software source. + * + * @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 getSoftwareSourceManifest( + GetSoftwareSourceManifestRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetSoftwareSourceManifestRequest, GetSoftwareSourceManifestResponse> + handler); + /** * Lists software packages available through the OS Management Hub service. Filter the list * against a variety of criteria including but not limited to its name. @@ -293,6 +314,26 @@ java.util.concurrent.Future listAllSoftwarePack ListAllSoftwarePackagesRequest, ListAllSoftwarePackagesResponse> handler); + /** + * Lists software packages that are available to be added to a custom software source of type + * MANIFEST. Filter the list against a variety of criteria including but not limited to its + * name. + * + * @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 + listAvailableSoftwarePackages( + ListAvailableSoftwarePackagesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse> + handler); + /** * Lists entitlements in the specified tenancy * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Filter @@ -456,6 +497,51 @@ java.util.concurrent.Future listSoftwareSources( ListSoftwareSourcesRequest, ListSoftwareSourcesResponse> handler); + /** + * Removes packages from a software source. This operation can only be done for custom software + * sources that are not created using filters. Packages can be of the format: * name (for + * example: git). This removes all versions of the package. * name-version-release.architecture + * (for example: git-2.43.5-1.el8_10.x86_64) * name-epoch:version-release.architecture (for + * example: git-0:2.43.5-1.el8_10.x86_64) + * + * @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 + removePackagesFromSoftwareSource( + RemovePackagesFromSoftwareSourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromSoftwareSourceRequest, + RemovePackagesFromSoftwareSourceResponse> + handler); + + /** + * Replaces packages in a software source with the provided list of packages. This operation can + * only be done for custom software sources that are not created using filters. Packages can be + * of the format: * name (for example: git). If isLatestContentOnly is true, only the latest + * version of the package will be added, otherwise all versions of the package will be added. * + * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * + * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64) + * + * @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 + replacePackagesInSoftwareSource( + ReplacePackagesInSoftwareSourceRequest request, + com.oracle.bmc.responses.AsyncHandler< + ReplacePackagesInSoftwareSourceRequest, + ReplacePackagesInSoftwareSourceResponse> + handler); + /** * Returns a list of module streams from the specified software sources. Filter the list against * a variety of criteria including the module name. @@ -511,6 +597,24 @@ java.util.concurrent.Future searchSoftwareS SearchSoftwareSourcePackageGroupsResponse> handler); + /** + * Regenerates metadata for the specified custom software source. + * + * @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 + softwareSourceGenerateMetadata( + SoftwareSourceGenerateMetadataRequest request, + com.oracle.bmc.responses.AsyncHandler< + SoftwareSourceGenerateMetadataRequest, + SoftwareSourceGenerateMetadataResponse> + handler); + /** * Updates the specified software source's details, including but not limited to name, * description, and tags. @@ -527,4 +631,21 @@ java.util.concurrent.Future updateSoftwareSource( com.oracle.bmc.responses.AsyncHandler< UpdateSoftwareSourceRequest, UpdateSoftwareSourceResponse> handler); + + /** + * Updates the package list document for the software source. + * + * @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 updateSoftwareSourceManifest( + UpdateSoftwareSourceManifestRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateSoftwareSourceManifestRequest, + UpdateSoftwareSourceManifestResponse> + handler); } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java index 43cdc9b10a1..9140e7ba575 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceAsyncClient.java @@ -43,7 +43,20 @@ public class SoftwareSourceAsyncClient extends com.oracle.bmc.http.internal.Base com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + SoftwareSourceAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "SoftwareSourceAsyncClient", "getSoftwareSourceManifest")); + } } /** @@ -62,6 +75,8 @@ public static Builder builder() { public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< Builder, SoftwareSourceAsyncClient> { + private boolean isStreamWarningEnabled = true; + private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "osmanagementhub"; @@ -71,6 +86,17 @@ private Builder(com.oracle.bmc.Service service) { com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + /** * Build the client. * @@ -81,7 +107,8 @@ public SoftwareSourceAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new SoftwareSourceAsyncClient(this, authenticationDetailsProvider); + return new SoftwareSourceAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); } } @@ -540,6 +567,38 @@ public java.util.concurrent.Future getSoftwareSource( .callAsync(handler); } + @Override + public java.util.concurrent.Future getSoftwareSourceManifest( + GetSoftwareSourceManifestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetSoftwareSourceManifestRequest, GetSoftwareSourceManifestResponse> + handler) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, GetSoftwareSourceManifestResponse::builder) + .logger(LOG, "getSoftwareSourceManifest") + .serviceDetails( + "SoftwareSource", + "GetSoftwareSourceManifest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/GetSoftwareSourceManifest") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSoftwareSourceManifestRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("manifest") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + java.io.InputStream.class, + GetSoftwareSourceManifestResponse.Builder::inputStream) + .handleResponseHeaderString("etag", GetSoftwareSourceManifestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSoftwareSourceManifestResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listAllSoftwarePackages( ListAllSoftwarePackagesRequest request, @@ -579,6 +638,49 @@ public java.util.concurrent.Future listAllSoftw .callAsync(handler); } + @Override + public java.util.concurrent.Future + listAvailableSoftwarePackages( + ListAvailableSoftwarePackagesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse> + handler) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, ListAvailableSoftwarePackagesResponse::builder) + .logger(LOG, "listAvailableSoftwarePackages") + .serviceDetails( + "SoftwareSource", + "ListAvailableSoftwarePackages", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ListAvailableSoftwarePackages") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAvailableSoftwarePackagesRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("availableSoftwarePackages") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("displayNameContains", request.getDisplayNameContains()) + .appendQueryParam("isLatest", request.getIsLatest()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection.class, + ListAvailableSoftwarePackagesResponse.Builder::softwarePackageCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAvailableSoftwarePackagesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAvailableSoftwarePackagesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listEntitlements( ListEntitlementsRequest request, @@ -988,6 +1090,7 @@ public java.util.concurrent.Future listSoftwareSour com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam( "isMandatoryForAutonomousLinux", request.getIsMandatoryForAutonomousLinux()) + .appendQueryParam("isMirrorSyncAllowed", request.getIsMirrorSyncAllowed()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("displayNameContains", request.getDisplayNameContains()) .appendListQueryParam( @@ -1014,6 +1117,88 @@ public java.util.concurrent.Future listSoftwareSour .callAsync(handler); } + @Override + public java.util.concurrent.Future + removePackagesFromSoftwareSource( + RemovePackagesFromSoftwareSourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RemovePackagesFromSoftwareSourceRequest, + RemovePackagesFromSoftwareSourceResponse> + handler) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + Objects.requireNonNull( + request.getRemovePackagesFromSoftwareSourceDetails(), + "removePackagesFromSoftwareSourceDetails is required"); + + return clientCall(request, RemovePackagesFromSoftwareSourceResponse::builder) + .logger(LOG, "removePackagesFromSoftwareSource") + .serviceDetails( + "SoftwareSource", + "RemovePackagesFromSoftwareSource", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/RemovePackagesFromSoftwareSource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemovePackagesFromSoftwareSourceRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("removePackages") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RemovePackagesFromSoftwareSourceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RemovePackagesFromSoftwareSourceResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + replacePackagesInSoftwareSource( + ReplacePackagesInSoftwareSourceRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ReplacePackagesInSoftwareSourceRequest, + ReplacePackagesInSoftwareSourceResponse> + handler) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + Objects.requireNonNull( + request.getReplacePackagesInSoftwareSourceDetails(), + "replacePackagesInSoftwareSourceDetails is required"); + + return clientCall(request, ReplacePackagesInSoftwareSourceResponse::builder) + .logger(LOG, "replacePackagesInSoftwareSource") + .serviceDetails( + "SoftwareSource", + "ReplacePackagesInSoftwareSource", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ReplacePackagesInSoftwareSource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReplacePackagesInSoftwareSourceRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("replacePackages") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ReplacePackagesInSoftwareSourceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ReplacePackagesInSoftwareSourceResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future searchSoftwareSourceModuleStreams( @@ -1135,6 +1320,40 @@ public java.util.concurrent.Future listSoftwareSour .callAsync(handler); } + @Override + public java.util.concurrent.Future + softwareSourceGenerateMetadata( + SoftwareSourceGenerateMetadataRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SoftwareSourceGenerateMetadataRequest, + SoftwareSourceGenerateMetadataResponse> + handler) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, SoftwareSourceGenerateMetadataResponse::builder) + .logger(LOG, "softwareSourceGenerateMetadata") + .serviceDetails( + "SoftwareSource", + "SoftwareSourceGenerateMetadata", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/SoftwareSourceGenerateMetadata") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SoftwareSourceGenerateMetadataRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("generateMetadata") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-request-id", + SoftwareSourceGenerateMetadataResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateSoftwareSource( UpdateSoftwareSourceRequest request, @@ -1174,6 +1393,52 @@ public java.util.concurrent.Future updateSoftwareS .callAsync(handler); } + @Override + public java.util.concurrent.Future + updateSoftwareSourceManifest( + UpdateSoftwareSourceManifestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateSoftwareSourceManifestRequest, + UpdateSoftwareSourceManifestResponse> + handler) { + Objects.requireNonNull( + request.getUpdateSoftwareSourceManifestDetails(), + "updateSoftwareSourceManifestDetails is required"); + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, UpdateSoftwareSourceManifestResponse::builder) + .logger(LOG, "updateSoftwareSourceManifest") + .serviceDetails( + "SoftwareSource", + "UpdateSoftwareSourceManifest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/UpdateSoftwareSourceManifest") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSoftwareSourceManifestRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("manifest") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBinaryRequestBody() + .hasBody() + .handleBody( + com.oracle.bmc.osmanagementhub.model.SoftwareSource.class, + UpdateSoftwareSourceManifestResponse.Builder::softwareSource) + .handleResponseHeaderString( + "opc-request-id", + UpdateSoftwareSourceManifestResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSoftwareSourceManifestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "etag", UpdateSoftwareSourceManifestResponse.Builder::etag) + .callAsync(handler); + } + /** * Create a new client instance. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java index 5d8f5fdc4bd..fe9ae32ddfb 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourceClient.java @@ -34,6 +34,14 @@ public class SoftwareSourceClient extends com.oracle.bmc.http.internal.BaseSyncC com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, java.util.concurrent.ExecutorService executorService) { + this(builder, authenticationDetailsProvider, executorService, true); + } + + SoftwareSourceClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + java.util.concurrent.ExecutorService executorService, + boolean isStreamWarningEnabled) { super( builder, authenticationDetailsProvider, @@ -59,6 +67,11 @@ public class SoftwareSourceClient extends com.oracle.bmc.http.internal.BaseSyncC this.waiters = new SoftwareSourceWaiters(executorService, this); this.paginators = new SoftwareSourcePaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "SoftwareSourceClient", "getSoftwareSourceManifest")); + } } /** @@ -76,6 +89,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder { + private boolean isStreamWarningEnabled = true; private java.util.concurrent.ExecutorService executorService; private Builder(com.oracle.bmc.Service service) { @@ -98,6 +112,17 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ return this; } + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + /** * Build the client. * @@ -108,7 +133,8 @@ public SoftwareSourceClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new SoftwareSourceClient(this, authenticationDetailsProvider, executorService); + return new SoftwareSourceClient( + this, authenticationDetailsProvider, executorService, isStreamWarningEnabled); } } @@ -528,6 +554,36 @@ public GetSoftwareSourceResponse getSoftwareSource(GetSoftwareSourceRequest requ .callSync(); } + @Override + public GetSoftwareSourceManifestResponse getSoftwareSourceManifest( + GetSoftwareSourceManifestRequest request) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, GetSoftwareSourceManifestResponse::builder) + .logger(LOG, "getSoftwareSourceManifest") + .serviceDetails( + "SoftwareSource", + "GetSoftwareSourceManifest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/GetSoftwareSourceManifest") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetSoftwareSourceManifestRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("manifest") + .accept("application/octet-stream") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + java.io.InputStream.class, + GetSoftwareSourceManifestResponse.Builder::inputStream) + .handleResponseHeaderString("etag", GetSoftwareSourceManifestResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetSoftwareSourceManifestResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListAllSoftwarePackagesResponse listAllSoftwarePackages( ListAllSoftwarePackagesRequest request) { @@ -565,6 +621,45 @@ public ListAllSoftwarePackagesResponse listAllSoftwarePackages( .callSync(); } + @Override + public ListAvailableSoftwarePackagesResponse listAvailableSoftwarePackages( + ListAvailableSoftwarePackagesRequest request) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, ListAvailableSoftwarePackagesResponse::builder) + .logger(LOG, "listAvailableSoftwarePackages") + .serviceDetails( + "SoftwareSource", + "ListAvailableSoftwarePackages", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ListAvailableSoftwarePackages") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListAvailableSoftwarePackagesRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("availableSoftwarePackages") + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("displayNameContains", request.getDisplayNameContains()) + .appendQueryParam("isLatest", request.getIsLatest()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection.class, + ListAvailableSoftwarePackagesResponse.Builder::softwarePackageCollection) + .handleResponseHeaderString( + "opc-request-id", + ListAvailableSoftwarePackagesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListAvailableSoftwarePackagesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListEntitlementsResponse listEntitlements(ListEntitlementsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -948,6 +1043,7 @@ public ListSoftwareSourcesResponse listSoftwareSources(ListSoftwareSourcesReques com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam( "isMandatoryForAutonomousLinux", request.getIsMandatoryForAutonomousLinux()) + .appendQueryParam("isMirrorSyncAllowed", request.getIsMirrorSyncAllowed()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("displayNameContains", request.getDisplayNameContains()) .appendListQueryParam( @@ -975,6 +1071,80 @@ public ListSoftwareSourcesResponse listSoftwareSources(ListSoftwareSourcesReques .callSync(); } + @Override + public RemovePackagesFromSoftwareSourceResponse removePackagesFromSoftwareSource( + RemovePackagesFromSoftwareSourceRequest request) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + Objects.requireNonNull( + request.getRemovePackagesFromSoftwareSourceDetails(), + "removePackagesFromSoftwareSourceDetails is required"); + + return clientCall(request, RemovePackagesFromSoftwareSourceResponse::builder) + .logger(LOG, "removePackagesFromSoftwareSource") + .serviceDetails( + "SoftwareSource", + "RemovePackagesFromSoftwareSource", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/RemovePackagesFromSoftwareSource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RemovePackagesFromSoftwareSourceRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("removePackages") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + RemovePackagesFromSoftwareSourceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + RemovePackagesFromSoftwareSourceResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public ReplacePackagesInSoftwareSourceResponse replacePackagesInSoftwareSource( + ReplacePackagesInSoftwareSourceRequest request) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + Objects.requireNonNull( + request.getReplacePackagesInSoftwareSourceDetails(), + "replacePackagesInSoftwareSourceDetails is required"); + + return clientCall(request, ReplacePackagesInSoftwareSourceResponse::builder) + .logger(LOG, "replacePackagesInSoftwareSource") + .serviceDetails( + "SoftwareSource", + "ReplacePackagesInSoftwareSource", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/ReplacePackagesInSoftwareSource") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ReplacePackagesInSoftwareSourceRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("replacePackages") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ReplacePackagesInSoftwareSourceResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ReplacePackagesInSoftwareSourceResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public SearchSoftwareSourceModuleStreamsResponse searchSoftwareSourceModuleStreams( SearchSoftwareSourceModuleStreamsRequest request) { @@ -1084,6 +1254,36 @@ public SearchSoftwareSourcePackageGroupsResponse searchSoftwareSourcePackageGrou .callSync(); } + @Override + public SoftwareSourceGenerateMetadataResponse softwareSourceGenerateMetadata( + SoftwareSourceGenerateMetadataRequest request) { + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, SoftwareSourceGenerateMetadataResponse::builder) + .logger(LOG, "softwareSourceGenerateMetadata") + .serviceDetails( + "SoftwareSource", + "SoftwareSourceGenerateMetadata", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/SoftwareSourceGenerateMetadata") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SoftwareSourceGenerateMetadataRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("actions") + .appendPathParam("generateMetadata") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + SoftwareSourceGenerateMetadataResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateSoftwareSourceResponse updateSoftwareSource(UpdateSoftwareSourceRequest request) { @@ -1120,6 +1320,48 @@ public UpdateSoftwareSourceResponse updateSoftwareSource(UpdateSoftwareSourceReq .callSync(); } + @Override + public UpdateSoftwareSourceManifestResponse updateSoftwareSourceManifest( + UpdateSoftwareSourceManifestRequest request) { + Objects.requireNonNull( + request.getUpdateSoftwareSourceManifestDetails(), + "updateSoftwareSourceManifestDetails is required"); + + Validate.notBlank(request.getSoftwareSourceId(), "softwareSourceId must not be blank"); + + return clientCall(request, UpdateSoftwareSourceManifestResponse::builder) + .logger(LOG, "updateSoftwareSourceManifest") + .serviceDetails( + "SoftwareSource", + "UpdateSoftwareSourceManifest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/SoftwareSource/UpdateSoftwareSourceManifest") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(UpdateSoftwareSourceManifestRequest::builder) + .basePath("/20220901") + .appendPathParam("softwareSources") + .appendPathParam(request.getSoftwareSourceId()) + .appendPathParam("manifest") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBinaryRequestBody() + .hasBody() + .handleBody( + com.oracle.bmc.osmanagementhub.model.SoftwareSource.class, + UpdateSoftwareSourceManifestResponse.Builder::softwareSource) + .handleResponseHeaderString( + "opc-request-id", + UpdateSoftwareSourceManifestResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + UpdateSoftwareSourceManifestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "etag", UpdateSoftwareSourceManifestResponse.Builder::etag) + .callSync(); + } + @Override public SoftwareSourceWaiters getWaiters() { return waiters; diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java index 2486e753c20..3e2f2ff482c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/SoftwareSourcePaginators.java @@ -165,6 +165,134 @@ public ListAllSoftwarePackagesResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listAvailableSoftwarePackages 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 + listAvailableSoftwarePackagesResponseIterator( + final ListAvailableSoftwarePackagesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAvailableSoftwarePackagesRequest.Builder, + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse>( + new java.util.function.Supplier() { + @Override + public ListAvailableSoftwarePackagesRequest.Builder get() { + return ListAvailableSoftwarePackagesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableSoftwarePackagesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwarePackagesRequest.Builder>, + ListAvailableSoftwarePackagesRequest>() { + @Override + public ListAvailableSoftwarePackagesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwarePackagesRequest.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< + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse>() { + @Override + public ListAvailableSoftwarePackagesResponse apply( + ListAvailableSoftwarePackagesRequest request) { + return client.listAvailableSoftwarePackages(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.osmanagementhub.model.SoftwarePackageSummary} objects contained in responses + * from the listAvailableSoftwarePackages 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.osmanagementhub.model.SoftwarePackageSummary} objects contained in + * responses received from the service. + */ + public Iterable + listAvailableSoftwarePackagesRecordIterator( + final ListAvailableSoftwarePackagesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAvailableSoftwarePackagesRequest.Builder, + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse, + com.oracle.bmc.osmanagementhub.model.SoftwarePackageSummary>( + new java.util.function.Supplier() { + @Override + public ListAvailableSoftwarePackagesRequest.Builder get() { + return ListAvailableSoftwarePackagesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableSoftwarePackagesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwarePackagesRequest.Builder>, + ListAvailableSoftwarePackagesRequest>() { + @Override + public ListAvailableSoftwarePackagesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableSoftwarePackagesRequest.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< + ListAvailableSoftwarePackagesRequest, + ListAvailableSoftwarePackagesResponse>() { + @Override + public ListAvailableSoftwarePackagesResponse apply( + ListAvailableSoftwarePackagesRequest request) { + return client.listAvailableSoftwarePackages(request); + } + }, + new java.util.function.Function< + ListAvailableSoftwarePackagesResponse, + java.util.List< + com.oracle.bmc.osmanagementhub.model.SoftwarePackageSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.osmanagementhub.model.SoftwarePackageSummary> + apply(ListAvailableSoftwarePackagesResponse response) { + return response.getSoftwarePackageCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listEntitlements operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequest.java index 9d3d94e1fca..c86a1e90a41 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequest.java @@ -67,7 +67,7 @@ public interface WorkRequest extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about the specified work request. + * Returns information about the specified work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -82,7 +82,7 @@ public interface WorkRequest extends AutoCloseable { GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** - * Gets the errors for the specified work request. + * Returns the errors for the specified work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -98,7 +98,7 @@ public interface WorkRequest extends AutoCloseable { ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); /** - * Gets the logs for the specified work request. + * Returns the logs for the specified work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -131,6 +131,24 @@ public interface WorkRequest extends AutoCloseable { */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Reruns a failed work for the specified work request + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * Rerunning restarts the work on failed targets. + * + * @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 RerunWorkRequest + * API. + */ + RerunWorkRequestResponse rerunWorkRequest(RerunWorkRequestRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsync.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsync.java index ceda9d6bdb1..44a18752f2e 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsync.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsync.java @@ -64,7 +64,7 @@ public interface WorkRequestAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets information about the specified work request. + * Returns information about the specified work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -79,7 +79,7 @@ java.util.concurrent.Future getWorkRequest( handler); /** - * Gets the errors for the specified work request. + * Returns the errors for the specified work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -95,7 +95,7 @@ java.util.concurrent.Future listWorkRequestErrors handler); /** - * Gets the logs for the specified work request. + * Returns the logs for the specified work request. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -126,4 +126,21 @@ java.util.concurrent.Future listWorkRequests( ListWorkRequestsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Reruns a failed work for the specified work request + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * Rerunning restarts the work on failed targets. + * + * @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 rerunWorkRequest( + RerunWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsyncClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsyncClient.java index 79b6361cb73..da07b4b74c3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsyncClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestAsyncClient.java @@ -241,6 +241,7 @@ public java.util.concurrent.Future listWorkRequests( com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("displayNameContains", request.getDisplayNameContains()) .appendQueryParam("retryOfId", request.getRetryOfId()) + .appendQueryParam("rerunOfId", request.getRerunOfId()) .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) .appendQueryParam( "timeCreatedGreaterThanOrEqualTo", @@ -259,6 +260,42 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future rerunWorkRequest( + RerunWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RerunWorkRequestRequest, RerunWorkRequestResponse> + handler) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + Objects.requireNonNull( + request.getRerunWorkRequestDetails(), "rerunWorkRequestDetails is required"); + + return clientCall(request, RerunWorkRequestResponse::builder) + .logger(LOG, "rerunWorkRequest") + .serviceDetails( + "WorkRequest", + "RerunWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/WorkRequest/RerunWorkRequest") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RerunWorkRequestRequest::builder) + .basePath("/20220901") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("actions") + .appendPathParam("rerun") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", RerunWorkRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RerunWorkRequestResponse.Builder::opcRequestId) + .callAsync(handler); + } + /** * Create a new client instance. * diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestClient.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestClient.java index 22616f296e1..8e6f71ee490 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestClient.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/WorkRequestClient.java @@ -257,6 +257,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("displayNameContains", request.getDisplayNameContains()) .appendQueryParam("retryOfId", request.getRetryOfId()) + .appendQueryParam("rerunOfId", request.getRerunOfId()) .appendQueryParam("timeCreatedLessThan", request.getTimeCreatedLessThan()) .appendQueryParam( "timeCreatedGreaterThanOrEqualTo", @@ -276,6 +277,39 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .callSync(); } + @Override + public RerunWorkRequestResponse rerunWorkRequest(RerunWorkRequestRequest request) { + + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + Objects.requireNonNull( + request.getRerunWorkRequestDetails(), "rerunWorkRequestDetails is required"); + + return clientCall(request, RerunWorkRequestResponse::builder) + .logger(LOG, "rerunWorkRequest") + .serviceDetails( + "WorkRequest", + "RerunWorkRequest", + "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/WorkRequest/RerunWorkRequest") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RerunWorkRequestRequest::builder) + .basePath("/20220901") + .appendPathParam("workRequests") + .appendPathParam(request.getWorkRequestId()) + .appendPathParam("actions") + .appendPathParam("rerun") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", RerunWorkRequestResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", RerunWorkRequestResponse.Builder::opcRequestId) + .callSync(); + } + @Override public WorkRequestWaiters getWaiters() { return waiters; diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AddPackagesToSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AddPackagesToSoftwareSourceDetails.java index 4a836929168..17f67b299ec 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AddPackagesToSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AddPackagesToSoftwareSourceDetails.java @@ -23,20 +23,26 @@ public final class AddPackagesToSoftwareSourceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"packages"}) - public AddPackagesToSoftwareSourceDetails(java.util.List packages) { + @java.beans.ConstructorProperties({"packages", "isContinueOnMissingPackages"}) + public AddPackagesToSoftwareSourceDetails( + java.util.List packages, Boolean isContinueOnMissingPackages) { super(); this.packages = packages; + this.isContinueOnMissingPackages = isContinueOnMissingPackages; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of packages specified by the full package name (NEVRA.rpm). */ + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). + */ @com.fasterxml.jackson.annotation.JsonProperty("packages") private java.util.List packages; /** - * List of packages specified by the full package name (NEVRA.rpm). + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). * * @param packages the value to set * @return this builder @@ -46,13 +52,35 @@ public Builder packages(java.util.List packages) { this.__explicitlySet__.add("packages"); return this; } + /** + * Indicates whether the service should generate a custom software source when the package + * list contains invalid values. When set to true, the service ignores any invalid packages + * and generates the custom software source with using the valid packages. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isContinueOnMissingPackages") + private Boolean isContinueOnMissingPackages; + + /** + * Indicates whether the service should generate a custom software source when the package + * list contains invalid values. When set to true, the service ignores any invalid packages + * and generates the custom software source with using the valid packages. + * + * @param isContinueOnMissingPackages the value to set + * @return this builder + */ + public Builder isContinueOnMissingPackages(Boolean isContinueOnMissingPackages) { + this.isContinueOnMissingPackages = isContinueOnMissingPackages; + this.__explicitlySet__.add("isContinueOnMissingPackages"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AddPackagesToSoftwareSourceDetails build() { AddPackagesToSoftwareSourceDetails model = - new AddPackagesToSoftwareSourceDetails(this.packages); + new AddPackagesToSoftwareSourceDetails( + this.packages, this.isContinueOnMissingPackages); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,6 +92,9 @@ public Builder copy(AddPackagesToSoftwareSourceDetails model) { if (model.wasPropertyExplicitlySet("packages")) { this.packages(model.getPackages()); } + if (model.wasPropertyExplicitlySet("isContinueOnMissingPackages")) { + this.isContinueOnMissingPackages(model.getIsContinueOnMissingPackages()); + } return this; } } @@ -77,12 +108,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of packages specified by the full package name (NEVRA.rpm). */ + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). + */ @com.fasterxml.jackson.annotation.JsonProperty("packages") private final java.util.List packages; /** - * List of packages specified by the full package name (NEVRA.rpm). + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). * * @return the value */ @@ -90,6 +125,25 @@ public java.util.List getPackages() { return packages; } + /** + * Indicates whether the service should generate a custom software source when the package list + * contains invalid values. When set to true, the service ignores any invalid packages and + * generates the custom software source with using the valid packages. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isContinueOnMissingPackages") + private final Boolean isContinueOnMissingPackages; + + /** + * Indicates whether the service should generate a custom software source when the package list + * contains invalid values. When set to true, the service ignores any invalid packages and + * generates the custom software source with using the valid packages. + * + * @return the value + */ + public Boolean getIsContinueOnMissingPackages() { + return isContinueOnMissingPackages; + } + @Override public String toString() { return this.toString(true); @@ -106,6 +160,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("AddPackagesToSoftwareSourceDetails("); sb.append("super=").append(super.toString()); sb.append("packages=").append(String.valueOf(this.packages)); + sb.append(", isContinueOnMissingPackages=") + .append(String.valueOf(this.isContinueOnMissingPackages)); sb.append(")"); return sb.toString(); } @@ -120,7 +176,10 @@ public boolean equals(Object o) { } AddPackagesToSoftwareSourceDetails other = (AddPackagesToSoftwareSourceDetails) o; - return java.util.Objects.equals(this.packages, other.packages) && super.equals(other); + return java.util.Objects.equals(this.packages, other.packages) + && java.util.Objects.equals( + this.isContinueOnMissingPackages, other.isContinueOnMissingPackages) + && super.equals(other); } @Override @@ -128,6 +187,11 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = + (result * PRIME) + + (this.isContinueOnMissingPackages == null + ? 43 + : this.isContinueOnMissingPackages.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java index ca5dbdb1ade..3d6b0ec9641 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ArchType.java @@ -12,6 +12,7 @@ public enum ArchType implements com.oracle.bmc.http.internal.BmcEnum { I686("I686"), Noarch("NOARCH"), Src("SRC"), + I386("I386"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AssociateManagedInstancesWithManagementStationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AssociateManagedInstancesWithManagementStationDetails.java new file mode 100644 index 00000000000..ca6f5d126cf --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AssociateManagedInstancesWithManagementStationDetails.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to associate managed instances to a management station.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AssociateManagedInstancesWithManagementStationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AssociateManagedInstancesWithManagementStationDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedInstances", "workRequestDetails"}) + public AssociateManagedInstancesWithManagementStationDetails( + java.util.List managedInstances, WorkRequestDetails workRequestDetails) { + super(); + this.managedInstances = managedInstances; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + * + * @param managedInstances the value to set + * @return this builder + */ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AssociateManagedInstancesWithManagementStationDetails build() { + AssociateManagedInstancesWithManagementStationDetails model = + new AssociateManagedInstancesWithManagementStationDetails( + this.managedInstances, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AssociateManagedInstancesWithManagementStationDetails model) { + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + * + * @return the value + */ + public java.util.List getManagedInstances() { + return managedInstances; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @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("AssociateManagedInstancesWithManagementStationDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AssociateManagedInstancesWithManagementStationDetails)) { + return false; + } + + AssociateManagedInstancesWithManagementStationDetails other = + (AssociateManagedInstancesWithManagementStationDetails) o; + return java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachLifecycleStageToProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachLifecycleStageToProfileDetails.java new file mode 100644 index 00000000000..c3a63db04a7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachLifecycleStageToProfileDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to attach a lifecycle stage to a profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachLifecycleStageToProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachLifecycleStageToProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"lifecycleStageId"}) + public AttachLifecycleStageToProfileDetails(String lifecycleStageId) { + super(); + this.lifecycleStageId = lifecycleStageId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the lifecycle stage that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageId") + private String lifecycleStageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the lifecycle stage that the instance will be associated with. + * + * @param lifecycleStageId the value to set + * @return this builder + */ + public Builder lifecycleStageId(String lifecycleStageId) { + this.lifecycleStageId = lifecycleStageId; + this.__explicitlySet__.add("lifecycleStageId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachLifecycleStageToProfileDetails build() { + AttachLifecycleStageToProfileDetails model = + new AttachLifecycleStageToProfileDetails(this.lifecycleStageId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachLifecycleStageToProfileDetails model) { + if (model.wasPropertyExplicitlySet("lifecycleStageId")) { + this.lifecycleStageId(model.getLifecycleStageId()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the lifecycle stage that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStageId") + private final String lifecycleStageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the lifecycle stage that the instance will be associated with. + * + * @return the value + */ + public String getLifecycleStageId() { + return lifecycleStageId; + } + + @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("AttachLifecycleStageToProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("lifecycleStageId=").append(String.valueOf(this.lifecycleStageId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachLifecycleStageToProfileDetails)) { + return false; + } + + AttachLifecycleStageToProfileDetails other = (AttachLifecycleStageToProfileDetails) o; + return java.util.Objects.equals(this.lifecycleStageId, other.lifecycleStageId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.lifecycleStageId == null ? 43 : this.lifecycleStageId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagedInstanceGroupToProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagedInstanceGroupToProfileDetails.java new file mode 100644 index 00000000000..3551d2f91f6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagedInstanceGroupToProfileDetails.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to attach a managed instance group to a profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachManagedInstanceGroupToProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachManagedInstanceGroupToProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedInstanceGroupId"}) + public AttachManagedInstanceGroupToProfileDetails(String managedInstanceGroupId) { + super(); + this.managedInstanceGroupId = managedInstanceGroupId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance group that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupId") + private String managedInstanceGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance group that the instance will be associated with. + * + * @param managedInstanceGroupId the value to set + * @return this builder + */ + public Builder managedInstanceGroupId(String managedInstanceGroupId) { + this.managedInstanceGroupId = managedInstanceGroupId; + this.__explicitlySet__.add("managedInstanceGroupId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachManagedInstanceGroupToProfileDetails build() { + AttachManagedInstanceGroupToProfileDetails model = + new AttachManagedInstanceGroupToProfileDetails(this.managedInstanceGroupId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachManagedInstanceGroupToProfileDetails model) { + if (model.wasPropertyExplicitlySet("managedInstanceGroupId")) { + this.managedInstanceGroupId(model.getManagedInstanceGroupId()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance group that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroupId") + private final String managedInstanceGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance group that the instance will be associated with. + * + * @return the value + */ + public String getManagedInstanceGroupId() { + return managedInstanceGroupId; + } + + @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("AttachManagedInstanceGroupToProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachManagedInstanceGroupToProfileDetails)) { + return false; + } + + AttachManagedInstanceGroupToProfileDetails other = + (AttachManagedInstanceGroupToProfileDetails) o; + return java.util.Objects.equals(this.managedInstanceGroupId, other.managedInstanceGroupId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedInstanceGroupId == null + ? 43 + : this.managedInstanceGroupId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagementStationToProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagementStationToProfileDetails.java new file mode 100644 index 00000000000..594034c98c1 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachManagementStationToProfileDetails.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to attach a management station to a profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachManagementStationToProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachManagementStationToProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managementStationId"}) + public AttachManagementStationToProfileDetails(String managementStationId) { + super(); + this.managementStationId = managementStationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private String managementStationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station that the instance will be associated with. + * + * @param managementStationId the value to set + * @return this builder + */ + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachManagementStationToProfileDetails build() { + AttachManagementStationToProfileDetails model = + new AttachManagementStationToProfileDetails(this.managementStationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachManagementStationToProfileDetails model) { + if (model.wasPropertyExplicitlySet("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station that the instance will be associated with. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private final String managementStationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station that the instance will be associated with. + * + * @return the value + */ + public String getManagementStationId() { + return managementStationId; + } + + @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("AttachManagementStationToProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("managementStationId=").append(String.valueOf(this.managementStationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachManagementStationToProfileDetails)) { + return false; + } + + AttachManagementStationToProfileDetails other = (AttachManagementStationToProfileDetails) o; + return java.util.Objects.equals(this.managementStationId, other.managementStationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managementStationId == null + ? 43 + : this.managementStationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachSoftwareSourcesToProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachSoftwareSourcesToProfileDetails.java new file mode 100644 index 00000000000..ffc54685484 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/AttachSoftwareSourcesToProfileDetails.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to attach software sources to a profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttachSoftwareSourcesToProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class AttachSoftwareSourcesToProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"softwareSources"}) + public AttachSoftwareSourcesToProfileDetails(java.util.List softwareSources) { + super(); + this.softwareSources = softwareSources; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private java.util.List softwareSources; + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile. + * + * @param softwareSources the value to set + * @return this builder + */ + public Builder softwareSources(java.util.List softwareSources) { + this.softwareSources = softwareSources; + this.__explicitlySet__.add("softwareSources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttachSoftwareSourcesToProfileDetails build() { + AttachSoftwareSourcesToProfileDetails model = + new AttachSoftwareSourcesToProfileDetails(this.softwareSources); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttachSoftwareSourcesToProfileDetails model) { + if (model.wasPropertyExplicitlySet("softwareSources")) { + this.softwareSources(model.getSoftwareSources()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private final java.util.List softwareSources; + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile. + * + * @return the value + */ + public java.util.List getSoftwareSources() { + return softwareSources; + } + + @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("AttachSoftwareSourcesToProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("softwareSources=").append(String.valueOf(this.softwareSources)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AttachSoftwareSourcesToProfileDetails)) { + return false; + } + + AttachSoftwareSourcesToProfileDetails other = (AttachSoftwareSourcesToProfileDetails) o; + return java.util.Objects.equals(this.softwareSources, other.softwareSources) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.softwareSources == null ? 43 : this.softwareSources.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateCustomSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateCustomSoftwareSourceDetails.java index 1c789307a75..cafc64b447c 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateCustomSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateCustomSoftwareSourceDetails.java @@ -218,6 +218,21 @@ public Builder packages(java.util.List packages) { this.__explicitlySet__.add("packages"); return this; } + /** The creation type of a software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * The creation type of a software source. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -236,7 +251,8 @@ public CreateCustomSoftwareSourceDetails build() { this.isAutoResolveDependencies, this.isCreatedFromPackageList, this.isLatestContentOnly, - this.packages); + this.packages, + this.softwareSourceSubType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -281,6 +297,9 @@ public Builder copy(CreateCustomSoftwareSourceDetails model) { if (model.wasPropertyExplicitlySet("packages")) { this.packages(model.getPackages()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } return this; } } @@ -307,7 +326,8 @@ public CreateCustomSoftwareSourceDetails( Boolean isAutoResolveDependencies, Boolean isCreatedFromPackageList, Boolean isLatestContentOnly, - java.util.List packages) { + java.util.List packages, + SoftwareSourceSubType softwareSourceSubType) { super(compartmentId, displayName, description, freeformTags, definedTags); this.vendorSoftwareSources = vendorSoftwareSources; this.customSoftwareSourceFilter = customSoftwareSourceFilter; @@ -316,6 +336,7 @@ public CreateCustomSoftwareSourceDetails( this.isCreatedFromPackageList = isCreatedFromPackageList; this.isLatestContentOnly = isLatestContentOnly; this.packages = packages; + this.softwareSourceSubType = softwareSourceSubType; } /** List of vendor software sources. */ @@ -445,6 +466,19 @@ public java.util.List getPackages() { return packages; } + /** The creation type of a software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * The creation type of a software source. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + @Override public String toString() { return this.toString(true); @@ -470,6 +504,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isCreatedFromPackageList)); sb.append(", isLatestContentOnly=").append(String.valueOf(this.isLatestContentOnly)); sb.append(", packages=").append(String.valueOf(this.packages)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); sb.append(")"); return sb.toString(); } @@ -495,6 +530,7 @@ public boolean equals(Object o) { this.isCreatedFromPackageList, other.isCreatedFromPackageList) && java.util.Objects.equals(this.isLatestContentOnly, other.isLatestContentOnly) && java.util.Objects.equals(this.packages, other.packages) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) && super.equals(other); } @@ -533,6 +569,11 @@ public int hashCode() { ? 43 : this.isLatestContentOnly.hashCode()); result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java index 9c20f8a36cf..91caf194810 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateManagementStationDetails.java @@ -28,6 +28,7 @@ public final class CreateManagementStationDetails "displayName", "description", "hostname", + "isAutoConfigEnabled", "proxy", "mirror", "freeformTags", @@ -38,6 +39,7 @@ public CreateManagementStationDetails( String displayName, String description, String hostname, + Boolean isAutoConfigEnabled, CreateProxyConfigurationDetails proxy, CreateMirrorConfigurationDetails mirror, java.util.Map freeformTags, @@ -47,6 +49,7 @@ public CreateManagementStationDetails( this.displayName = displayName; this.description = description; this.hostname = hostname; + this.isAutoConfigEnabled = isAutoConfigEnabled; this.proxy = proxy; this.mirror = mirror; this.freeformTags = freeformTags; @@ -127,6 +130,25 @@ public Builder hostname(String hostname) { this.__explicitlySet__.add("hostname"); return this; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @param isAutoConfigEnabled the value to set + * @return this builder + */ + public Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled) { + this.isAutoConfigEnabled = isAutoConfigEnabled; + this.__explicitlySet__.add("isAutoConfigEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("proxy") private CreateProxyConfigurationDetails proxy; @@ -203,6 +225,7 @@ public CreateManagementStationDetails build() { this.displayName, this.description, this.hostname, + this.isAutoConfigEnabled, this.proxy, this.mirror, this.freeformTags, @@ -227,6 +250,9 @@ public Builder copy(CreateManagementStationDetails model) { if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } + if (model.wasPropertyExplicitlySet("isAutoConfigEnabled")) { + this.isAutoConfigEnabled(model.getIsAutoConfigEnabled()); + } if (model.wasPropertyExplicitlySet("proxy")) { this.proxy(model.getProxy()); } @@ -316,6 +342,23 @@ public String getHostname() { return hostname; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private final Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @return the value + */ + public Boolean getIsAutoConfigEnabled() { + return isAutoConfigEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("proxy") private final CreateProxyConfigurationDetails proxy; @@ -391,6 +434,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", isAutoConfigEnabled=").append(String.valueOf(this.isAutoConfigEnabled)); sb.append(", proxy=").append(String.valueOf(this.proxy)); sb.append(", mirror=").append(String.valueOf(this.mirror)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -413,6 +457,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.hostname, other.hostname) + && java.util.Objects.equals(this.isAutoConfigEnabled, other.isAutoConfigEnabled) && java.util.Objects.equals(this.proxy, other.proxy) && java.util.Objects.equals(this.mirror, other.mirror) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -430,6 +475,11 @@ public int 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.hostname == null ? 43 : this.hostname.hashCode()); + result = + (result * PRIME) + + (this.isAutoConfigEnabled == null + ? 43 + : this.isAutoConfigEnabled.hashCode()); result = (result * PRIME) + (this.proxy == null ? 43 : this.proxy.hashCode()); result = (result * PRIME) + (this.mirror == null ? 43 : this.mirror.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateMirrorConfigurationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateMirrorConfigurationDetails.java index e03010afcb2..832d614a054 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateMirrorConfigurationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateMirrorConfigurationDetails.java @@ -23,14 +23,25 @@ public final class CreateMirrorConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"directory", "port", "sslport", "sslcert"}) + @java.beans.ConstructorProperties({ + "directory", + "port", + "sslport", + "sslcert", + "isSslverifyEnabled" + }) public CreateMirrorConfigurationDetails( - String directory, String port, String sslport, String sslcert) { + String directory, + String port, + String sslport, + String sslcert, + Boolean isSslverifyEnabled) { super(); this.directory = directory; this.port = port; this.sslport = sslport; this.sslcert = sslcert; + this.isSslverifyEnabled = isSslverifyEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -99,6 +110,25 @@ public Builder sslcert(String sslcert) { this.__explicitlySet__.add("sslcert"); return this; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @param isSslverifyEnabled the value to set + * @return this builder + */ + public Builder isSslverifyEnabled(Boolean isSslverifyEnabled) { + this.isSslverifyEnabled = isSslverifyEnabled; + this.__explicitlySet__.add("isSslverifyEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -106,7 +136,11 @@ public Builder sslcert(String sslcert) { public CreateMirrorConfigurationDetails build() { CreateMirrorConfigurationDetails model = new CreateMirrorConfigurationDetails( - this.directory, this.port, this.sslport, this.sslcert); + this.directory, + this.port, + this.sslport, + this.sslcert, + this.isSslverifyEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -127,6 +161,9 @@ public Builder copy(CreateMirrorConfigurationDetails model) { if (model.wasPropertyExplicitlySet("sslcert")) { this.sslcert(model.getSslcert()); } + if (model.wasPropertyExplicitlySet("isSslverifyEnabled")) { + this.isSslverifyEnabled(model.getIsSslverifyEnabled()); + } return this; } } @@ -194,6 +231,23 @@ public String getSslcert() { return sslcert; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private final Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @return the value + */ + public Boolean getIsSslverifyEnabled() { + return isSslverifyEnabled; + } + @Override public String toString() { return this.toString(true); @@ -213,6 +267,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", sslport=").append(String.valueOf(this.sslport)); sb.append(", sslcert=").append(String.valueOf(this.sslcert)); + sb.append(", isSslverifyEnabled=").append(String.valueOf(this.isSslverifyEnabled)); sb.append(")"); return sb.toString(); } @@ -231,6 +286,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.sslport, other.sslport) && java.util.Objects.equals(this.sslcert, other.sslcert) + && java.util.Objects.equals(this.isSslverifyEnabled, other.isSslverifyEnabled) && super.equals(other); } @@ -242,6 +298,11 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.sslport == null ? 43 : this.sslport.hashCode()); result = (result * PRIME) + (this.sslcert == null ? 43 : this.sslcert.hashCode()); + result = + (result * PRIME) + + (this.isSslverifyEnabled == null + ? 43 + : this.isSslverifyEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreatePrivateSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreatePrivateSoftwareSourceDetails.java new file mode 100644 index 00000000000..2dd633227ad --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreatePrivateSoftwareSourceDetails.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to create a private software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreatePrivateSoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreatePrivateSoftwareSourceDetails extends CreateSoftwareSourceDetails { + @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("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; + } + /** The OS family for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The OS family for the private software source. + * + * @param osFamily the value to set + * @return this builder + */ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** The architecture type supported by the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type supported by the private software source. + * + * @param archType the value to set + * @return this builder + */ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + /** URL for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL for the private software source. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @param gpgKeyUrl the value to set + * @return this builder + */ + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + /** Whether signature verification should be done for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreatePrivateSoftwareSourceDetails build() { + CreatePrivateSoftwareSourceDetails model = + new CreatePrivateSoftwareSourceDetails( + this.compartmentId, + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.osFamily, + this.archType, + this.url, + this.gpgKeyUrl, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreatePrivateSoftwareSourceDetails 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreatePrivateSoftwareSourceDetails( + String compartmentId, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + OsFamily osFamily, + ArchType archType, + String url, + String gpgKeyUrl, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super(compartmentId, displayName, description, freeformTags, definedTags); + this.osFamily = osFamily; + this.archType = archType; + this.url = url; + this.gpgKeyUrl = gpgKeyUrl; + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** The OS family for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The OS family for the private software source. + * + * @return the value + */ + public OsFamily getOsFamily() { + return osFamily; + } + + /** The architecture type supported by the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type supported by the private software source. + * + * @return the value + */ + public ArchType getArchType() { + return archType; + } + + /** URL for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL for the private software source. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private final String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @return the value + */ + public String getGpgKeyUrl() { + return gpgKeyUrl; + } + + /** Whether signature verification should be done for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("CreatePrivateSoftwareSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", gpgKeyUrl=").append(String.valueOf(this.gpgKeyUrl)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreatePrivateSoftwareSourceDetails)) { + return false; + } + + CreatePrivateSoftwareSourceDetails other = (CreatePrivateSoftwareSourceDetails) o; + return java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.gpgKeyUrl, other.gpgKeyUrl) + && java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.gpgKeyUrl == null ? 43 : this.gpgKeyUrl.hashCode()); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java index 9c8a510e589..12cc1704717 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateProfileDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateGroupProfileDetails.class, name = "GROUP"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateWindowsStandAloneProfileDetails.class, + name = "WINDOWS_STANDALONE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateStationProfileDetails.class, name = "STATION"), @@ -71,15 +74,15 @@ protected CreateProfileDetails( } /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering - * confidential information. + * A user-friendly name. Does not have to be unique and you can change the name later. 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. + * A user-friendly name. Does not have to be unique and you can change the name later. Avoid + * entering confidential information. * * @return the value */ @@ -118,17 +121,19 @@ public String getDescription() { } /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * description: The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * management station to associate with an instance once registered. This is required when + * creating a profile for non-OCI instances. */ @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") private final String managementStationId; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * description: The + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * management station to associate with an instance once registered. This is required when + * creating a profile for non-OCI instances. * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java index ea9c1059bed..17572c1e319 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateScheduledJobDetails.java @@ -40,7 +40,8 @@ public final class CreateScheduledJobDetails "freeformTags", "definedTags", "retryIntervals", - "isManagedByAutonomousLinux" + "isManagedByAutonomousLinux", + "workRequestId" }) public CreateScheduledJobDetails( String compartmentId, @@ -59,7 +60,8 @@ public CreateScheduledJobDetails( java.util.Map freeformTags, java.util.Map> definedTags, java.util.List retryIntervals, - Boolean isManagedByAutonomousLinux) { + Boolean isManagedByAutonomousLinux, + String workRequestId) { super(); this.compartmentId = compartmentId; this.displayName = displayName; @@ -78,6 +80,7 @@ public CreateScheduledJobDetails( this.definedTags = definedTags; this.retryIntervals = retryIntervals; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.workRequestId = workRequestId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -442,6 +445,25 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { this.__explicitlySet__.add("isManagedByAutonomousLinux"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + * + * @param workRequestId the value to set + * @return this builder + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -465,7 +487,8 @@ public CreateScheduledJobDetails build() { this.freeformTags, this.definedTags, this.retryIntervals, - this.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, + this.workRequestId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -525,6 +548,9 @@ public Builder copy(CreateScheduledJobDetails model) { if (model.wasPropertyExplicitlySet("isManagedByAutonomousLinux")) { this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); } + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } return this; } } @@ -861,6 +887,23 @@ public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + * + * @return the value + */ + public String getWorkRequestId() { + return workRequestId; + } + @Override public String toString() { return this.toString(true); @@ -896,6 +939,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", retryIntervals=").append(String.valueOf(this.retryIntervals)); sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); sb.append(")"); return sb.toString(); } @@ -930,6 +974,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.retryIntervals, other.retryIntervals) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) && super.equals(other); } @@ -984,6 +1029,9 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateSoftwareSourceDetails.java index dac7b3ef99a..3c3cdab3ea0 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateSoftwareSourceDetails.java @@ -28,9 +28,15 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateVendorSoftwareSourceDetails.class, name = "VENDOR"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreatePrivateSoftwareSourceDetails.class, + name = "PRIVATE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CreateVersionedCustomSoftwareSourceDetails.class, - name = "VERSIONED") + name = "VERSIONED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateThirdPartySoftwareSourceDetails.class, + name = "THIRD_PARTY") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateThirdPartySoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateThirdPartySoftwareSourceDetails.java new file mode 100644 index 00000000000..3fab7bb5e2c --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateThirdPartySoftwareSourceDetails.java @@ -0,0 +1,481 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to create a third-party software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateThirdPartySoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateThirdPartySoftwareSourceDetails extends CreateSoftwareSourceDetails { + @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("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; + } + /** The OS family for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The OS family for the third-party software source. + * + * @param osFamily the value to set + * @return this builder + */ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** The architecture type supported by the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type supported by the third-party software source. + * + * @param archType the value to set + * @return this builder + */ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + /** URL for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL for the third-party software source. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @param gpgKeyUrl the value to set + * @return this builder + */ + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateThirdPartySoftwareSourceDetails build() { + CreateThirdPartySoftwareSourceDetails model = + new CreateThirdPartySoftwareSourceDetails( + this.compartmentId, + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.osFamily, + this.archType, + this.url, + this.gpgKeyUrl, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateThirdPartySoftwareSourceDetails 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateThirdPartySoftwareSourceDetails( + String compartmentId, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + OsFamily osFamily, + ArchType archType, + String url, + String gpgKeyUrl, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super(compartmentId, displayName, description, freeformTags, definedTags); + this.osFamily = osFamily; + this.archType = archType; + this.url = url; + this.gpgKeyUrl = gpgKeyUrl; + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** The OS family for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The OS family for the third-party software source. + * + * @return the value + */ + public OsFamily getOsFamily() { + return osFamily; + } + + /** The architecture type supported by the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type supported by the third-party software source. + * + * @return the value + */ + public ArchType getArchType() { + return archType; + } + + /** URL for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL for the third-party software source. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private final String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @return the value + */ + public String getGpgKeyUrl() { + return gpgKeyUrl; + } + + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("CreateThirdPartySoftwareSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", gpgKeyUrl=").append(String.valueOf(this.gpgKeyUrl)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateThirdPartySoftwareSourceDetails)) { + return false; + } + + CreateThirdPartySoftwareSourceDetails other = (CreateThirdPartySoftwareSourceDetails) o; + return java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.gpgKeyUrl, other.gpgKeyUrl) + && java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.gpgKeyUrl == null ? 43 : this.gpgKeyUrl.hashCode()); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVersionedCustomSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVersionedCustomSoftwareSourceDetails.java index 3c357a711ad..cb96a845a64 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVersionedCustomSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateVersionedCustomSoftwareSourceDetails.java @@ -212,6 +212,21 @@ public Builder packages(java.util.List packages) { this.__explicitlySet__.add("packages"); return this; } + /** The creation type of a software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * The creation type of a software source. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -230,7 +245,8 @@ public CreateVersionedCustomSoftwareSourceDetails build() { this.isAutoResolveDependencies, this.isCreatedFromPackageList, this.isLatestContentOnly, - this.packages); + this.packages, + this.softwareSourceSubType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -275,6 +291,9 @@ public Builder copy(CreateVersionedCustomSoftwareSourceDetails model) { if (model.wasPropertyExplicitlySet("packages")) { this.packages(model.getPackages()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } return this; } } @@ -301,7 +320,8 @@ public CreateVersionedCustomSoftwareSourceDetails( Boolean isAutoResolveDependencies, Boolean isCreatedFromPackageList, Boolean isLatestContentOnly, - java.util.List packages) { + java.util.List packages, + SoftwareSourceSubType softwareSourceSubType) { super(compartmentId, displayName, description, freeformTags, definedTags); this.vendorSoftwareSources = vendorSoftwareSources; this.customSoftwareSourceFilter = customSoftwareSourceFilter; @@ -310,6 +330,7 @@ public CreateVersionedCustomSoftwareSourceDetails( this.isCreatedFromPackageList = isCreatedFromPackageList; this.isLatestContentOnly = isLatestContentOnly; this.packages = packages; + this.softwareSourceSubType = softwareSourceSubType; } /** List of vendor software sources. */ @@ -435,6 +456,19 @@ public java.util.List getPackages() { return packages; } + /** The creation type of a software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * The creation type of a software source. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + @Override public String toString() { return this.toString(true); @@ -460,6 +494,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isCreatedFromPackageList)); sb.append(", isLatestContentOnly=").append(String.valueOf(this.isLatestContentOnly)); sb.append(", packages=").append(String.valueOf(this.packages)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); sb.append(")"); return sb.toString(); } @@ -485,6 +520,7 @@ public boolean equals(Object o) { this.isCreatedFromPackageList, other.isCreatedFromPackageList) && java.util.Objects.equals(this.isLatestContentOnly, other.isLatestContentOnly) && java.util.Objects.equals(this.packages, other.packages) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) && super.equals(other); } @@ -523,6 +559,11 @@ public int hashCode() { ? 43 : this.isLatestContentOnly.hashCode()); result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateWindowsStandAloneProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateWindowsStandAloneProfileDetails.java new file mode 100644 index 00000000000..b1d9e5d05e3 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CreateWindowsStandAloneProfileDetails.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to create a Windows standalone registration profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateWindowsStandAloneProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "profileType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateWindowsStandAloneProfileDetails extends CreateProfileDetails { + @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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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("managementStationId") + private String managementStationId; + + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("registrationType") + private Profile.RegistrationType registrationType; + + public Builder registrationType(Profile.RegistrationType registrationType) { + this.registrationType = registrationType; + this.__explicitlySet__.add("registrationType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultProfile") + private Boolean isDefaultProfile; + + public Builder isDefaultProfile(Boolean isDefaultProfile) { + this.isDefaultProfile = isDefaultProfile; + this.__explicitlySet__.add("isDefaultProfile"); + 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 vendor of the operating system for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * + * @param vendorName the value to set + * @return this builder + */ + public Builder vendorName(VendorName vendorName) { + this.vendorName = vendorName; + this.__explicitlySet__.add("vendorName"); + return this; + } + /** The operating system family. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * + * @param osFamily the value to set + * @return this builder + */ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** The architecture type. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * + * @param archType the value to set + * @return this builder + */ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateWindowsStandAloneProfileDetails build() { + CreateWindowsStandAloneProfileDetails model = + new CreateWindowsStandAloneProfileDetails( + this.displayName, + this.compartmentId, + this.description, + this.managementStationId, + this.registrationType, + this.isDefaultProfile, + this.freeformTags, + this.definedTags, + this.vendorName, + this.osFamily, + this.archType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateWindowsStandAloneProfileDetails 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("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + if (model.wasPropertyExplicitlySet("registrationType")) { + this.registrationType(model.getRegistrationType()); + } + if (model.wasPropertyExplicitlySet("isDefaultProfile")) { + this.isDefaultProfile(model.getIsDefaultProfile()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vendorName")) { + this.vendorName(model.getVendorName()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateWindowsStandAloneProfileDetails( + String displayName, + String compartmentId, + String description, + String managementStationId, + Profile.RegistrationType registrationType, + Boolean isDefaultProfile, + java.util.Map freeformTags, + java.util.Map> definedTags, + VendorName vendorName, + OsFamily osFamily, + ArchType archType) { + super( + displayName, + compartmentId, + description, + managementStationId, + registrationType, + isDefaultProfile, + freeformTags, + definedTags); + this.vendorName = vendorName; + this.osFamily = osFamily; + this.archType = archType; + } + + /** The vendor of the operating system for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private final VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * + * @return the value + */ + public VendorName getVendorName() { + return vendorName; + } + + /** The operating system family. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * + * @return the value + */ + public OsFamily getOsFamily() { + return osFamily; + } + + /** The architecture type. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * + * @return the value + */ + public ArchType getArchType() { + return archType; + } + + @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("CreateWindowsStandAloneProfileDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", vendorName=").append(String.valueOf(this.vendorName)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateWindowsStandAloneProfileDetails)) { + return false; + } + + CreateWindowsStandAloneProfileDetails other = (CreateWindowsStandAloneProfileDetails) o; + return java.util.Objects.equals(this.vendorName, other.vendorName) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.vendorName == null ? 43 : this.vendorName.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSource.java index 1c26e1a49c0..ef626d5d651 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSource.java @@ -360,6 +360,40 @@ public Builder packages(java.util.List packages) { this.__explicitlySet__.add("packages"); return this; } + /** Identifies how the custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the custom software source was created. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMetadataUpdated") + private java.util.Date timeMetadataUpdated; + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeMetadataUpdated the value to set + * @return this builder + */ + public Builder timeMetadataUpdated(java.util.Date timeMetadataUpdated) { + this.timeMetadataUpdated = timeMetadataUpdated; + this.__explicitlySet__.add("timeMetadataUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -394,7 +428,9 @@ public CustomSoftwareSource build() { this.isAutoResolveDependencies, this.isCreatedFromPackageList, this.isLatestContentOnly, - this.packages); + this.packages, + this.softwareSourceSubType, + this.timeMetadataUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -487,6 +523,12 @@ public Builder copy(CustomSoftwareSource model) { if (model.wasPropertyExplicitlySet("packages")) { this.packages(model.getPackages()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } + if (model.wasPropertyExplicitlySet("timeMetadataUpdated")) { + this.timeMetadataUpdated(model.getTimeMetadataUpdated()); + } return this; } } @@ -529,7 +571,9 @@ public CustomSoftwareSource( Boolean isAutoResolveDependencies, Boolean isCreatedFromPackageList, Boolean isLatestContentOnly, - java.util.List packages) { + java.util.List packages, + SoftwareSourceSubType softwareSourceSubType, + java.util.Date timeMetadataUpdated) { super( id, compartmentId, @@ -559,6 +603,8 @@ public CustomSoftwareSource( this.isCreatedFromPackageList = isCreatedFromPackageList; this.isLatestContentOnly = isLatestContentOnly; this.packages = packages; + this.softwareSourceSubType = softwareSourceSubType; + this.timeMetadataUpdated = timeMetadataUpdated; } /** @@ -682,6 +728,36 @@ public java.util.List getPackages() { return packages; } + /** Identifies how the custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the custom software source was created. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMetadataUpdated") + private final java.util.Date timeMetadataUpdated; + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + */ + public java.util.Date getTimeMetadataUpdated() { + return timeMetadataUpdated; + } + @Override public String toString() { return this.toString(true); @@ -707,6 +783,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isCreatedFromPackageList)); sb.append(", isLatestContentOnly=").append(String.valueOf(this.isLatestContentOnly)); sb.append(", packages=").append(String.valueOf(this.packages)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); + sb.append(", timeMetadataUpdated=").append(String.valueOf(this.timeMetadataUpdated)); sb.append(")"); return sb.toString(); } @@ -732,6 +810,8 @@ public boolean equals(Object o) { this.isCreatedFromPackageList, other.isCreatedFromPackageList) && java.util.Objects.equals(this.isLatestContentOnly, other.isLatestContentOnly) && java.util.Objects.equals(this.packages, other.packages) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) + && java.util.Objects.equals(this.timeMetadataUpdated, other.timeMetadataUpdated) && super.equals(other); } @@ -770,6 +850,16 @@ public int hashCode() { ? 43 : this.isLatestContentOnly.hashCode()); result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); + result = + (result * PRIME) + + (this.timeMetadataUpdated == null + ? 43 + : this.timeMetadataUpdated.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSourceSummary.java index cd4a0caa955..fd3a6013bf3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSourceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/CustomSoftwareSourceSummary.java @@ -5,8 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Indicates whether the service should create the software source from a list of packages provided - * by the user.
+ * Provides summary information for a custom software source.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -209,6 +208,21 @@ public Builder vendorSoftwareSources(java.util.List vendorSoftwareSources) { this.__explicitlySet__.add("vendorSoftwareSources"); return this; } + /** Identifies how the custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the custom software source was created. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -234,7 +248,8 @@ public CustomSoftwareSourceSummary build() { this.freeformTags, this.definedTags, this.systemTags, - this.vendorSoftwareSources); + this.vendorSoftwareSources, + this.softwareSourceSubType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -300,6 +315,9 @@ public Builder copy(CustomSoftwareSourceSummary model) { if (model.wasPropertyExplicitlySet("vendorSoftwareSources")) { this.vendorSoftwareSources(model.getVendorSoftwareSources()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } return this; } } @@ -333,7 +351,8 @@ public CustomSoftwareSourceSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - java.util.List vendorSoftwareSources) { + java.util.List vendorSoftwareSources, + SoftwareSourceSubType softwareSourceSubType) { super( id, compartmentId, @@ -354,6 +373,7 @@ public CustomSoftwareSourceSummary( definedTags, systemTags); this.vendorSoftwareSources = vendorSoftwareSources; + this.softwareSourceSubType = softwareSourceSubType; } /** @@ -371,6 +391,19 @@ public java.util.List getVendorSoftwareSources() { return vendorSoftwareSources; } + /** Identifies how the custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the custom software source was created. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + @Override public String toString() { return this.toString(true); @@ -387,6 +420,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("CustomSoftwareSourceSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vendorSoftwareSources=").append(String.valueOf(this.vendorSoftwareSources)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); sb.append(")"); return sb.toString(); } @@ -402,6 +436,7 @@ public boolean equals(Object o) { CustomSoftwareSourceSummary other = (CustomSoftwareSourceSummary) o; return java.util.Objects.equals(this.vendorSoftwareSources, other.vendorSoftwareSources) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) && super.equals(other); } @@ -414,6 +449,11 @@ public int hashCode() { + (this.vendorSoftwareSources == null ? 43 : this.vendorSoftwareSources.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachSoftwareSourcesFromProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachSoftwareSourcesFromProfileDetails.java new file mode 100644 index 00000000000..56f788d53e1 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/DetachSoftwareSourcesFromProfileDetails.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to detach software sources from a profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DetachSoftwareSourcesFromProfileDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DetachSoftwareSourcesFromProfileDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"softwareSources"}) + public DetachSoftwareSourcesFromProfileDetails(java.util.List softwareSources) { + super(); + this.softwareSources = softwareSources; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private java.util.List softwareSources; + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile. + * + * @param softwareSources the value to set + * @return this builder + */ + public Builder softwareSources(java.util.List softwareSources) { + this.softwareSources = softwareSources; + this.__explicitlySet__.add("softwareSources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DetachSoftwareSourcesFromProfileDetails build() { + DetachSoftwareSourcesFromProfileDetails model = + new DetachSoftwareSourcesFromProfileDetails(this.softwareSources); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DetachSoftwareSourcesFromProfileDetails model) { + if (model.wasPropertyExplicitlySet("softwareSources")) { + this.softwareSources(model.getSoftwareSources()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private final java.util.List softwareSources; + + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile. + * + * @return the value + */ + public java.util.List getSoftwareSources() { + return softwareSources; + } + + @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("DetachSoftwareSourcesFromProfileDetails("); + sb.append("super=").append(super.toString()); + sb.append("softwareSources=").append(String.valueOf(this.softwareSources)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DetachSoftwareSourcesFromProfileDetails)) { + return false; + } + + DetachSoftwareSourcesFromProfileDetails other = (DetachSoftwareSourcesFromProfileDetails) o; + return java.util.Objects.equals(this.softwareSources, other.softwareSources) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.softwareSources == null ? 43 : this.softwareSources.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java index 1755a064ee1..41d23884264 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Event.java @@ -38,6 +38,10 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = KernelCrashEvent.class, name = "KERNEL_CRASH"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = SysadminEvent.class, + name = "SYSADMIN"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = RebootEvent.class, name = "REBOOT"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = ExploitAttemptEvent.class, name = "EXPLOIT_ATTEMPT"), diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java index cdcab432dab..82cb3123933 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/EventType.java @@ -15,6 +15,8 @@ public enum EventType implements com.oracle.bmc.http.internal.BmcEnum { SoftwareSource("SOFTWARE_SOURCE"), Agent("AGENT"), ManagementStation("MANAGEMENT_STATION"), + Sysadmin("SYSADMIN"), + Reboot("REBOOT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/GroupProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/GroupProfile.java index 8d9c35516b6..ebb4b9c2a63 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/GroupProfile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/GroupProfile.java @@ -107,6 +107,24 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -195,6 +213,8 @@ public GroupProfile build() { this.osFamily, this.archType, this.timeCreated, + this.timeModified, + this.profileVersion, this.lifecycleState, this.registrationType, this.isDefaultProfile, @@ -238,6 +258,12 @@ public Builder copy(GroupProfile model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -286,6 +312,8 @@ public GroupProfile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -304,6 +332,8 @@ public GroupProfile( osFamily, archType, timeCreated, + timeModified, + profileVersion, lifecycleState, registrationType, isDefaultProfile, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/HealthState.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/HealthState.java index b05032f3bb9..628ee041c5f 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/HealthState.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/HealthState.java @@ -4,11 +4,12 @@ */ package com.oracle.bmc.osmanagementhub.model; -/** Overall health status of the managment station. */ +/** Overall health status of the management station. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") public enum HealthState implements com.oracle.bmc.http.internal.BmcEnum { Healthy("HEALTHY"), Unhealthy("UNHEALTHY"), + Unavailable("UNAVAILABLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnManagedInstanceGroupDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnManagedInstanceGroupDetails.java index 5a6ffda2991..a7255ea4f40 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnManagedInstanceGroupDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/InstallPackagesOnManagedInstanceGroupDetails.java @@ -23,12 +23,15 @@ public final class InstallPackagesOnManagedInstanceGroupDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"packageNames", "workRequestDetails"}) + @java.beans.ConstructorProperties({"packageNames", "workRequestDetails", "isLatest"}) public InstallPackagesOnManagedInstanceGroupDetails( - java.util.List packageNames, WorkRequestDetails workRequestDetails) { + java.util.List packageNames, + WorkRequestDetails workRequestDetails, + Boolean isLatest) { super(); this.packageNames = packageNames; this.workRequestDetails = workRequestDetails; + this.isLatest = isLatest; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -57,6 +60,21 @@ public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { this.__explicitlySet__.add("workRequestDetails"); return this; } + /** Indicates whether this is the latest package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatest") + private Boolean isLatest; + + /** + * Indicates whether this is the latest package version. + * + * @param isLatest the value to set + * @return this builder + */ + public Builder isLatest(Boolean isLatest) { + this.isLatest = isLatest; + this.__explicitlySet__.add("isLatest"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -64,7 +82,7 @@ public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { public InstallPackagesOnManagedInstanceGroupDetails build() { InstallPackagesOnManagedInstanceGroupDetails model = new InstallPackagesOnManagedInstanceGroupDetails( - this.packageNames, this.workRequestDetails); + this.packageNames, this.workRequestDetails, this.isLatest); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -79,6 +97,9 @@ public Builder copy(InstallPackagesOnManagedInstanceGroupDetails model) { if (model.wasPropertyExplicitlySet("workRequestDetails")) { this.workRequestDetails(model.getWorkRequestDetails()); } + if (model.wasPropertyExplicitlySet("isLatest")) { + this.isLatest(model.getIsLatest()); + } return this; } } @@ -112,6 +133,19 @@ public WorkRequestDetails getWorkRequestDetails() { return workRequestDetails; } + /** Indicates whether this is the latest package version. */ + @com.fasterxml.jackson.annotation.JsonProperty("isLatest") + private final Boolean isLatest; + + /** + * Indicates whether this is the latest package version. + * + * @return the value + */ + public Boolean getIsLatest() { + return isLatest; + } + @Override public String toString() { return this.toString(true); @@ -129,6 +163,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("packageNames=").append(String.valueOf(this.packageNames)); sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(", isLatest=").append(String.valueOf(this.isLatest)); sb.append(")"); return sb.toString(); } @@ -146,6 +181,7 @@ public boolean equals(Object o) { (InstallPackagesOnManagedInstanceGroupDetails) o; return java.util.Objects.equals(this.packageNames, other.packageNames) && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && java.util.Objects.equals(this.isLatest, other.isLatest) && super.equals(other); } @@ -159,6 +195,7 @@ public int hashCode() { + (this.workRequestDetails == null ? 43 : this.workRequestDetails.hashCode()); + result = (result * PRIME) + (this.isLatest == null ? 43 : this.isLatest.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/LifecycleProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/LifecycleProfile.java index 7424f81f276..f5dfc9393dd 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/LifecycleProfile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/LifecycleProfile.java @@ -107,6 +107,24 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -204,6 +222,8 @@ public LifecycleProfile build() { this.osFamily, this.archType, this.timeCreated, + this.timeModified, + this.profileVersion, this.lifecycleState, this.registrationType, this.isDefaultProfile, @@ -248,6 +268,12 @@ public Builder copy(LifecycleProfile model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -299,6 +325,8 @@ public LifecycleProfile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -318,6 +346,8 @@ public LifecycleProfile( osFamily, archType, timeCreated, + timeModified, + profileVersion, lifecycleState, registrationType, isDefaultProfile, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java index 68f6483bb33..003c7fdbf80 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstance.java @@ -39,6 +39,7 @@ public final class ManagedInstance "osFamily", "status", "profile", + "profileVersion", "isManagementStation", "primaryManagementStationId", "secondaryManagementStationId", @@ -60,7 +61,8 @@ public final class ManagedInstance "timeUpdated", "notificationTopicId", "autonomousSettings", - "isManagedByAutonomousLinux" + "isManagedByAutonomousLinux", + "agentVersion" }) public ManagedInstance( String id, @@ -79,6 +81,7 @@ public ManagedInstance( OsFamily osFamily, ManagedInstanceStatus status, String profile, + String profileVersion, Boolean isManagementStation, String primaryManagementStationId, String secondaryManagementStationId, @@ -100,7 +103,8 @@ public ManagedInstance( java.util.Date timeUpdated, String notificationTopicId, AutonomousSettings autonomousSettings, - Boolean isManagedByAutonomousLinux) { + Boolean isManagedByAutonomousLinux, + String agentVersion) { super(); this.id = id; this.displayName = displayName; @@ -118,6 +122,7 @@ public ManagedInstance( this.osFamily = osFamily; this.status = status; this.profile = profile; + this.profileVersion = profileVersion; this.isManagementStation = isManagementStation; this.primaryManagementStationId = primaryManagementStationId; this.secondaryManagementStationId = secondaryManagementStationId; @@ -140,6 +145,7 @@ public ManagedInstance( this.notificationTopicId = notificationTopicId; this.autonomousSettings = autonomousSettings; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.agentVersion = agentVersion; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -404,6 +410,21 @@ public Builder profile(String profile) { this.__explicitlySet__.add("profile"); return this; } + /** The version of the profile that was used to register this instance with the service. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + /** + * The version of the profile that was used to register this instance with the service. + * + * @param profileVersion the value to set + * @return this builder + */ + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } /** * Indicates whether this managed instance is acting as an on-premises management station. */ @@ -442,14 +463,14 @@ public Builder primaryManagementStationId(String primaryManagementStationId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the management station for the instance to use as secondary managment station. + * of the management station for the instance to use as secondary management station. */ @com.fasterxml.jackson.annotation.JsonProperty("secondaryManagementStationId") private String secondaryManagementStationId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the management station for the instance to use as secondary managment station. + * of the management station for the instance to use as secondary management station. * * @param secondaryManagementStationId the value to set * @return this builder @@ -734,6 +755,21 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { this.__explicitlySet__.add("isManagedByAutonomousLinux"); return this; } + /** The version of osmh-agent running on the managed instance */ + @com.fasterxml.jackson.annotation.JsonProperty("agentVersion") + private String agentVersion; + + /** + * The version of osmh-agent running on the managed instance + * + * @param agentVersion the value to set + * @return this builder + */ + public Builder agentVersion(String agentVersion) { + this.agentVersion = agentVersion; + this.__explicitlySet__.add("agentVersion"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -757,6 +793,7 @@ public ManagedInstance build() { this.osFamily, this.status, this.profile, + this.profileVersion, this.isManagementStation, this.primaryManagementStationId, this.secondaryManagementStationId, @@ -778,7 +815,8 @@ public ManagedInstance build() { this.timeUpdated, this.notificationTopicId, this.autonomousSettings, - this.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, + this.agentVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -835,6 +873,9 @@ public Builder copy(ManagedInstance model) { if (model.wasPropertyExplicitlySet("profile")) { this.profile(model.getProfile()); } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("isManagementStation")) { this.isManagementStation(model.getIsManagementStation()); } @@ -901,6 +942,9 @@ public Builder copy(ManagedInstance model) { if (model.wasPropertyExplicitlySet("isManagedByAutonomousLinux")) { this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); } + if (model.wasPropertyExplicitlySet("agentVersion")) { + this.agentVersion(model.getAgentVersion()); + } return this; } } @@ -1142,6 +1186,19 @@ public String getProfile() { return profile; } + /** The version of the profile that was used to register this instance with the service. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private final String profileVersion; + + /** + * The version of the profile that was used to register this instance with the service. + * + * @return the value + */ + public String getProfileVersion() { + return profileVersion; + } + /** Indicates whether this managed instance is acting as an on-premises management station. */ @com.fasterxml.jackson.annotation.JsonProperty("isManagementStation") private final Boolean isManagementStation; @@ -1174,14 +1231,14 @@ public String getPrimaryManagementStationId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station for the instance to use as secondary managment station. + * the management station for the instance to use as secondary management station. */ @com.fasterxml.jackson.annotation.JsonProperty("secondaryManagementStationId") private final String secondaryManagementStationId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station for the instance to use as secondary managment station. + * the management station for the instance to use as secondary management station. * * @return the value */ @@ -1426,6 +1483,19 @@ public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** The version of osmh-agent running on the managed instance */ + @com.fasterxml.jackson.annotation.JsonProperty("agentVersion") + private final String agentVersion; + + /** + * The version of osmh-agent running on the managed instance + * + * @return the value + */ + public String getAgentVersion() { + return agentVersion; + } + @Override public String toString() { return this.toString(true); @@ -1458,6 +1528,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", osFamily=").append(String.valueOf(this.osFamily)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", profile=").append(String.valueOf(this.profile)); + sb.append(", profileVersion=").append(String.valueOf(this.profileVersion)); sb.append(", isManagementStation=").append(String.valueOf(this.isManagementStation)); sb.append(", primaryManagementStationId=") .append(String.valueOf(this.primaryManagementStationId)); @@ -1486,6 +1557,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", autonomousSettings=").append(String.valueOf(this.autonomousSettings)); sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(", agentVersion=").append(String.valueOf(this.agentVersion)); sb.append(")"); return sb.toString(); } @@ -1517,6 +1589,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.osFamily, other.osFamily) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.profile, other.profile) + && java.util.Objects.equals(this.profileVersion, other.profileVersion) && java.util.Objects.equals(this.isManagementStation, other.isManagementStation) && java.util.Objects.equals( this.primaryManagementStationId, other.primaryManagementStationId) @@ -1545,6 +1618,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousSettings, other.autonomousSettings) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.agentVersion, other.agentVersion) && super.equals(other); } @@ -1578,6 +1652,9 @@ public int hashCode() { result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + (this.profile == null ? 43 : this.profile.hashCode()); + result = + (result * PRIME) + + (this.profileVersion == null ? 43 : this.profileVersion.hashCode()); result = (result * PRIME) + (this.isManagementStation == null @@ -1666,6 +1743,7 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = (result * PRIME) + (this.agentVersion == null ? 43 : this.agentVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceStatus.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceStatus.java index 88e07a78dca..77aa1a68e31 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceStatus.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceStatus.java @@ -14,6 +14,7 @@ public enum ManagedInstanceStatus implements com.oracle.bmc.http.internal.BmcEnu RegistrationError("REGISTRATION_ERROR"), Deleting("DELETING"), Onboarding("ONBOARDING"), + Rebooting("REBOOTING"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java index 83a56c250ad..6e7a6f9b509 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagedInstanceSummary.java @@ -41,7 +41,8 @@ public final class ManagedInstanceSummary "isManagementStation", "notificationTopicId", "autonomousSettings", - "isManagedByAutonomousLinux" + "isManagedByAutonomousLinux", + "agentVersion" }) public ManagedInstanceSummary( String id, @@ -61,7 +62,8 @@ public ManagedInstanceSummary( Boolean isManagementStation, String notificationTopicId, AutonomousSettings autonomousSettings, - Boolean isManagedByAutonomousLinux) { + Boolean isManagedByAutonomousLinux, + String agentVersion) { super(); this.id = id; this.displayName = displayName; @@ -81,6 +83,7 @@ public ManagedInstanceSummary( this.notificationTopicId = notificationTopicId; this.autonomousSettings = autonomousSettings; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.agentVersion = agentVersion; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -349,6 +352,21 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { this.__explicitlySet__.add("isManagedByAutonomousLinux"); return this; } + /** The version of osmh-agent running on the managed instance */ + @com.fasterxml.jackson.annotation.JsonProperty("agentVersion") + private String agentVersion; + + /** + * The version of osmh-agent running on the managed instance + * + * @param agentVersion the value to set + * @return this builder + */ + public Builder agentVersion(String agentVersion) { + this.agentVersion = agentVersion; + this.__explicitlySet__.add("agentVersion"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -373,7 +391,8 @@ public ManagedInstanceSummary build() { this.isManagementStation, this.notificationTopicId, this.autonomousSettings, - this.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, + this.agentVersion); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -436,6 +455,9 @@ public Builder copy(ManagedInstanceSummary model) { if (model.wasPropertyExplicitlySet("isManagedByAutonomousLinux")) { this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); } + if (model.wasPropertyExplicitlySet("agentVersion")) { + this.agentVersion(model.getAgentVersion()); + } return this; } } @@ -677,6 +699,19 @@ public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** The version of osmh-agent running on the managed instance */ + @com.fasterxml.jackson.annotation.JsonProperty("agentVersion") + private final String agentVersion; + + /** + * The version of osmh-agent running on the managed instance + * + * @return the value + */ + public String getAgentVersion() { + return agentVersion; + } + @Override public String toString() { return this.toString(true); @@ -711,6 +746,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", autonomousSettings=").append(String.valueOf(this.autonomousSettings)); sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(", agentVersion=").append(String.valueOf(this.agentVersion)); sb.append(")"); return sb.toString(); } @@ -744,6 +780,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousSettings, other.autonomousSettings) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.agentVersion, other.agentVersion) && super.equals(other); } @@ -801,6 +838,7 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = (result * PRIME) + (this.agentVersion == null ? 43 : this.agentVersion.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java index 7c5edd1abc7..b13247f6af3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStation.java @@ -41,6 +41,14 @@ public final class ManagementStation "mirror", "health", "lifecycleState", + "isAutoConfigEnabled", + "peerManagementStations", + "location", + "mirrorStorageAvailableSize", + "mirrorStorageSize", + "mirrorSize", + "mirrorUniquePackageCount", + "mirrorPackageCount", "freeformTags", "definedTags", "systemTags" @@ -63,6 +71,14 @@ public ManagementStation( MirrorConfiguration mirror, StationHealth health, LifecycleState lifecycleState, + Boolean isAutoConfigEnabled, + java.util.List peerManagementStations, + ManagedInstanceLocation location, + Long mirrorStorageAvailableSize, + Long mirrorStorageSize, + Long mirrorSize, + Integer mirrorUniquePackageCount, + Integer mirrorPackageCount, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -84,6 +100,14 @@ public ManagementStation( this.mirror = mirror; this.health = health; this.lifecycleState = lifecycleState; + this.isAutoConfigEnabled = isAutoConfigEnabled; + this.peerManagementStations = peerManagementStations; + this.location = location; + this.mirrorStorageAvailableSize = mirrorStorageAvailableSize; + this.mirrorStorageSize = mirrorStorageSize; + this.mirrorSize = mirrorSize; + this.mirrorUniquePackageCount = mirrorUniquePackageCount; + this.mirrorPackageCount = mirrorPackageCount; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -342,6 +366,141 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @param isAutoConfigEnabled the value to set + * @return this builder + */ + public Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled) { + this.isAutoConfigEnabled = isAutoConfigEnabled; + this.__explicitlySet__.add("isAutoConfigEnabled"); + return this; + } + /** + * A list of other management stations that are behind the same load balancer within a high + * availability configuration. Stations are identified as peers if they have the same + * hostname and compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerManagementStations") + private java.util.List peerManagementStations; + + /** + * A list of other management stations that are behind the same load balancer within a high + * availability configuration. Stations are identified as peers if they have the same + * hostname and compartment. + * + * @param peerManagementStations the value to set + * @return this builder + */ + public Builder peerManagementStations( + java.util.List peerManagementStations) { + this.peerManagementStations = peerManagementStations; + this.__explicitlySet__.add("peerManagementStations"); + return this; + } + /** The location of the instance that is acting as the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private ManagedInstanceLocation location; + + /** + * The location of the instance that is acting as the management station. + * + * @param location the value to set + * @return this builder + */ + public Builder location(ManagedInstanceLocation location) { + this.location = location; + this.__explicitlySet__.add("location"); + return this; + } + /** Amount of available mirror storage in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorStorageAvailableSize") + private Long mirrorStorageAvailableSize; + + /** + * Amount of available mirror storage in bytes. + * + * @param mirrorStorageAvailableSize the value to set + * @return this builder + */ + public Builder mirrorStorageAvailableSize(Long mirrorStorageAvailableSize) { + this.mirrorStorageAvailableSize = mirrorStorageAvailableSize; + this.__explicitlySet__.add("mirrorStorageAvailableSize"); + return this; + } + /** Total mirror storage size in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorStorageSize") + private Long mirrorStorageSize; + + /** + * Total mirror storage size in bytes. + * + * @param mirrorStorageSize the value to set + * @return this builder + */ + public Builder mirrorStorageSize(Long mirrorStorageSize) { + this.mirrorStorageSize = mirrorStorageSize; + this.__explicitlySet__.add("mirrorStorageSize"); + return this; + } + /** The total size of all software source mirrors in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorSize") + private Long mirrorSize; + + /** + * The total size of all software source mirrors in bytes. + * + * @param mirrorSize the value to set + * @return this builder + */ + public Builder mirrorSize(Long mirrorSize) { + this.mirrorSize = mirrorSize; + this.__explicitlySet__.add("mirrorSize"); + return this; + } + /** + * The total number of unique packages within the mirrored software sources on the station. + * Each package is counted only once, regardless of how many versions it has. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorUniquePackageCount") + private Integer mirrorUniquePackageCount; + + /** + * The total number of unique packages within the mirrored software sources on the station. + * Each package is counted only once, regardless of how many versions it has. + * + * @param mirrorUniquePackageCount the value to set + * @return this builder + */ + public Builder mirrorUniquePackageCount(Integer mirrorUniquePackageCount) { + this.mirrorUniquePackageCount = mirrorUniquePackageCount; + this.__explicitlySet__.add("mirrorUniquePackageCount"); + return this; + } + /** The total number of all packages within the mirrored software sources. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorPackageCount") + private Integer mirrorPackageCount; + + /** + * The total number of all packages within the mirrored software sources. + * + * @param mirrorPackageCount the value to set + * @return this builder + */ + public Builder mirrorPackageCount(Integer mirrorPackageCount) { + this.mirrorPackageCount = mirrorPackageCount; + this.__explicitlySet__.add("mirrorPackageCount"); + 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 @@ -432,6 +591,14 @@ public ManagementStation build() { this.mirror, this.health, this.lifecycleState, + this.isAutoConfigEnabled, + this.peerManagementStations, + this.location, + this.mirrorStorageAvailableSize, + this.mirrorStorageSize, + this.mirrorSize, + this.mirrorUniquePackageCount, + this.mirrorPackageCount, this.freeformTags, this.definedTags, this.systemTags); @@ -494,6 +661,30 @@ public Builder copy(ManagementStation model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("isAutoConfigEnabled")) { + this.isAutoConfigEnabled(model.getIsAutoConfigEnabled()); + } + if (model.wasPropertyExplicitlySet("peerManagementStations")) { + this.peerManagementStations(model.getPeerManagementStations()); + } + if (model.wasPropertyExplicitlySet("location")) { + this.location(model.getLocation()); + } + if (model.wasPropertyExplicitlySet("mirrorStorageAvailableSize")) { + this.mirrorStorageAvailableSize(model.getMirrorStorageAvailableSize()); + } + if (model.wasPropertyExplicitlySet("mirrorStorageSize")) { + this.mirrorStorageSize(model.getMirrorStorageSize()); + } + if (model.wasPropertyExplicitlySet("mirrorSize")) { + this.mirrorSize(model.getMirrorSize()); + } + if (model.wasPropertyExplicitlySet("mirrorUniquePackageCount")) { + this.mirrorUniquePackageCount(model.getMirrorUniquePackageCount()); + } + if (model.wasPropertyExplicitlySet("mirrorPackageCount")) { + this.mirrorPackageCount(model.getMirrorPackageCount()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -783,6 +974,124 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private final Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @return the value + */ + public Boolean getIsAutoConfigEnabled() { + return isAutoConfigEnabled; + } + + /** + * A list of other management stations that are behind the same load balancer within a high + * availability configuration. Stations are identified as peers if they have the same hostname + * and compartment. + */ + @com.fasterxml.jackson.annotation.JsonProperty("peerManagementStations") + private final java.util.List peerManagementStations; + + /** + * A list of other management stations that are behind the same load balancer within a high + * availability configuration. Stations are identified as peers if they have the same hostname + * and compartment. + * + * @return the value + */ + public java.util.List getPeerManagementStations() { + return peerManagementStations; + } + + /** The location of the instance that is acting as the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private final ManagedInstanceLocation location; + + /** + * The location of the instance that is acting as the management station. + * + * @return the value + */ + public ManagedInstanceLocation getLocation() { + return location; + } + + /** Amount of available mirror storage in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorStorageAvailableSize") + private final Long mirrorStorageAvailableSize; + + /** + * Amount of available mirror storage in bytes. + * + * @return the value + */ + public Long getMirrorStorageAvailableSize() { + return mirrorStorageAvailableSize; + } + + /** Total mirror storage size in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorStorageSize") + private final Long mirrorStorageSize; + + /** + * Total mirror storage size in bytes. + * + * @return the value + */ + public Long getMirrorStorageSize() { + return mirrorStorageSize; + } + + /** The total size of all software source mirrors in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorSize") + private final Long mirrorSize; + + /** + * The total size of all software source mirrors in bytes. + * + * @return the value + */ + public Long getMirrorSize() { + return mirrorSize; + } + + /** + * The total number of unique packages within the mirrored software sources on the station. Each + * package is counted only once, regardless of how many versions it has. + */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorUniquePackageCount") + private final Integer mirrorUniquePackageCount; + + /** + * The total number of unique packages within the mirrored software sources on the station. Each + * package is counted only once, regardless of how many versions it has. + * + * @return the value + */ + public Integer getMirrorUniquePackageCount() { + return mirrorUniquePackageCount; + } + + /** The total number of all packages within the mirrored software sources. */ + @com.fasterxml.jackson.annotation.JsonProperty("mirrorPackageCount") + private final Integer mirrorPackageCount; + + /** + * The total number of all packages within the mirrored software sources. + * + * @return the value + */ + public Integer getMirrorPackageCount() { + return mirrorPackageCount; + } + /** * 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 @@ -874,6 +1183,16 @@ public String toString(boolean includeByteArrayContents) { sb.append(", mirror=").append(String.valueOf(this.mirror)); sb.append(", health=").append(String.valueOf(this.health)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", isAutoConfigEnabled=").append(String.valueOf(this.isAutoConfigEnabled)); + sb.append(", peerManagementStations=").append(String.valueOf(this.peerManagementStations)); + sb.append(", location=").append(String.valueOf(this.location)); + sb.append(", mirrorStorageAvailableSize=") + .append(String.valueOf(this.mirrorStorageAvailableSize)); + sb.append(", mirrorStorageSize=").append(String.valueOf(this.mirrorStorageSize)); + sb.append(", mirrorSize=").append(String.valueOf(this.mirrorSize)); + sb.append(", mirrorUniquePackageCount=") + .append(String.valueOf(this.mirrorUniquePackageCount)); + sb.append(", mirrorPackageCount=").append(String.valueOf(this.mirrorPackageCount)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -908,6 +1227,17 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.mirror, other.mirror) && java.util.Objects.equals(this.health, other.health) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.isAutoConfigEnabled, other.isAutoConfigEnabled) + && java.util.Objects.equals( + this.peerManagementStations, other.peerManagementStations) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals( + this.mirrorStorageAvailableSize, other.mirrorStorageAvailableSize) + && java.util.Objects.equals(this.mirrorStorageSize, other.mirrorStorageSize) + && java.util.Objects.equals(this.mirrorSize, other.mirrorSize) + && java.util.Objects.equals( + this.mirrorUniquePackageCount, other.mirrorUniquePackageCount) + && java.util.Objects.equals(this.mirrorPackageCount, other.mirrorPackageCount) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -949,6 +1279,36 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.isAutoConfigEnabled == null + ? 43 + : this.isAutoConfigEnabled.hashCode()); + result = + (result * PRIME) + + (this.peerManagementStations == null + ? 43 + : this.peerManagementStations.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.mirrorStorageAvailableSize == null + ? 43 + : this.mirrorStorageAvailableSize.hashCode()); + result = + (result * PRIME) + + (this.mirrorStorageSize == null ? 43 : this.mirrorStorageSize.hashCode()); + result = (result * PRIME) + (this.mirrorSize == null ? 43 : this.mirrorSize.hashCode()); + result = + (result * PRIME) + + (this.mirrorUniquePackageCount == null + ? 43 + : this.mirrorUniquePackageCount.hashCode()); + result = + (result * PRIME) + + (this.mirrorPackageCount == null + ? 43 + : this.mirrorPackageCount.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationEventData.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationEventData.java index 3daffd6b802..5bad41feb0b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationEventData.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationEventData.java @@ -23,13 +23,20 @@ public final class ManagementStationEventData extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"operationType", "status", "additionalDetails"}) + @java.beans.ConstructorProperties({ + "operationType", + "healthState", + "status", + "additionalDetails" + }) public ManagementStationEventData( OperationType operationType, + HealthState healthState, EventStatus status, WorkRequestEventDataAdditionalDetails additionalDetails) { super(); this.operationType = operationType; + this.healthState = healthState; this.status = status; this.additionalDetails = additionalDetails; } @@ -51,6 +58,21 @@ public Builder operationType(OperationType operationType) { this.__explicitlySet__.add("operationType"); return this; } + /** Health state of the management station */ + @com.fasterxml.jackson.annotation.JsonProperty("healthState") + private HealthState healthState; + + /** + * Health state of the management station + * + * @param healthState the value to set + * @return this builder + */ + public Builder healthState(HealthState healthState) { + this.healthState = healthState; + this.__explicitlySet__.add("healthState"); + return this; + } /** Status of the management station operation. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private EventStatus status; @@ -82,7 +104,10 @@ public Builder additionalDetails(WorkRequestEventDataAdditionalDetails additiona public ManagementStationEventData build() { ManagementStationEventData model = new ManagementStationEventData( - this.operationType, this.status, this.additionalDetails); + this.operationType, + this.healthState, + this.status, + this.additionalDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -94,6 +119,9 @@ public Builder copy(ManagementStationEventData model) { if (model.wasPropertyExplicitlySet("operationType")) { this.operationType(model.getOperationType()); } + if (model.wasPropertyExplicitlySet("healthState")) { + this.healthState(model.getHealthState()); + } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } @@ -118,6 +146,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { SetManagementStationConfig("SET_MANAGEMENT_STATION_CONFIG"), SyncManagementStationMirror("SYNC_MANAGEMENT_STATION_MIRROR"), UpdateManagementStationSoftware("UPDATE_MANAGEMENT_STATION_SOFTWARE"), + SetManagementStationHealthState("SET_MANAGEMENT_STATION_HEALTH_STATE"), /** * This value is used if a service returns a value for this enum that is not recognized by @@ -173,6 +202,66 @@ public OperationType getOperationType() { return operationType; } + /** Health state of the management station */ + public enum HealthState implements com.oracle.bmc.http.internal.BmcEnum { + Healthy("HEALTHY"), + Unhealthy("UNHEALTHY"), + Unavailable("UNAVAILABLE"), + + /** + * 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(HealthState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HealthState v : HealthState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HealthState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HealthState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HealthState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Health state of the management station */ + @com.fasterxml.jackson.annotation.JsonProperty("healthState") + private final HealthState healthState; + + /** + * Health state of the management station + * + * @return the value + */ + public HealthState getHealthState() { + return healthState; + } + /** Status of the management station operation. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final EventStatus status; @@ -209,6 +298,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("ManagementStationEventData("); sb.append("super=").append(super.toString()); sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", healthState=").append(String.valueOf(this.healthState)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); sb.append(")"); @@ -226,6 +316,7 @@ public boolean equals(Object o) { ManagementStationEventData other = (ManagementStationEventData) o; return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.healthState, other.healthState) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) && super.equals(other); @@ -238,6 +329,7 @@ public int hashCode() { result = (result * PRIME) + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.healthState == null ? 43 : this.healthState.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java index dd8732b52f5..f450de8e8bc 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ManagementStationSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Summary of the Management Station.
+ * Provides summary information for a management station.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -38,6 +38,7 @@ public final class ManagementStationSummary "overallPercentage", "mirrorCapacity", "lifecycleState", + "location", "freeformTags", "definedTags", "systemTags" @@ -57,6 +58,7 @@ public ManagementStationSummary( Integer overallPercentage, Integer mirrorCapacity, ManagementStation.LifecycleState lifecycleState, + ManagedInstanceLocation location, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -75,6 +77,7 @@ public ManagementStationSummary( this.overallPercentage = overallPercentage; this.mirrorCapacity = mirrorCapacity; this.lifecycleState = lifecycleState; + this.location = location; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -316,6 +319,21 @@ public Builder lifecycleState(ManagementStation.LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** The location of the instance that is acting as the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private ManagedInstanceLocation location; + + /** + * The location of the instance that is acting as the management station. + * + * @param location the value to set + * @return this builder + */ + public Builder location(ManagedInstanceLocation location) { + this.location = location; + this.__explicitlySet__.add("location"); + 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 @@ -403,6 +421,7 @@ public ManagementStationSummary build() { this.overallPercentage, this.mirrorCapacity, this.lifecycleState, + this.location, this.freeformTags, this.definedTags, this.systemTags); @@ -456,6 +475,9 @@ public Builder copy(ManagementStationSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("location")) { + this.location(model.getLocation()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -684,6 +706,19 @@ public ManagementStation.LifecycleState getLifecycleState() { return lifecycleState; } + /** The location of the instance that is acting as the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("location") + private final ManagedInstanceLocation location; + + /** + * The location of the instance that is acting as the management station. + * + * @return the value + */ + public ManagedInstanceLocation getLocation() { + return location; + } + /** * 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 @@ -772,6 +807,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", overallPercentage=").append(String.valueOf(this.overallPercentage)); sb.append(", mirrorCapacity=").append(String.valueOf(this.mirrorCapacity)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", location=").append(String.valueOf(this.location)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -803,6 +839,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.overallPercentage, other.overallPercentage) && java.util.Objects.equals(this.mirrorCapacity, other.mirrorCapacity) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.location, other.location) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -841,6 +878,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java index 8dd7ca136e3..254de825c1d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MetricName.java @@ -21,6 +21,8 @@ public enum MetricName implements com.oracle.bmc.http.internal.BmcEnum { InstanceBugfixUpdatesCount("INSTANCE_BUGFIX_UPDATES_COUNT"), InstanceSecurityAdvisoryCount("INSTANCE_SECURITY_ADVISORY_COUNT"), InstanceBugfixAdvisoryCount("INSTANCE_BUGFIX_ADVISORY_COUNT"), + RebootingInstanceCount("REBOOTING_INSTANCE_COUNT"), + NeedsRebootingInstanceCount("NEEDS_REBOOTING_INSTANCE_COUNT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorConfiguration.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorConfiguration.java index be53693e8ef..3363ef28f2d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorConfiguration.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorConfiguration.java @@ -23,13 +23,25 @@ public final class MirrorConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"directory", "port", "sslport", "sslcert"}) - public MirrorConfiguration(String directory, String port, String sslport, String sslcert) { + @java.beans.ConstructorProperties({ + "directory", + "port", + "sslport", + "sslcert", + "isSslverifyEnabled" + }) + public MirrorConfiguration( + String directory, + String port, + String sslport, + String sslcert, + Boolean isSslverifyEnabled) { super(); this.directory = directory; this.port = port; this.sslport = sslport; this.sslcert = sslcert; + this.isSslverifyEnabled = isSslverifyEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -98,13 +110,37 @@ public Builder sslcert(String sslcert) { this.__explicitlySet__.add("sslcert"); return this; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @param isSslverifyEnabled the value to set + * @return this builder + */ + public Builder isSslverifyEnabled(Boolean isSslverifyEnabled) { + this.isSslverifyEnabled = isSslverifyEnabled; + this.__explicitlySet__.add("isSslverifyEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public MirrorConfiguration build() { MirrorConfiguration model = - new MirrorConfiguration(this.directory, this.port, this.sslport, this.sslcert); + new MirrorConfiguration( + this.directory, + this.port, + this.sslport, + this.sslcert, + this.isSslverifyEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -125,6 +161,9 @@ public Builder copy(MirrorConfiguration model) { if (model.wasPropertyExplicitlySet("sslcert")) { this.sslcert(model.getSslcert()); } + if (model.wasPropertyExplicitlySet("isSslverifyEnabled")) { + this.isSslverifyEnabled(model.getIsSslverifyEnabled()); + } return this; } } @@ -192,6 +231,23 @@ public String getSslcert() { return sslcert; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private final Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @return the value + */ + public Boolean getIsSslverifyEnabled() { + return isSslverifyEnabled; + } + @Override public String toString() { return this.toString(true); @@ -211,6 +267,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", sslport=").append(String.valueOf(this.sslport)); sb.append(", sslcert=").append(String.valueOf(this.sslcert)); + sb.append(", isSslverifyEnabled=").append(String.valueOf(this.isSslverifyEnabled)); sb.append(")"); return sb.toString(); } @@ -229,6 +286,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.sslport, other.sslport) && java.util.Objects.equals(this.sslcert, other.sslcert) + && java.util.Objects.equals(this.isSslverifyEnabled, other.isSslverifyEnabled) && super.equals(other); } @@ -240,6 +298,11 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.sslport == null ? 43 : this.sslport.hashCode()); result = (result * PRIME) + (this.sslcert == null ? 43 : this.sslcert.hashCode()); + result = + (result * PRIME) + + (this.isSslverifyEnabled == null + ? 43 + : this.isSslverifyEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorSummary.java index 2fc22951581..f9af1bee334 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Summary of a Mirror
+ * Provides summary information for a software source mirror.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -30,7 +30,9 @@ public final class MirrorSummary extends com.oracle.bmc.http.client.internal.Exp "state", "percentage", "timeLastSynced", - "log" + "log", + "packageCount", + "size" }) public MirrorSummary( String id, @@ -41,7 +43,9 @@ public MirrorSummary( MirrorState state, Integer percentage, java.util.Date timeLastSynced, - String log) { + String log, + Integer packageCount, + Long size) { super(); this.id = id; this.displayName = displayName; @@ -52,16 +56,22 @@ public MirrorSummary( this.percentage = percentage; this.timeLastSynced = timeLastSynced; this.log = log; + this.packageCount = packageCount; + this.size = size; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** OCID of a software source */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * OCID of a software source + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. * * @param id the value to set * @return this builder @@ -71,12 +81,12 @@ public Builder id(String id) { this.__explicitlySet__.add("id"); return this; } - /** Display name of the mirror */ + /** Display name of the mirror. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display name of the mirror + * Display name of the mirror. * * @param displayName the value to set * @return this builder @@ -86,12 +96,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** Type of the mirror */ + /** Type of software source. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private MirrorType type; /** - * Type of the mirror + * Type of software source. * * @param type the value to set * @return this builder @@ -101,12 +111,12 @@ public Builder type(MirrorType type) { this.__explicitlySet__.add("type"); return this; } - /** The OS family the Software Source belongs to */ + /** The OS family of the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("osFamily") private OsFamily osFamily; /** - * The OS family the Software Source belongs to + * The OS family of the software source. * * @param osFamily the value to set * @return this builder @@ -116,12 +126,12 @@ public Builder osFamily(OsFamily osFamily) { this.__explicitlySet__.add("osFamily"); return this; } - /** The architecture type supported by the Software Source */ + /** The architecture type supported by the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("archType") private ArchType archType; /** - * The architecture type supported by the Software Source + * The architecture type supported by the software source. * * @param archType the value to set * @return this builder @@ -131,12 +141,12 @@ public Builder archType(ArchType archType) { this.__explicitlySet__.add("archType"); return this; } - /** Current state of the mirror */ + /** Current state of the software source mirror. */ @com.fasterxml.jackson.annotation.JsonProperty("state") private MirrorState state; /** - * Current state of the mirror + * Current state of the software source mirror. * * @param state the value to set * @return this builder @@ -146,12 +156,14 @@ public Builder state(MirrorState state) { this.__explicitlySet__.add("state"); return this; } - /** A decimal number representing the completness percentage */ + /** + * A decimal number representing the percentage of the software source that has been synced. + */ @com.fasterxml.jackson.annotation.JsonProperty("percentage") private Integer percentage; /** - * A decimal number representing the completness percentage + * A decimal number representing the percentage of the software source that has been synced. * * @param percentage the value to set * @return this builder @@ -161,12 +173,16 @@ public Builder percentage(Integer percentage) { this.__explicitlySet__.add("percentage"); return this; } - /** Timestamp of the last time the mirror was sync */ + /** + * Time that the software source was last synced (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastSynced") private java.util.Date timeLastSynced; /** - * Timestamp of the last time the mirror was sync + * Time that the software source was last synced (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @param timeLastSynced the value to set * @return this builder @@ -191,6 +207,36 @@ public Builder log(String log) { this.__explicitlySet__.add("log"); return this; } + /** The number of packages within the mirrored software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageCount") + private Integer packageCount; + + /** + * The number of packages within the mirrored software source. + * + * @param packageCount the value to set + * @return this builder + */ + public Builder packageCount(Integer packageCount) { + this.packageCount = packageCount; + this.__explicitlySet__.add("packageCount"); + return this; + } + /** The size the mirrored software source in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Long size; + + /** + * The size the mirrored software source in bytes. + * + * @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.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -206,7 +252,9 @@ public MirrorSummary build() { this.state, this.percentage, this.timeLastSynced, - this.log); + this.log, + this.packageCount, + this.size); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -242,6 +290,12 @@ public Builder copy(MirrorSummary model) { if (model.wasPropertyExplicitlySet("log")) { this.log(model.getLog()); } + if (model.wasPropertyExplicitlySet("packageCount")) { + this.packageCount(model.getPackageCount()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } return this; } } @@ -255,12 +309,16 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** OCID of a software source */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * OCID of a software source + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. * * @return the value */ @@ -268,12 +326,12 @@ public String getId() { return id; } - /** Display name of the mirror */ + /** Display name of the mirror. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display name of the mirror + * Display name of the mirror. * * @return the value */ @@ -281,12 +339,12 @@ public String getDisplayName() { return displayName; } - /** Type of the mirror */ + /** Type of software source. */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final MirrorType type; /** - * Type of the mirror + * Type of software source. * * @return the value */ @@ -294,12 +352,12 @@ public MirrorType getType() { return type; } - /** The OS family the Software Source belongs to */ + /** The OS family of the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("osFamily") private final OsFamily osFamily; /** - * The OS family the Software Source belongs to + * The OS family of the software source. * * @return the value */ @@ -307,12 +365,12 @@ public OsFamily getOsFamily() { return osFamily; } - /** The architecture type supported by the Software Source */ + /** The architecture type supported by the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("archType") private final ArchType archType; /** - * The architecture type supported by the Software Source + * The architecture type supported by the software source. * * @return the value */ @@ -320,12 +378,12 @@ public ArchType getArchType() { return archType; } - /** Current state of the mirror */ + /** Current state of the software source mirror. */ @com.fasterxml.jackson.annotation.JsonProperty("state") private final MirrorState state; /** - * Current state of the mirror + * Current state of the software source mirror. * * @return the value */ @@ -333,12 +391,12 @@ public MirrorState getState() { return state; } - /** A decimal number representing the completness percentage */ + /** A decimal number representing the percentage of the software source that has been synced. */ @com.fasterxml.jackson.annotation.JsonProperty("percentage") private final Integer percentage; /** - * A decimal number representing the completness percentage + * A decimal number representing the percentage of the software source that has been synced. * * @return the value */ @@ -346,12 +404,16 @@ public Integer getPercentage() { return percentage; } - /** Timestamp of the last time the mirror was sync */ + /** + * Time that the software source was last synced (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastSynced") private final java.util.Date timeLastSynced; /** - * Timestamp of the last time the mirror was sync + * Time that the software source was last synced (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @return the value */ @@ -372,6 +434,32 @@ public String getLog() { return log; } + /** The number of packages within the mirrored software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("packageCount") + private final Integer packageCount; + + /** + * The number of packages within the mirrored software source. + * + * @return the value + */ + public Integer getPackageCount() { + return packageCount; + } + + /** The size the mirrored software source in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("size") + private final Long size; + + /** + * The size the mirrored software source in bytes. + * + * @return the value + */ + public Long getSize() { + return size; + } + @Override public String toString() { return this.toString(true); @@ -396,6 +484,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", percentage=").append(String.valueOf(this.percentage)); sb.append(", timeLastSynced=").append(String.valueOf(this.timeLastSynced)); sb.append(", log=").append(String.valueOf(this.log)); + sb.append(", packageCount=").append(String.valueOf(this.packageCount)); + sb.append(", size=").append(String.valueOf(this.size)); sb.append(")"); return sb.toString(); } @@ -419,6 +509,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.percentage, other.percentage) && java.util.Objects.equals(this.timeLastSynced, other.timeLastSynced) && java.util.Objects.equals(this.log, other.log) + && java.util.Objects.equals(this.packageCount, other.packageCount) + && java.util.Objects.equals(this.size, other.size) && super.equals(other); } @@ -437,6 +529,8 @@ public int hashCode() { (result * PRIME) + (this.timeLastSynced == null ? 43 : this.timeLastSynced.hashCode()); result = (result * PRIME) + (this.log == null ? 43 : this.log.hashCode()); + result = (result * PRIME) + (this.packageCount == null ? 43 : this.packageCount.hashCode()); + result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorType.java index d0b6153e732..253692946f4 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorType.java @@ -4,12 +4,14 @@ */ package com.oracle.bmc.osmanagementhub.model; -/** Mirror type. */ +/** Type of mirrored software source. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") public enum MirrorType implements com.oracle.bmc.http.internal.BmcEnum { Custom("CUSTOM"), Vendor("VENDOR"), Versioned("VERSIONED"), + Private("PRIVATE"), + ThirdParty("THIRD_PARTY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorsCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorsCollection.java index d1989d35f2c..f167dea10b5 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorsCollection.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/MirrorsCollection.java @@ -5,7 +5,8 @@ package com.oracle.bmc.osmanagementhub.model; /** - * List of mirrors associated with a Management Station
+ * The set of software source mirrors returned for the {@link #listMirrors(ListMirrorsRequest) + * listMirrors} operation.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java index 8343ad3d40b..18cfeeaa369 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationStatus.java @@ -7,6 +7,7 @@ /** Possible operation statuses. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { + Waiting("WAITING"), Accepted("ACCEPTED"), InProgress("IN_PROGRESS"), Failed("FAILED"), diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java index 527cbf826fa..13bb748bf25 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/OperationTypes.java @@ -29,6 +29,8 @@ public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum { InstallBugfixWindowsUpdates("INSTALL_BUGFIX_WINDOWS_UPDATES"), InstallEnhancementWindowsUpdates("INSTALL_ENHANCEMENT_WINDOWS_UPDATES"), InstallOtherWindowsUpdates("INSTALL_OTHER_WINDOWS_UPDATES"), + Reboot("REBOOT"), + RerunWorkRequest("RERUN_WORK_REQUEST"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PeerManagementStation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PeerManagementStation.java new file mode 100644 index 00000000000..26a581f700a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PeerManagementStation.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * A list of other management stations that are behind the same load balancer within a high + * availability configuration. Stations are identified as peers if they have the same hostname and + * compartment.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PeerManagementStation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PeerManagementStation + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "displayName"}) + public PeerManagementStation(String id, String displayName) { + super(); + this.id = id; + this.displayName = displayName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** User-friendly name for the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * User-friendly name for the management station. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PeerManagementStation build() { + PeerManagementStation model = new PeerManagementStation(this.id, this.displayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PeerManagementStation model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station. + * + * @return the value + */ + public String getId() { + return id; + } + + /** User-friendly name for the management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * User-friendly name for the management station. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + @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("PeerManagementStation("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PeerManagementStation)) { + return false; + } + + PeerManagementStation other = (PeerManagementStation) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && 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) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSource.java new file mode 100644 index 00000000000..ad08e853423 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSource.java @@ -0,0 +1,580 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * The object that defines a private software source. A software source is a collection of packages. + * For more information, see [Managing Software + * Sources](https://docs.cloud.oracle.com/iaas/osmh/doc/software-sources.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrivateSoftwareSource.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrivateSoftwareSource extends SoftwareSource { + @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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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("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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private Availability availability; + + public Builder availability(Availability availability) { + this.availability = availability; + this.__explicitlySet__.add("availability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availabilityAtOci") + private Availability availabilityAtOci; + + public Builder availabilityAtOci(Availability availabilityAtOci) { + this.availabilityAtOci = availabilityAtOci; + this.__explicitlySet__.add("availabilityAtOci"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("repoId") + private String repoId; + + public Builder repoId(String repoId) { + this.repoId = repoId; + this.__explicitlySet__.add("repoId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + 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("packageCount") + private Long packageCount; + + public Builder packageCount(Long packageCount) { + this.packageCount = packageCount; + this.__explicitlySet__.add("packageCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("checksumType") + private ChecksumType checksumType; + + public Builder checksumType(ChecksumType checksumType) { + this.checksumType = checksumType; + this.__explicitlySet__.add("checksumType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyId") + private String gpgKeyId; + + public Builder gpgKeyId(String gpgKeyId) { + this.gpgKeyId = gpgKeyId; + this.__explicitlySet__.add("gpgKeyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyFingerprint") + private String gpgKeyFingerprint; + + public Builder gpgKeyFingerprint(String gpgKeyFingerprint) { + this.gpgKeyFingerprint = gpgKeyFingerprint; + this.__explicitlySet__.add("gpgKeyFingerprint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Double size; + + public Builder size(Double size) { + this.size = size; + this.__explicitlySet__.add("size"); + 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; + } + /** Indicates if GPG verification is enabled for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Indicates if GPG verification is enabled for the software source. + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Indicates if SSL validation is enabled for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Indicates if SSL validation is enabled for the software source. + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Indicates if this software source can be mirrored to a management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Indicates if this software source can be mirrored to a management station. + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrivateSoftwareSource build() { + PrivateSoftwareSource model = + new PrivateSoftwareSource( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.description, + this.availability, + this.availabilityAtOci, + this.repoId, + this.osFamily, + this.archType, + this.lifecycleState, + this.packageCount, + this.url, + this.checksumType, + this.gpgKeyUrl, + this.gpgKeyId, + this.gpgKeyFingerprint, + this.size, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrivateSoftwareSource 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("availability")) { + this.availability(model.getAvailability()); + } + if (model.wasPropertyExplicitlySet("availabilityAtOci")) { + this.availabilityAtOci(model.getAvailabilityAtOci()); + } + if (model.wasPropertyExplicitlySet("repoId")) { + this.repoId(model.getRepoId()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageCount")) { + this.packageCount(model.getPackageCount()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("checksumType")) { + this.checksumType(model.getChecksumType()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyId")) { + this.gpgKeyId(model.getGpgKeyId()); + } + if (model.wasPropertyExplicitlySet("gpgKeyFingerprint")) { + this.gpgKeyFingerprint(model.getGpgKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + 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("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PrivateSoftwareSource( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + String description, + Availability availability, + Availability availabilityAtOci, + String repoId, + OsFamily osFamily, + ArchType archType, + LifecycleState lifecycleState, + Long packageCount, + String url, + ChecksumType checksumType, + String gpgKeyUrl, + String gpgKeyId, + String gpgKeyFingerprint, + Double size, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super( + id, + compartmentId, + displayName, + timeCreated, + description, + availability, + availabilityAtOci, + repoId, + osFamily, + archType, + lifecycleState, + packageCount, + url, + checksumType, + gpgKeyUrl, + gpgKeyId, + gpgKeyFingerprint, + size, + freeformTags, + definedTags, + systemTags); + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** Indicates if GPG verification is enabled for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Indicates if GPG verification is enabled for the software source. + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Indicates if SSL validation is enabled for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Indicates if SSL validation is enabled for the software source. + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Indicates if this software source can be mirrored to a management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Indicates if this software source can be mirrored to a management station. + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("PrivateSoftwareSource("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateSoftwareSource)) { + return false; + } + + PrivateSoftwareSource other = (PrivateSoftwareSource) o; + return java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSourceSummary.java new file mode 100644 index 00000000000..649dff200f7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/PrivateSoftwareSourceSummary.java @@ -0,0 +1,412 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides summary information for a private software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrivateSoftwareSourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrivateSoftwareSourceSummary extends SoftwareSourceSummary { + @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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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("repoId") + private String repoId; + + public Builder repoId(String repoId) { + this.repoId = repoId; + this.__explicitlySet__.add("repoId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private Availability availability; + + public Builder availability(Availability availability) { + this.availability = availability; + this.__explicitlySet__.add("availability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availabilityAtOci") + private Availability availabilityAtOci; + + public Builder availabilityAtOci(Availability availabilityAtOci) { + this.availabilityAtOci = availabilityAtOci; + this.__explicitlySet__.add("availabilityAtOci"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageCount") + private Long packageCount; + + public Builder packageCount(Long packageCount) { + this.packageCount = packageCount; + this.__explicitlySet__.add("packageCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SoftwareSource.LifecycleState lifecycleState; + + public Builder lifecycleState(SoftwareSource.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Double size; + + public Builder size(Double size) { + this.size = size; + this.__explicitlySet__.add("size"); + 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; + } + /** Indicates if this software source can be mirrored to a management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Indicates if this software source can be mirrored to a management station. + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrivateSoftwareSourceSummary build() { + PrivateSoftwareSourceSummary model = + new PrivateSoftwareSourceSummary( + this.id, + this.compartmentId, + this.displayName, + this.repoId, + this.url, + this.timeCreated, + this.timeUpdated, + this.description, + this.availability, + this.availabilityAtOci, + this.osFamily, + this.archType, + this.packageCount, + this.lifecycleState, + this.size, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrivateSoftwareSourceSummary 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("repoId")) { + this.repoId(model.getRepoId()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("availability")) { + this.availability(model.getAvailability()); + } + if (model.wasPropertyExplicitlySet("availabilityAtOci")) { + this.availabilityAtOci(model.getAvailabilityAtOci()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("packageCount")) { + this.packageCount(model.getPackageCount()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + 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("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PrivateSoftwareSourceSummary( + String id, + String compartmentId, + String displayName, + String repoId, + String url, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String description, + Availability availability, + Availability availabilityAtOci, + OsFamily osFamily, + ArchType archType, + Long packageCount, + SoftwareSource.LifecycleState lifecycleState, + Double size, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isMirrorSyncAllowed) { + super( + id, + compartmentId, + displayName, + repoId, + url, + timeCreated, + timeUpdated, + description, + availability, + availabilityAtOci, + osFamily, + archType, + packageCount, + lifecycleState, + size, + freeformTags, + definedTags, + systemTags); + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** Indicates if this software source can be mirrored to a management station. */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Indicates if this software source can be mirrored to a management station. + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("PrivateSoftwareSourceSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateSoftwareSourceSummary)) { + return false; + } + + PrivateSoftwareSourceSummary other = (PrivateSoftwareSourceSummary) o; + return java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java index 92dc55fd4dc..dc599100ecf 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/Profile.java @@ -50,6 +50,8 @@ public class Profile extends com.oracle.bmc.http.client.internal.ExplicitlySetBm "osFamily", "archType", "timeCreated", + "timeModified", + "profileVersion", "lifecycleState", "registrationType", "isDefaultProfile", @@ -68,6 +70,8 @@ protected Profile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -85,6 +89,8 @@ protected Profile( this.osFamily = osFamily; this.archType = archType; this.timeCreated = timeCreated; + this.timeModified = timeModified; + this.profileVersion = profileVersion; this.lifecycleState = lifecycleState; this.registrationType = registrationType; this.isDefaultProfile = isDefaultProfile; @@ -156,16 +162,16 @@ public String getDescription() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * the management station to associate with an instance once registered. Management stations are + * only used by non-OCI instances. */ @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") private final String managementStationId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * the management station to associate with an instance once registered. Management stations are + * only used by non-OCI instances. * * @return the value */ @@ -229,11 +235,46 @@ public java.util.Date getTimeCreated() { return timeCreated; } + /** + * The time the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private final java.util.Date timeModified; + + /** + * The time the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + */ + public java.util.Date getTimeModified() { + return timeModified; + } + + /** + * The version of the profile. The version is automatically incremented each time the profiled + * is edited. + */ + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private final String profileVersion; + + /** + * The version of the profile. The version is automatically incremented each time the profiled + * is edited. + * + * @return the value + */ + public String getProfileVersion() { + return profileVersion; + } + /** The current state of the registration profile. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), Active("ACTIVE"), + Inactive("INACTIVE"), Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), @@ -474,6 +515,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", osFamily=").append(String.valueOf(this.osFamily)); sb.append(", archType=").append(String.valueOf(this.archType)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeModified=").append(String.valueOf(this.timeModified)); + sb.append(", profileVersion=").append(String.valueOf(this.profileVersion)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", registrationType=").append(String.valueOf(this.registrationType)); sb.append(", isDefaultProfile=").append(String.valueOf(this.isDefaultProfile)); @@ -505,6 +548,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.osFamily, other.osFamily) && java.util.Objects.equals(this.archType, other.archType) && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeModified, other.timeModified) + && java.util.Objects.equals(this.profileVersion, other.profileVersion) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.registrationType, other.registrationType) && java.util.Objects.equals(this.isDefaultProfile, other.isDefaultProfile) @@ -535,6 +580,10 @@ public int hashCode() { result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeModified == null ? 43 : this.timeModified.hashCode()); + result = + (result * PRIME) + + (this.profileVersion == null ? 43 : this.profileVersion.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileCollection.java index e1bd69a6b23..e822b0c51d3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileCollection.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Results of a registration profile search. Contains both registration profile summary items and - * other data.
+ * The set of registration profiles returned for the {@link #listProfiles(ListProfilesRequest) + * listProfiles} operation.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileSummary.java index f47e188a032..1c3b60798f1 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileSummary.java @@ -151,16 +151,16 @@ public Builder compartmentId(String compartmentId) { } /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the management station to associate with an instance once registered. Associating with - * a management station applies only to non-OCI instances. + * of the management station to associate with an instance once registered. Management + * stations are only used with non-OCI instances. */ @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") private String managementStationId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) - * of the management station to associate with an instance once registered. Associating with - * a management station applies only to non-OCI instances. + * of the management station to associate with an instance once registered. Management + * stations are only used with non-OCI instances. * * @param managementStationId the value to set * @return this builder @@ -245,12 +245,16 @@ public Builder archType(ArchType archType) { this.__explicitlySet__.add("archType"); return this; } - /** The time the the Onboarding was created. An RFC3339 formatted datetime string */ + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The time the the Onboarding was created. An RFC3339 formatted datetime string + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @param timeCreated the value to set * @return this builder @@ -543,16 +547,16 @@ public String getCompartmentId() { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * the management station to associate with an instance once registered. Management stations are + * only used with non-OCI instances. */ @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") private final String managementStationId; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the management station to associate with an instance once registered. Associating with a - * management station applies only to non-OCI instances. + * the management station to associate with an instance once registered. Management stations are + * only used with non-OCI instances. * * @return the value */ @@ -625,12 +629,16 @@ public ArchType getArchType() { return archType; } - /** The time the the Onboarding was created. An RFC3339 formatted datetime string */ + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the the Onboarding was created. An RFC3339 formatted datetime string + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileVersion.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileVersion.java new file mode 100644 index 00000000000..3a1caaa667e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ProfileVersion.java @@ -0,0 +1,974 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Represents a specific version of a registration profile.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ProfileVersion.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ProfileVersion + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "description", + "managementStationId", + "softwareSources", + "managedInstanceGroup", + "lifecycleEnvironment", + "lifecycleStage", + "profileType", + "vendorName", + "osFamily", + "archType", + "timeCreated", + "timeModified", + "profileVersion", + "lifecycleState", + "registrationType", + "isDefaultProfile", + "isServiceProvidedProfile" + }) + public ProfileVersion( + String id, + String compartmentId, + String displayName, + String description, + String managementStationId, + java.util.List softwareSources, + ManagedInstanceGroupDetails managedInstanceGroup, + LifecycleEnvironmentDetails lifecycleEnvironment, + LifecycleStageDetails lifecycleStage, + ProfileType profileType, + VendorName vendorName, + OsFamily osFamily, + ArchType archType, + java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, + Profile.LifecycleState lifecycleState, + RegistrationType registrationType, + Boolean isDefaultProfile, + Boolean isServiceProvidedProfile) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.managementStationId = managementStationId; + this.softwareSources = softwareSources; + this.managedInstanceGroup = managedInstanceGroup; + this.lifecycleEnvironment = lifecycleEnvironment; + this.lifecycleStage = lifecycleStage; + this.profileType = profileType; + this.vendorName = vendorName; + this.osFamily = osFamily; + this.archType = archType; + this.timeCreated = timeCreated; + this.timeModified = timeModified; + this.profileVersion = profileVersion; + this.lifecycleState = lifecycleState; + this.registrationType = registrationType; + this.isDefaultProfile = isDefaultProfile; + this.isServiceProvidedProfile = isServiceProvidedProfile; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the registration profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the compartment that contains the registration profile. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** A user-friendly name for the profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the profile. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The description of the registration profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the registration profile. + * + * @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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station to associate with an instance once registered. Management + * stations are only used with non-OCI instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private String managementStationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station to associate with an instance once registered. Management + * stations are only used with non-OCI instances. + * + * @param managementStationId the value to set + * @return this builder + */ + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + this.__explicitlySet__.add("managementStationId"); + return this; + } + /** The list of software sources that the registration profile will use. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private java.util.List softwareSources; + + /** + * The list of software sources that the registration profile will use. + * + * @param softwareSources the value to set + * @return this builder + */ + public Builder softwareSources(java.util.List softwareSources) { + this.softwareSources = softwareSources; + this.__explicitlySet__.add("softwareSources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroup") + private ManagedInstanceGroupDetails managedInstanceGroup; + + public Builder managedInstanceGroup(ManagedInstanceGroupDetails managedInstanceGroup) { + this.managedInstanceGroup = managedInstanceGroup; + this.__explicitlySet__.add("managedInstanceGroup"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleEnvironment") + private LifecycleEnvironmentDetails lifecycleEnvironment; + + public Builder lifecycleEnvironment(LifecycleEnvironmentDetails lifecycleEnvironment) { + this.lifecycleEnvironment = lifecycleEnvironment; + this.__explicitlySet__.add("lifecycleEnvironment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStage") + private LifecycleStageDetails lifecycleStage; + + public Builder lifecycleStage(LifecycleStageDetails lifecycleStage) { + this.lifecycleStage = lifecycleStage; + this.__explicitlySet__.add("lifecycleStage"); + return this; + } + /** The type of profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileType") + private ProfileType profileType; + + /** + * The type of profile. + * + * @param profileType the value to set + * @return this builder + */ + public Builder profileType(ProfileType profileType) { + this.profileType = profileType; + this.__explicitlySet__.add("profileType"); + return this; + } + /** The vendor of the operating system for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * + * @param vendorName the value to set + * @return this builder + */ + public Builder vendorName(VendorName vendorName) { + this.vendorName = vendorName; + this.__explicitlySet__.add("vendorName"); + return this; + } + /** The operating system family. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + /** + * The operating system family. + * + * @param osFamily the value to set + * @return this builder + */ + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + /** The architecture type. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + /** + * The architecture type. + * + * @param archType the value to set + * @return this builder + */ + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @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 the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + /** + * The time the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeModified the value to set + * @return this builder + */ + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + /** The version of the profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + /** + * The version of the profile. + * + * @param profileVersion the value to set + * @return this builder + */ + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + /** The current state of the registration profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Profile.LifecycleState lifecycleState; + + /** + * The current state of the registration profile. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(Profile.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The type of instance to register. */ + @com.fasterxml.jackson.annotation.JsonProperty("registrationType") + private RegistrationType registrationType; + + /** + * The type of instance to register. + * + * @param registrationType the value to set + * @return this builder + */ + public Builder registrationType(RegistrationType registrationType) { + this.registrationType = registrationType; + this.__explicitlySet__.add("registrationType"); + return this; + } + /** + * Indicates if the profile is set as the default. There is exactly one default profile for + * a specified architecture, OS family, registration type, and vendor. When registering an + * instance with the corresonding characteristics, the default profile is used, unless + * another profile is specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultProfile") + private Boolean isDefaultProfile; + + /** + * Indicates if the profile is set as the default. There is exactly one default profile for + * a specified architecture, OS family, registration type, and vendor. When registering an + * instance with the corresonding characteristics, the default profile is used, unless + * another profile is specified. + * + * @param isDefaultProfile the value to set + * @return this builder + */ + public Builder isDefaultProfile(Boolean isDefaultProfile) { + this.isDefaultProfile = isDefaultProfile; + this.__explicitlySet__.add("isDefaultProfile"); + return this; + } + /** + * Indicates if the profile was created by the service. OS Management Hub provides a limited + * set of standardized profiles that can be used to register Autonomous Linux or Windows + * instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isServiceProvidedProfile") + private Boolean isServiceProvidedProfile; + + /** + * Indicates if the profile was created by the service. OS Management Hub provides a limited + * set of standardized profiles that can be used to register Autonomous Linux or Windows + * instances. + * + * @param isServiceProvidedProfile the value to set + * @return this builder + */ + public Builder isServiceProvidedProfile(Boolean isServiceProvidedProfile) { + this.isServiceProvidedProfile = isServiceProvidedProfile; + this.__explicitlySet__.add("isServiceProvidedProfile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ProfileVersion build() { + ProfileVersion model = + new ProfileVersion( + this.id, + this.compartmentId, + this.displayName, + this.description, + this.managementStationId, + this.softwareSources, + this.managedInstanceGroup, + this.lifecycleEnvironment, + this.lifecycleStage, + this.profileType, + this.vendorName, + this.osFamily, + this.archType, + this.timeCreated, + this.timeModified, + this.profileVersion, + this.lifecycleState, + this.registrationType, + this.isDefaultProfile, + this.isServiceProvidedProfile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ProfileVersion 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("managementStationId")) { + this.managementStationId(model.getManagementStationId()); + } + if (model.wasPropertyExplicitlySet("softwareSources")) { + this.softwareSources(model.getSoftwareSources()); + } + if (model.wasPropertyExplicitlySet("managedInstanceGroup")) { + this.managedInstanceGroup(model.getManagedInstanceGroup()); + } + if (model.wasPropertyExplicitlySet("lifecycleEnvironment")) { + this.lifecycleEnvironment(model.getLifecycleEnvironment()); + } + if (model.wasPropertyExplicitlySet("lifecycleStage")) { + this.lifecycleStage(model.getLifecycleStage()); + } + if (model.wasPropertyExplicitlySet("profileType")) { + this.profileType(model.getProfileType()); + } + if (model.wasPropertyExplicitlySet("vendorName")) { + this.vendorName(model.getVendorName()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("registrationType")) { + this.registrationType(model.getRegistrationType()); + } + if (model.wasPropertyExplicitlySet("isDefaultProfile")) { + this.isDefaultProfile(model.getIsDefaultProfile()); + } + if (model.wasPropertyExplicitlySet("isServiceProvidedProfile")) { + this.isServiceProvidedProfile(model.getIsServiceProvidedProfile()); + } + 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.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the registration profile. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the compartment that contains the registration profile. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** A user-friendly name for the profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the profile. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The description of the registration profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the registration profile. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station to associate with an instance once registered. Management stations are + * only used with non-OCI instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementStationId") + private final String managementStationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station to associate with an instance once registered. Management stations are + * only used with non-OCI instances. + * + * @return the value + */ + public String getManagementStationId() { + return managementStationId; + } + + /** The list of software sources that the registration profile will use. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSources") + private final java.util.List softwareSources; + + /** + * The list of software sources that the registration profile will use. + * + * @return the value + */ + public java.util.List getSoftwareSources() { + return softwareSources; + } + + @com.fasterxml.jackson.annotation.JsonProperty("managedInstanceGroup") + private final ManagedInstanceGroupDetails managedInstanceGroup; + + public ManagedInstanceGroupDetails getManagedInstanceGroup() { + return managedInstanceGroup; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleEnvironment") + private final LifecycleEnvironmentDetails lifecycleEnvironment; + + public LifecycleEnvironmentDetails getLifecycleEnvironment() { + return lifecycleEnvironment; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStage") + private final LifecycleStageDetails lifecycleStage; + + public LifecycleStageDetails getLifecycleStage() { + return lifecycleStage; + } + + /** The type of profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileType") + private final ProfileType profileType; + + /** + * The type of profile. + * + * @return the value + */ + public ProfileType getProfileType() { + return profileType; + } + + /** The vendor of the operating system for the instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("vendorName") + private final VendorName vendorName; + + /** + * The vendor of the operating system for the instance. + * + * @return the value + */ + public VendorName getVendorName() { + return vendorName; + } + + /** The operating system family. */ + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private final OsFamily osFamily; + + /** + * The operating system family. + * + * @return the value + */ + public OsFamily getOsFamily() { + return osFamily; + } + + /** The architecture type. */ + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private final ArchType archType; + + /** + * The architecture type. + * + * @return the value + */ + public ArchType getArchType() { + return archType; + } + + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the registration profile was created (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private final java.util.Date timeModified; + + /** + * The time the registration profile was last modified (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + */ + public java.util.Date getTimeModified() { + return timeModified; + } + + /** The version of the profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private final String profileVersion; + + /** + * The version of the profile. + * + * @return the value + */ + public String getProfileVersion() { + return profileVersion; + } + + /** The current state of the registration profile. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Profile.LifecycleState lifecycleState; + + /** + * The current state of the registration profile. + * + * @return the value + */ + public Profile.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The type of instance to register. */ + public enum RegistrationType implements com.oracle.bmc.http.internal.BmcEnum { + OciLinux("OCI_LINUX"), + NonOciLinux("NON_OCI_LINUX"), + OciWindows("OCI_WINDOWS"), + AutonomousLinux("AUTONOMOUS_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(RegistrationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RegistrationType v : RegistrationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RegistrationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RegistrationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RegistrationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The type of instance to register. */ + @com.fasterxml.jackson.annotation.JsonProperty("registrationType") + private final RegistrationType registrationType; + + /** + * The type of instance to register. + * + * @return the value + */ + public RegistrationType getRegistrationType() { + return registrationType; + } + + /** + * Indicates if the profile is set as the default. There is exactly one default profile for a + * specified architecture, OS family, registration type, and vendor. When registering an + * instance with the corresonding characteristics, the default profile is used, unless another + * profile is specified. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultProfile") + private final Boolean isDefaultProfile; + + /** + * Indicates if the profile is set as the default. There is exactly one default profile for a + * specified architecture, OS family, registration type, and vendor. When registering an + * instance with the corresonding characteristics, the default profile is used, unless another + * profile is specified. + * + * @return the value + */ + public Boolean getIsDefaultProfile() { + return isDefaultProfile; + } + + /** + * Indicates if the profile was created by the service. OS Management Hub provides a limited set + * of standardized profiles that can be used to register Autonomous Linux or Windows instances. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isServiceProvidedProfile") + private final Boolean isServiceProvidedProfile; + + /** + * Indicates if the profile was created by the service. OS Management Hub provides a limited set + * of standardized profiles that can be used to register Autonomous Linux or Windows instances. + * + * @return the value + */ + public Boolean getIsServiceProvidedProfile() { + return isServiceProvidedProfile; + } + + @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("ProfileVersion("); + 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(", managementStationId=").append(String.valueOf(this.managementStationId)); + sb.append(", softwareSources=").append(String.valueOf(this.softwareSources)); + sb.append(", managedInstanceGroup=").append(String.valueOf(this.managedInstanceGroup)); + sb.append(", lifecycleEnvironment=").append(String.valueOf(this.lifecycleEnvironment)); + sb.append(", lifecycleStage=").append(String.valueOf(this.lifecycleStage)); + sb.append(", profileType=").append(String.valueOf(this.profileType)); + sb.append(", vendorName=").append(String.valueOf(this.vendorName)); + sb.append(", osFamily=").append(String.valueOf(this.osFamily)); + sb.append(", archType=").append(String.valueOf(this.archType)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeModified=").append(String.valueOf(this.timeModified)); + sb.append(", profileVersion=").append(String.valueOf(this.profileVersion)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", registrationType=").append(String.valueOf(this.registrationType)); + sb.append(", isDefaultProfile=").append(String.valueOf(this.isDefaultProfile)); + sb.append(", isServiceProvidedProfile=") + .append(String.valueOf(this.isServiceProvidedProfile)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ProfileVersion)) { + return false; + } + + ProfileVersion other = (ProfileVersion) 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.managementStationId, other.managementStationId) + && java.util.Objects.equals(this.softwareSources, other.softwareSources) + && java.util.Objects.equals(this.managedInstanceGroup, other.managedInstanceGroup) + && java.util.Objects.equals(this.lifecycleEnvironment, other.lifecycleEnvironment) + && java.util.Objects.equals(this.lifecycleStage, other.lifecycleStage) + && java.util.Objects.equals(this.profileType, other.profileType) + && java.util.Objects.equals(this.vendorName, other.vendorName) + && java.util.Objects.equals(this.osFamily, other.osFamily) + && java.util.Objects.equals(this.archType, other.archType) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeModified, other.timeModified) + && java.util.Objects.equals(this.profileVersion, other.profileVersion) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.registrationType, other.registrationType) + && java.util.Objects.equals(this.isDefaultProfile, other.isDefaultProfile) + && java.util.Objects.equals( + this.isServiceProvidedProfile, other.isServiceProvidedProfile) + && 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.managementStationId == null + ? 43 + : this.managementStationId.hashCode()); + result = + (result * PRIME) + + (this.softwareSources == null ? 43 : this.softwareSources.hashCode()); + result = + (result * PRIME) + + (this.managedInstanceGroup == null + ? 43 + : this.managedInstanceGroup.hashCode()); + result = + (result * PRIME) + + (this.lifecycleEnvironment == null + ? 43 + : this.lifecycleEnvironment.hashCode()); + result = + (result * PRIME) + + (this.lifecycleStage == null ? 43 : this.lifecycleStage.hashCode()); + result = (result * PRIME) + (this.profileType == null ? 43 : this.profileType.hashCode()); + result = (result * PRIME) + (this.vendorName == null ? 43 : this.vendorName.hashCode()); + result = (result * PRIME) + (this.osFamily == null ? 43 : this.osFamily.hashCode()); + result = (result * PRIME) + (this.archType == null ? 43 : this.archType.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeModified == null ? 43 : this.timeModified.hashCode()); + result = + (result * PRIME) + + (this.profileVersion == null ? 43 : this.profileVersion.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.registrationType == null ? 43 : this.registrationType.hashCode()); + result = + (result * PRIME) + + (this.isDefaultProfile == null ? 43 : this.isDefaultProfile.hashCode()); + result = + (result * PRIME) + + (this.isServiceProvidedProfile == null + ? 43 + : this.isServiceProvidedProfile.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEvent.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEvent.java new file mode 100644 index 00000000000..487c4b12272 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEvent.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides information for a reboot event.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RebootEvent.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RebootEvent extends Event { + @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("eventSummary") + private String eventSummary; + + public Builder eventSummary(String eventSummary) { + this.eventSummary = eventSummary; + this.__explicitlySet__.add("eventSummary"); + 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("eventDetails") + private String eventDetails; + + public Builder eventDetails(String eventDetails) { + this.eventDetails = eventDetails; + this.__explicitlySet__.add("eventDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDetails") + private SystemDetails systemDetails; + + public Builder systemDetails(SystemDetails systemDetails) { + this.systemDetails = systemDetails; + this.__explicitlySet__.add("systemDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOccurred") + private java.util.Date timeOccurred; + + public Builder timeOccurred(java.util.Date timeOccurred) { + this.timeOccurred = timeOccurred; + this.__explicitlySet__.add("timeOccurred"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isManagedByAutonomousLinux") + private Boolean isManagedByAutonomousLinux; + + public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { + this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.__explicitlySet__.add("isManagedByAutonomousLinux"); + 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("data") + private RebootEventData data; + + public Builder data(RebootEventData data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootEvent build() { + RebootEvent model = + new RebootEvent( + this.id, + this.eventSummary, + this.compartmentId, + this.eventDetails, + this.resourceId, + this.systemDetails, + this.timeOccurred, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.isManagedByAutonomousLinux, + this.freeformTags, + this.definedTags, + this.systemTags, + this.data); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootEvent model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("eventSummary")) { + this.eventSummary(model.getEventSummary()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("eventDetails")) { + this.eventDetails(model.getEventDetails()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("systemDetails")) { + this.systemDetails(model.getSystemDetails()); + } + if (model.wasPropertyExplicitlySet("timeOccurred")) { + this.timeOccurred(model.getTimeOccurred()); + } + 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("isManagedByAutonomousLinux")) { + this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); + } + 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("data")) { + this.data(model.getData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public RebootEvent( + String id, + String eventSummary, + String compartmentId, + String eventDetails, + String resourceId, + SystemDetails systemDetails, + java.util.Date timeOccurred, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + Boolean isManagedByAutonomousLinux, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + RebootEventData data) { + super( + id, + eventSummary, + compartmentId, + eventDetails, + resourceId, + systemDetails, + timeOccurred, + timeCreated, + timeUpdated, + lifecycleState, + lifecycleDetails, + isManagedByAutonomousLinux, + freeformTags, + definedTags, + systemTags); + this.data = data; + } + + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final RebootEventData data; + + public RebootEventData getData() { + return data; + } + + @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("RebootEvent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", data=").append(String.valueOf(this.data)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootEvent)) { + return false; + } + + RebootEvent other = (RebootEvent) o; + return java.util.Objects.equals(this.data, other.data) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEventData.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEventData.java new file mode 100644 index 00000000000..555f9dce55a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootEventData.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides additional information for a reboot event.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RebootEventData.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RebootEventData + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rebootStatus", "additionalDetails"}) + public RebootEventData( + RebootStatus rebootStatus, WorkRequestEventDataAdditionalDetails additionalDetails) { + super(); + this.rebootStatus = rebootStatus; + this.additionalDetails = additionalDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Reboot status for the current event */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootStatus") + private RebootStatus rebootStatus; + + /** + * Reboot status for the current event + * + * @param rebootStatus the value to set + * @return this builder + */ + public Builder rebootStatus(RebootStatus rebootStatus) { + this.rebootStatus = rebootStatus; + this.__explicitlySet__.add("rebootStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private WorkRequestEventDataAdditionalDetails additionalDetails; + + public Builder additionalDetails(WorkRequestEventDataAdditionalDetails additionalDetails) { + this.additionalDetails = additionalDetails; + this.__explicitlySet__.add("additionalDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootEventData build() { + RebootEventData model = new RebootEventData(this.rebootStatus, this.additionalDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootEventData model) { + if (model.wasPropertyExplicitlySet("rebootStatus")) { + this.rebootStatus(model.getRebootStatus()); + } + if (model.wasPropertyExplicitlySet("additionalDetails")) { + this.additionalDetails(model.getAdditionalDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Reboot status for the current event */ + public enum RebootStatus implements com.oracle.bmc.http.internal.BmcEnum { + RebootStarted("REBOOT_STARTED"), + RebootSucceeded("REBOOT_SUCCEEDED"), + RebootFailed("REBOOT_FAILED"), + RebootSucceededAfterTimeout("REBOOT_SUCCEEDED_AFTER_TIMEOUT"), + + /** + * 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(RebootStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RebootStatus v : RebootStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RebootStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RebootStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RebootStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Reboot status for the current event */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootStatus") + private final RebootStatus rebootStatus; + + /** + * Reboot status for the current event + * + * @return the value + */ + public RebootStatus getRebootStatus() { + return rebootStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private final WorkRequestEventDataAdditionalDetails additionalDetails; + + public WorkRequestEventDataAdditionalDetails getAdditionalDetails() { + return additionalDetails; + } + + @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("RebootEventData("); + sb.append("super=").append(super.toString()); + sb.append("rebootStatus=").append(String.valueOf(this.rebootStatus)); + sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootEventData)) { + return false; + } + + RebootEventData other = (RebootEventData) o; + return java.util.Objects.equals(this.rebootStatus, other.rebootStatus) + && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.rebootStatus == null ? 43 : this.rebootStatus.hashCode()); + result = + (result * PRIME) + + (this.additionalDetails == null ? 43 : this.additionalDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java new file mode 100644 index 00000000000..e736b5fe12d --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootLifecycleStageDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * PProvides the information used for the reboot job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RebootLifecycleStageDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RebootLifecycleStageDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rebootTimeoutInMins", "workRequestDetails"}) + public RebootLifecycleStageDetails( + Integer rebootTimeoutInMins, WorkRequestDetails workRequestDetails) { + super(); + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of minutes the service waits for the reboot to complete. If the instances in + * the stage don't reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in + * the stage don't reboot within this time, the reboot job status is set to failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootLifecycleStageDetails build() { + RebootLifecycleStageDetails model = + new RebootLifecycleStageDetails( + this.rebootTimeoutInMins, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootLifecycleStageDetails model) { + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the + * stage don't reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the + * stage don't reboot within this time, the reboot job status is set to failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @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("RebootLifecycleStageDetails("); + sb.append("super=").append(super.toString()); + sb.append("rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootLifecycleStageDetails)) { + return false; + } + + RebootLifecycleStageDetails other = (RebootLifecycleStageDetails) o; + return java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceDetails.java new file mode 100644 index 00000000000..267c5329616 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used for the reboot job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RebootManagedInstanceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RebootManagedInstanceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rebootTimeoutInMins", "workRequestDetails"}) + public RebootManagedInstanceDetails( + Integer rebootTimeoutInMins, WorkRequestDetails workRequestDetails) { + super(); + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of minutes the service waits for the reboot to complete. If the instance + * doesn't reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instance + * doesn't reboot within this time, the reboot job status is set to failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootManagedInstanceDetails build() { + RebootManagedInstanceDetails model = + new RebootManagedInstanceDetails( + this.rebootTimeoutInMins, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootManagedInstanceDetails model) { + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of minutes the service waits for the reboot to complete. If the instance doesn't + * reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instance doesn't + * reboot within this time, the reboot job status is set to failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @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("RebootManagedInstanceDetails("); + sb.append("super=").append(super.toString()); + sb.append("rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootManagedInstanceDetails)) { + return false; + } + + RebootManagedInstanceDetails other = (RebootManagedInstanceDetails) o; + return java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceGroupDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceGroupDetails.java new file mode 100644 index 00000000000..485fcc49f4e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RebootManagedInstanceGroupDetails.java @@ -0,0 +1,176 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used for the reboot job.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RebootManagedInstanceGroupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RebootManagedInstanceGroupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"rebootTimeoutInMins", "workRequestDetails"}) + public RebootManagedInstanceGroupDetails( + Integer rebootTimeoutInMins, WorkRequestDetails workRequestDetails) { + super(); + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The number of minutes the service waits for the reboot to complete. If the instances in + * the group don't reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in + * the group don't reboot within this time, the reboot job status is set to failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RebootManagedInstanceGroupDetails build() { + RebootManagedInstanceGroupDetails model = + new RebootManagedInstanceGroupDetails( + this.rebootTimeoutInMins, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RebootManagedInstanceGroupDetails model) { + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the + * group don't reboot within this time, the reboot job status is set to failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instances in the + * group don't reboot within this time, the reboot job status is set to failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @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("RebootManagedInstanceGroupDetails("); + sb.append("super=").append(super.toString()); + sb.append("rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RebootManagedInstanceGroupDetails)) { + return false; + } + + RebootManagedInstanceGroupDetails other = (RebootManagedInstanceGroupDetails) o; + return java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromSoftwareSourceDetails.java new file mode 100644 index 00000000000..7cc107e58a6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RemovePackagesFromSoftwareSourceDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides a list of packages to be removed from the software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RemovePackagesFromSoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RemovePackagesFromSoftwareSourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"packages"}) + public RemovePackagesFromSoftwareSourceDetails(java.util.List packages) { + super(); + this.packages = packages; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). + */ + @com.fasterxml.jackson.annotation.JsonProperty("packages") + private java.util.List packages; + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). + * + * @param packages the value to set + * @return this builder + */ + public Builder packages(java.util.List packages) { + this.packages = packages; + this.__explicitlySet__.add("packages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RemovePackagesFromSoftwareSourceDetails build() { + RemovePackagesFromSoftwareSourceDetails model = + new RemovePackagesFromSoftwareSourceDetails(this.packages); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RemovePackagesFromSoftwareSourceDetails model) { + if (model.wasPropertyExplicitlySet("packages")) { + this.packages(model.getPackages()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). + */ + @com.fasterxml.jackson.annotation.JsonProperty("packages") + private final java.util.List packages; + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). + * + * @return the value + */ + public java.util.List getPackages() { + return packages; + } + + @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("RemovePackagesFromSoftwareSourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("packages=").append(String.valueOf(this.packages)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RemovePackagesFromSoftwareSourceDetails)) { + return false; + } + + RemovePackagesFromSoftwareSourceDetails other = (RemovePackagesFromSoftwareSourceDetails) o; + return java.util.Objects.equals(this.packages, other.packages) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ReplacePackagesInSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ReplacePackagesInSoftwareSourceDetails.java new file mode 100644 index 00000000000..0c8fa834a8e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ReplacePackagesInSoftwareSourceDetails.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides a list of packages that will replace the existing packages in the software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplacePackagesInSoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReplacePackagesInSoftwareSourceDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"packages"}) + public ReplacePackagesInSoftwareSourceDetails(java.util.List packages) { + super(); + this.packages = packages; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). + */ + @com.fasterxml.jackson.annotation.JsonProperty("packages") + private java.util.List packages; + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA + * or NEVRA). + * + * @param packages the value to set + * @return this builder + */ + public Builder packages(java.util.List packages) { + this.packages = packages; + this.__explicitlySet__.add("packages"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplacePackagesInSoftwareSourceDetails build() { + ReplacePackagesInSoftwareSourceDetails model = + new ReplacePackagesInSoftwareSourceDetails(this.packages); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplacePackagesInSoftwareSourceDetails model) { + if (model.wasPropertyExplicitlySet("packages")) { + this.packages(model.getPackages()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). + */ + @com.fasterxml.jackson.annotation.JsonProperty("packages") + private final java.util.List packages; + + /** + * List of packages specified by the name of the package (N) or the full package name (NVRA or + * NEVRA). + * + * @return the value + */ + public java.util.List getPackages() { + return packages; + } + + @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("ReplacePackagesInSoftwareSourceDetails("); + sb.append("super=").append(super.toString()); + sb.append("packages=").append(String.valueOf(this.packages)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplacePackagesInSoftwareSourceDetails)) { + return false; + } + + ReplacePackagesInSoftwareSourceDetails other = (ReplacePackagesInSoftwareSourceDetails) o; + return java.util.Objects.equals(this.packages, other.packages) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RerunWorkRequestDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RerunWorkRequestDetails.java new file mode 100644 index 00000000000..f286f01f091 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/RerunWorkRequestDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to target specific resources for the rerun 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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RerunWorkRequestDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RerunWorkRequestDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"managedInstances", "workRequestDetails"}) + public RerunWorkRequestDetails( + java.util.List managedInstances, WorkRequestDetails workRequestDetails) { + super(); + this.managedInstances = managedInstances; + this.workRequestDetails = workRequestDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * affected by the rerun of the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private java.util.List managedInstances; + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * affected by the rerun of the work request. + * + * @param managedInstances the value to set + * @return this builder + */ + public Builder managedInstances(java.util.List managedInstances) { + this.managedInstances = managedInstances; + this.__explicitlySet__.add("managedInstances"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private WorkRequestDetails workRequestDetails; + + public Builder workRequestDetails(WorkRequestDetails workRequestDetails) { + this.workRequestDetails = workRequestDetails; + this.__explicitlySet__.add("workRequestDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RerunWorkRequestDetails build() { + RerunWorkRequestDetails model = + new RerunWorkRequestDetails(this.managedInstances, this.workRequestDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RerunWorkRequestDetails model) { + if (model.wasPropertyExplicitlySet("managedInstances")) { + this.managedInstances(model.getManagedInstances()); + } + if (model.wasPropertyExplicitlySet("workRequestDetails")) { + this.workRequestDetails(model.getWorkRequestDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * affected by the rerun of the work request. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managedInstances") + private final java.util.List managedInstances; + + /** + * List of managed instance + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * affected by the rerun of the work request. + * + * @return the value + */ + public java.util.List getManagedInstances() { + return managedInstances; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workRequestDetails") + private final WorkRequestDetails workRequestDetails; + + public WorkRequestDetails getWorkRequestDetails() { + return workRequestDetails; + } + + @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("RerunWorkRequestDetails("); + sb.append("super=").append(super.toString()); + sb.append("managedInstances=").append(String.valueOf(this.managedInstances)); + sb.append(", workRequestDetails=").append(String.valueOf(this.workRequestDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RerunWorkRequestDetails)) { + return false; + } + + RerunWorkRequestDetails other = (RerunWorkRequestDetails) o; + return java.util.Objects.equals(this.managedInstances, other.managedInstances) + && java.util.Objects.equals(this.workRequestDetails, other.workRequestDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.managedInstances == null ? 43 : this.managedInstances.hashCode()); + result = + (result * PRIME) + + (this.workRequestDetails == null + ? 43 + : this.workRequestDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java index 15aeba77b34..f5a7490efb5 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJob.java @@ -47,7 +47,8 @@ public final class ScheduledJob extends com.oracle.bmc.http.client.internal.Expl "definedTags", "systemTags", "isRestricted", - "retryIntervals" + "retryIntervals", + "workRequestId" }) public ScheduledJob( String id, @@ -74,7 +75,8 @@ public ScheduledJob( java.util.Map> definedTags, java.util.Map> systemTags, Boolean isRestricted, - java.util.List retryIntervals) { + java.util.List retryIntervals, + String workRequestId) { super(); this.id = id; this.displayName = displayName; @@ -101,6 +103,7 @@ public ScheduledJob( this.systemTags = systemTags; this.isRestricted = isRestricted; this.retryIntervals = retryIntervals; + this.workRequestId = workRequestId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -609,6 +612,25 @@ public Builder retryIntervals(java.util.List retryIntervals) { this.__explicitlySet__.add("retryIntervals"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + * + * @param workRequestId the value to set + * @return this builder + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -640,7 +662,8 @@ public ScheduledJob build() { this.definedTags, this.systemTags, this.isRestricted, - this.retryIntervals); + this.retryIntervals, + this.workRequestId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -724,6 +747,9 @@ public Builder copy(ScheduledJob model) { if (model.wasPropertyExplicitlySet("retryIntervals")) { this.retryIntervals(model.getRetryIntervals()); } + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } return this; } } @@ -1239,6 +1265,23 @@ public java.util.List getRetryIntervals() { return retryIntervals; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + * + * @return the value + */ + public String getWorkRequestId() { + return workRequestId; + } + @Override public String toString() { return this.toString(true); @@ -1282,6 +1325,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", isRestricted=").append(String.valueOf(this.isRestricted)); sb.append(", retryIntervals=").append(String.valueOf(this.retryIntervals)); + sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); sb.append(")"); return sb.toString(); } @@ -1324,6 +1368,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.isRestricted, other.isRestricted) && java.util.Objects.equals(this.retryIntervals, other.retryIntervals) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) && super.equals(other); } @@ -1392,6 +1437,9 @@ public int hashCode() { result = (result * PRIME) + (this.retryIntervals == null ? 43 : this.retryIntervals.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java index 28dbf7705b0..ba4308a8faa 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobOperation.java @@ -29,7 +29,8 @@ public final class ScheduledJobOperation "windowsUpdateNames", "manageModuleStreamsDetails", "switchModuleStreamsDetails", - "softwareSourceIds" + "softwareSourceIds", + "rebootTimeoutInMins" }) public ScheduledJobOperation( OperationTypes operationType, @@ -37,7 +38,8 @@ public ScheduledJobOperation( java.util.List windowsUpdateNames, ManageModuleStreamsInScheduledJobDetails manageModuleStreamsDetails, ModuleStreamDetails switchModuleStreamsDetails, - java.util.List softwareSourceIds) { + java.util.List softwareSourceIds, + Integer rebootTimeoutInMins) { super(); this.operationType = operationType; this.packageNames = packageNames; @@ -45,6 +47,7 @@ public ScheduledJobOperation( this.manageModuleStreamsDetails = manageModuleStreamsDetails; this.switchModuleStreamsDetails = switchModuleStreamsDetails; this.softwareSourceIds = softwareSourceIds; + this.rebootTimeoutInMins = rebootTimeoutInMins; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -146,6 +149,25 @@ public Builder softwareSourceIds(java.util.List softwareSourceIds) { this.__explicitlySet__.add("softwareSourceIds"); return this; } + /** + * The number of minutes the service waits for the reboot to complete. If the instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -158,7 +180,8 @@ public ScheduledJobOperation build() { this.windowsUpdateNames, this.manageModuleStreamsDetails, this.switchModuleStreamsDetails, - this.softwareSourceIds); + this.softwareSourceIds, + this.rebootTimeoutInMins); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -185,6 +208,9 @@ public Builder copy(ScheduledJobOperation model) { if (model.wasPropertyExplicitlySet("softwareSourceIds")) { this.softwareSourceIds(model.getSoftwareSourceIds()); } + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } return this; } } @@ -280,6 +306,23 @@ public java.util.List getSoftwareSourceIds() { return softwareSourceIds; } + /** + * The number of minutes the service waits for the reboot to complete. If the instance doesn't + * reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the instance doesn't + * reboot within the timeout, the service marks the reboot job as failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + @Override public String toString() { return this.toString(true); @@ -303,6 +346,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", switchModuleStreamsDetails=") .append(String.valueOf(this.switchModuleStreamsDetails)); sb.append(", softwareSourceIds=").append(String.valueOf(this.softwareSourceIds)); + sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); sb.append(")"); return sb.toString(); } @@ -325,6 +369,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.switchModuleStreamsDetails, other.switchModuleStreamsDetails) && java.util.Objects.equals(this.softwareSourceIds, other.softwareSourceIds) + && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) && super.equals(other); } @@ -354,6 +399,11 @@ public int hashCode() { result = (result * PRIME) + (this.softwareSourceIds == null ? 43 : this.softwareSourceIds.hashCode()); + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java index a3d346570c2..e67ca9ee61d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ScheduledJobSummary.java @@ -44,7 +44,8 @@ public final class ScheduledJobSummary "definedTags", "systemTags", "isRestricted", - "retryIntervals" + "retryIntervals", + "workRequestId" }) public ScheduledJobSummary( String id, @@ -67,7 +68,8 @@ public ScheduledJobSummary( java.util.Map> definedTags, java.util.Map> systemTags, Boolean isRestricted, - java.util.List retryIntervals) { + java.util.List retryIntervals, + String workRequestId) { super(); this.id = id; this.displayName = displayName; @@ -90,6 +92,7 @@ public ScheduledJobSummary( this.systemTags = systemTags; this.isRestricted = isRestricted; this.retryIntervals = retryIntervals; + this.workRequestId = workRequestId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -524,6 +527,25 @@ public Builder retryIntervals(java.util.List retryIntervals) { this.__explicitlySet__.add("retryIntervals"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * for the work request that will be rerun. + * + * @param workRequestId the value to set + * @return this builder + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + this.__explicitlySet__.add("workRequestId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -551,7 +573,8 @@ public ScheduledJobSummary build() { this.definedTags, this.systemTags, this.isRestricted, - this.retryIntervals); + this.retryIntervals, + this.workRequestId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -623,6 +646,9 @@ public Builder copy(ScheduledJobSummary model) { if (model.wasPropertyExplicitlySet("retryIntervals")) { this.retryIntervals(model.getRetryIntervals()); } + if (model.wasPropertyExplicitlySet("workRequestId")) { + this.workRequestId(model.getWorkRequestId()); + } return this; } } @@ -1021,6 +1047,23 @@ public java.util.List getRetryIntervals() { return retryIntervals; } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") + private final String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the work request that will be rerun. + * + * @return the value + */ + public String getWorkRequestId() { + return workRequestId; + } + @Override public String toString() { return this.toString(true); @@ -1059,6 +1102,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", isRestricted=").append(String.valueOf(this.isRestricted)); sb.append(", retryIntervals=").append(String.valueOf(this.retryIntervals)); + sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); sb.append(")"); return sb.toString(); } @@ -1096,6 +1140,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.isRestricted, other.isRestricted) && java.util.Objects.equals(this.retryIntervals, other.retryIntervals) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) && super.equals(other); } @@ -1152,6 +1197,9 @@ public int hashCode() { result = (result * PRIME) + (this.retryIntervals == null ? 43 : this.retryIntervals.hashCode()); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSource.java index 0087a9630fd..4dacdbb0114 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSource.java @@ -27,12 +27,18 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VendorSoftwareSource.class, name = "VENDOR"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ThirdPartySoftwareSource.class, + name = "THIRD_PARTY"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CustomSoftwareSource.class, name = "CUSTOM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VersionedCustomSoftwareSource.class, - name = "VERSIONED") + name = "VERSIONED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PrivateSoftwareSource.class, + name = "PRIVATE") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -223,12 +229,12 @@ public String getRepoId() { return repoId; } - /** The OS family the software source belongs to. */ + /** The OS family of the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("osFamily") private final OsFamily osFamily; /** - * The OS family the software source belongs to. + * The OS family of the software source. * * @return the value */ @@ -258,6 +264,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { 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 @@ -356,12 +363,12 @@ public ChecksumType getChecksumType() { return checksumType; } - /** URL of the GPG key for this software source. */ + /** URI of the GPG key for this software source. */ @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") private final String gpgKeyUrl; /** - * URL of the GPG key for this software source. + * URI of the GPG key for this software source. * * @return the value */ @@ -395,12 +402,12 @@ public String getGpgKeyFingerprint() { return gpgKeyFingerprint; } - /** The size of the software source in gigabytes (GB). */ + /** The size of the software source in bytes (B). */ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Double size; /** - * The size of the software source in gigabytes (GB). + * The size of the software source in bytes (B). * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceProfile.java index ba01e6adb02..5a180d11a85 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceProfile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceProfile.java @@ -108,6 +108,24 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -202,6 +220,8 @@ public SoftwareSourceProfile build() { this.osFamily, this.archType, this.timeCreated, + this.timeModified, + this.profileVersion, this.lifecycleState, this.registrationType, this.isDefaultProfile, @@ -245,6 +265,12 @@ public Builder copy(SoftwareSourceProfile model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -293,6 +319,8 @@ public SoftwareSourceProfile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -311,6 +339,8 @@ public SoftwareSourceProfile( osFamily, archType, timeCreated, + timeModified, + profileVersion, lifecycleState, registrationType, isDefaultProfile, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSubType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSubType.java new file mode 100644 index 00000000000..c58114f43f7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSubType.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** Identifies how a custom software source was created. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public enum SoftwareSourceSubType implements com.oracle.bmc.http.internal.BmcEnum { + Filter("FILTER"), + Manifest("MANIFEST"), + Snapshot("SNAPSHOT"), + + /** + * 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(SoftwareSourceSubType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SoftwareSourceSubType v : SoftwareSourceSubType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SoftwareSourceSubType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SoftwareSourceSubType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SoftwareSourceSubType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSummary.java index d0ee0b9611e..5c79847d84a 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceSummary.java @@ -24,12 +24,18 @@ property = "softwareSourceType", defaultImpl = SoftwareSourceSummary.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PrivateSoftwareSourceSummary.class, + name = "PRIVATE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VendorSoftwareSourceSummary.class, name = "VENDOR"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = VersionedCustomSoftwareSourceSummary.class, name = "VERSIONED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ThirdPartySoftwareSourceSummary.class, + name = "THIRD_PARTY"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = CustomSoftwareSourceSummary.class, name = "CUSTOM") @@ -249,12 +255,12 @@ public Availability getAvailabilityAtOci() { return availabilityAtOci; } - /** The OS family the software source belongs to. */ + /** The OS family of the software source. */ @com.fasterxml.jackson.annotation.JsonProperty("osFamily") private final OsFamily osFamily; /** - * The OS family the software source belongs to. + * The OS family of the software source. * * @return the value */ @@ -301,12 +307,12 @@ public SoftwareSource.LifecycleState getLifecycleState() { return lifecycleState; } - /** The size of the software source in gigabytes (GB). */ + /** The size of the software source in bytes (B). */ @com.fasterxml.jackson.annotation.JsonProperty("size") private final Double size; /** - * The size of the software source in gigabytes (GB). + * The size of the software source in bytes (B). * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceType.java index 545abc6a563..89f2e1508f7 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SoftwareSourceType.java @@ -10,6 +10,8 @@ public enum SoftwareSourceType implements com.oracle.bmc.http.internal.BmcEnum { Vendor("VENDOR"), Custom("CUSTOM"), Versioned("VERSIONED"), + Private("PRIVATE"), + ThirdParty("THIRD_PARTY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StationProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StationProfile.java index 852e79dc2b1..36009cd1a6d 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StationProfile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/StationProfile.java @@ -108,6 +108,24 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -187,6 +205,8 @@ public StationProfile build() { this.osFamily, this.archType, this.timeCreated, + this.timeModified, + this.profileVersion, this.lifecycleState, this.registrationType, this.isDefaultProfile, @@ -229,6 +249,12 @@ public Builder copy(StationProfile model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -274,6 +300,8 @@ public StationProfile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -291,6 +319,8 @@ public StationProfile( osFamily, archType, timeCreated, + timeModified, + profileVersion, lifecycleState, registrationType, isDefaultProfile, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SynchronizeMirrorsDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SynchronizeMirrorsDetails.java index d1dc4953f49..4d416176892 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SynchronizeMirrorsDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SynchronizeMirrorsDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Details for syncing selected mirrors
+ * Detailed information about software source mirrors to be synced.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -31,12 +31,18 @@ public SynchronizeMirrorsDetails(java.util.List softwareSourceList) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** List of Software Source OCIDs to synchronize */ + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * synchronize. + */ @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceList") private java.util.List softwareSourceList; /** - * List of Software Source OCIDs to synchronize + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * synchronize. * * @param softwareSourceList the value to set * @return this builder @@ -77,12 +83,18 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** List of Software Source OCIDs to synchronize */ + /** + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * synchronize. + */ @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceList") private final java.util.List softwareSourceList; /** - * List of Software Source OCIDs to synchronize + * List of software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * synchronize. * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEvent.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEvent.java new file mode 100644 index 00000000000..598220abe4f --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEvent.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Information about the sysadmin event.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SysadminEvent.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SysadminEvent extends Event { + @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("eventSummary") + private String eventSummary; + + public Builder eventSummary(String eventSummary) { + this.eventSummary = eventSummary; + this.__explicitlySet__.add("eventSummary"); + 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("eventDetails") + private String eventDetails; + + public Builder eventDetails(String eventDetails) { + this.eventDetails = eventDetails; + this.__explicitlySet__.add("eventDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("resourceId") + private String resourceId; + + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + this.__explicitlySet__.add("resourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemDetails") + private SystemDetails systemDetails; + + public Builder systemDetails(SystemDetails systemDetails) { + this.systemDetails = systemDetails; + this.__explicitlySet__.add("systemDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOccurred") + private java.util.Date timeOccurred; + + public Builder timeOccurred(java.util.Date timeOccurred) { + this.timeOccurred = timeOccurred; + this.__explicitlySet__.add("timeOccurred"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isManagedByAutonomousLinux") + private Boolean isManagedByAutonomousLinux; + + public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { + this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.__explicitlySet__.add("isManagedByAutonomousLinux"); + 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("data") + private SysadminEventData data; + + public Builder data(SysadminEventData data) { + this.data = data; + this.__explicitlySet__.add("data"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SysadminEvent build() { + SysadminEvent model = + new SysadminEvent( + this.id, + this.eventSummary, + this.compartmentId, + this.eventDetails, + this.resourceId, + this.systemDetails, + this.timeOccurred, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.isManagedByAutonomousLinux, + this.freeformTags, + this.definedTags, + this.systemTags, + this.data); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SysadminEvent model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("eventSummary")) { + this.eventSummary(model.getEventSummary()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("eventDetails")) { + this.eventDetails(model.getEventDetails()); + } + if (model.wasPropertyExplicitlySet("resourceId")) { + this.resourceId(model.getResourceId()); + } + if (model.wasPropertyExplicitlySet("systemDetails")) { + this.systemDetails(model.getSystemDetails()); + } + if (model.wasPropertyExplicitlySet("timeOccurred")) { + this.timeOccurred(model.getTimeOccurred()); + } + 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("isManagedByAutonomousLinux")) { + this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); + } + 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("data")) { + this.data(model.getData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public SysadminEvent( + String id, + String eventSummary, + String compartmentId, + String eventDetails, + String resourceId, + SystemDetails systemDetails, + java.util.Date timeOccurred, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + Boolean isManagedByAutonomousLinux, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + SysadminEventData data) { + super( + id, + eventSummary, + compartmentId, + eventDetails, + resourceId, + systemDetails, + timeOccurred, + timeCreated, + timeUpdated, + lifecycleState, + lifecycleDetails, + isManagedByAutonomousLinux, + freeformTags, + definedTags, + systemTags); + this.data = data; + } + + @com.fasterxml.jackson.annotation.JsonProperty("data") + private final SysadminEventData data; + + public SysadminEventData getData() { + return data; + } + + @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("SysadminEvent("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", data=").append(String.valueOf(this.data)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SysadminEvent)) { + return false; + } + + SysadminEvent other = (SysadminEvent) o; + return java.util.Objects.equals(this.data, other.data) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.data == null ? 43 : this.data.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java new file mode 100644 index 00000000000..d9780d1bdb7 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/SysadminEventData.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Data related to the sysadmin event.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SysadminEventData.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SysadminEventData + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "errorCause", + "errorLog", + "attemptedResolutions", + "resolutionStatus", + "resolutionLog", + "additionalDetails" + }) + public SysadminEventData( + String errorCause, + String errorLog, + java.util.List attemptedResolutions, + EventStatus resolutionStatus, + String resolutionLog, + WorkRequestEventDataAdditionalDetails additionalDetails) { + super(); + this.errorCause = errorCause; + this.errorLog = errorLog; + this.attemptedResolutions = attemptedResolutions; + this.resolutionStatus = resolutionStatus; + this.resolutionLog = resolutionLog; + this.additionalDetails = additionalDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The commands executed by the agent that caused the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCause") + private String errorCause; + + /** + * The commands executed by the agent that caused the error. + * + * @param errorCause the value to set + * @return this builder + */ + public Builder errorCause(String errorCause) { + this.errorCause = errorCause; + this.__explicitlySet__.add("errorCause"); + return this; + } + /** The output log of the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorLog") + private String errorLog; + + /** + * The output log of the error. + * + * @param errorLog the value to set + * @return this builder + */ + public Builder errorLog(String errorLog) { + this.errorLog = errorLog; + this.__explicitlySet__.add("errorLog"); + return this; + } + /** The actions used to attempt fixing the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("attemptedResolutions") + private java.util.List attemptedResolutions; + + /** + * The actions used to attempt fixing the error. + * + * @param attemptedResolutions the value to set + * @return this builder + */ + public Builder attemptedResolutions(java.util.List attemptedResolutions) { + this.attemptedResolutions = attemptedResolutions; + this.__explicitlySet__.add("attemptedResolutions"); + return this; + } + /** Indicates if the event succeeded. */ + @com.fasterxml.jackson.annotation.JsonProperty("resolutionStatus") + private EventStatus resolutionStatus; + + /** + * Indicates if the event succeeded. + * + * @param resolutionStatus the value to set + * @return this builder + */ + public Builder resolutionStatus(EventStatus resolutionStatus) { + this.resolutionStatus = resolutionStatus; + this.__explicitlySet__.add("resolutionStatus"); + return this; + } + /** The log output after the resolutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("resolutionLog") + private String resolutionLog; + + /** + * The log output after the resolutions. + * + * @param resolutionLog the value to set + * @return this builder + */ + public Builder resolutionLog(String resolutionLog) { + this.resolutionLog = resolutionLog; + this.__explicitlySet__.add("resolutionLog"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private WorkRequestEventDataAdditionalDetails additionalDetails; + + public Builder additionalDetails(WorkRequestEventDataAdditionalDetails additionalDetails) { + this.additionalDetails = additionalDetails; + this.__explicitlySet__.add("additionalDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SysadminEventData build() { + SysadminEventData model = + new SysadminEventData( + this.errorCause, + this.errorLog, + this.attemptedResolutions, + this.resolutionStatus, + this.resolutionLog, + this.additionalDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SysadminEventData model) { + if (model.wasPropertyExplicitlySet("errorCause")) { + this.errorCause(model.getErrorCause()); + } + if (model.wasPropertyExplicitlySet("errorLog")) { + this.errorLog(model.getErrorLog()); + } + if (model.wasPropertyExplicitlySet("attemptedResolutions")) { + this.attemptedResolutions(model.getAttemptedResolutions()); + } + if (model.wasPropertyExplicitlySet("resolutionStatus")) { + this.resolutionStatus(model.getResolutionStatus()); + } + if (model.wasPropertyExplicitlySet("resolutionLog")) { + this.resolutionLog(model.getResolutionLog()); + } + if (model.wasPropertyExplicitlySet("additionalDetails")) { + this.additionalDetails(model.getAdditionalDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The commands executed by the agent that caused the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorCause") + private final String errorCause; + + /** + * The commands executed by the agent that caused the error. + * + * @return the value + */ + public String getErrorCause() { + return errorCause; + } + + /** The output log of the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("errorLog") + private final String errorLog; + + /** + * The output log of the error. + * + * @return the value + */ + public String getErrorLog() { + return errorLog; + } + + /** The actions used to attempt fixing the error. */ + @com.fasterxml.jackson.annotation.JsonProperty("attemptedResolutions") + private final java.util.List attemptedResolutions; + + /** + * The actions used to attempt fixing the error. + * + * @return the value + */ + public java.util.List getAttemptedResolutions() { + return attemptedResolutions; + } + + /** Indicates if the event succeeded. */ + @com.fasterxml.jackson.annotation.JsonProperty("resolutionStatus") + private final EventStatus resolutionStatus; + + /** + * Indicates if the event succeeded. + * + * @return the value + */ + public EventStatus getResolutionStatus() { + return resolutionStatus; + } + + /** The log output after the resolutions. */ + @com.fasterxml.jackson.annotation.JsonProperty("resolutionLog") + private final String resolutionLog; + + /** + * The log output after the resolutions. + * + * @return the value + */ + public String getResolutionLog() { + return resolutionLog; + } + + @com.fasterxml.jackson.annotation.JsonProperty("additionalDetails") + private final WorkRequestEventDataAdditionalDetails additionalDetails; + + public WorkRequestEventDataAdditionalDetails getAdditionalDetails() { + return additionalDetails; + } + + @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("SysadminEventData("); + sb.append("super=").append(super.toString()); + sb.append("errorCause=").append(String.valueOf(this.errorCause)); + sb.append(", errorLog=").append(String.valueOf(this.errorLog)); + sb.append(", attemptedResolutions=").append(String.valueOf(this.attemptedResolutions)); + sb.append(", resolutionStatus=").append(String.valueOf(this.resolutionStatus)); + sb.append(", resolutionLog=").append(String.valueOf(this.resolutionLog)); + sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SysadminEventData)) { + return false; + } + + SysadminEventData other = (SysadminEventData) o; + return java.util.Objects.equals(this.errorCause, other.errorCause) + && java.util.Objects.equals(this.errorLog, other.errorLog) + && java.util.Objects.equals(this.attemptedResolutions, other.attemptedResolutions) + && java.util.Objects.equals(this.resolutionStatus, other.resolutionStatus) + && java.util.Objects.equals(this.resolutionLog, other.resolutionLog) + && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.errorCause == null ? 43 : this.errorCause.hashCode()); + result = (result * PRIME) + (this.errorLog == null ? 43 : this.errorLog.hashCode()); + result = + (result * PRIME) + + (this.attemptedResolutions == null + ? 43 + : this.attemptedResolutions.hashCode()); + result = + (result * PRIME) + + (this.resolutionStatus == null ? 43 : this.resolutionStatus.hashCode()); + result = + (result * PRIME) + + (this.resolutionLog == null ? 43 : this.resolutionLog.hashCode()); + result = + (result * PRIME) + + (this.additionalDetails == null ? 43 : this.additionalDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSource.java new file mode 100644 index 00000000000..d4af145e158 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSource.java @@ -0,0 +1,580 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * The object that defines a third-party software source. A software source is a collection of + * packages. For more information, see [Managing Software + * Sources](https://docs.cloud.oracle.com/iaas/osmh/doc/software-sources.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 Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ThirdPartySoftwareSource.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ThirdPartySoftwareSource extends SoftwareSource { + @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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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("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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private Availability availability; + + public Builder availability(Availability availability) { + this.availability = availability; + this.__explicitlySet__.add("availability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availabilityAtOci") + private Availability availabilityAtOci; + + public Builder availabilityAtOci(Availability availabilityAtOci) { + this.availabilityAtOci = availabilityAtOci; + this.__explicitlySet__.add("availabilityAtOci"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("repoId") + private String repoId; + + public Builder repoId(String repoId) { + this.repoId = repoId; + this.__explicitlySet__.add("repoId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + 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("packageCount") + private Long packageCount; + + public Builder packageCount(Long packageCount) { + this.packageCount = packageCount; + this.__explicitlySet__.add("packageCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("checksumType") + private ChecksumType checksumType; + + public Builder checksumType(ChecksumType checksumType) { + this.checksumType = checksumType; + this.__explicitlySet__.add("checksumType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyId") + private String gpgKeyId; + + public Builder gpgKeyId(String gpgKeyId) { + this.gpgKeyId = gpgKeyId; + this.__explicitlySet__.add("gpgKeyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyFingerprint") + private String gpgKeyFingerprint; + + public Builder gpgKeyFingerprint(String gpgKeyFingerprint) { + this.gpgKeyFingerprint = gpgKeyFingerprint; + this.__explicitlySet__.add("gpgKeyFingerprint"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Double size; + + public Builder size(Double size) { + this.size = size; + this.__explicitlySet__.add("size"); + 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; + } + /** Whether signature verification should be done for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ThirdPartySoftwareSource build() { + ThirdPartySoftwareSource model = + new ThirdPartySoftwareSource( + this.id, + this.compartmentId, + this.displayName, + this.timeCreated, + this.description, + this.availability, + this.availabilityAtOci, + this.repoId, + this.osFamily, + this.archType, + this.lifecycleState, + this.packageCount, + this.url, + this.checksumType, + this.gpgKeyUrl, + this.gpgKeyId, + this.gpgKeyFingerprint, + this.size, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ThirdPartySoftwareSource 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("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("availability")) { + this.availability(model.getAvailability()); + } + if (model.wasPropertyExplicitlySet("availabilityAtOci")) { + this.availabilityAtOci(model.getAvailabilityAtOci()); + } + if (model.wasPropertyExplicitlySet("repoId")) { + this.repoId(model.getRepoId()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("packageCount")) { + this.packageCount(model.getPackageCount()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("checksumType")) { + this.checksumType(model.getChecksumType()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyId")) { + this.gpgKeyId(model.getGpgKeyId()); + } + if (model.wasPropertyExplicitlySet("gpgKeyFingerprint")) { + this.gpgKeyFingerprint(model.getGpgKeyFingerprint()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + 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("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ThirdPartySoftwareSource( + String id, + String compartmentId, + String displayName, + java.util.Date timeCreated, + String description, + Availability availability, + Availability availabilityAtOci, + String repoId, + OsFamily osFamily, + ArchType archType, + LifecycleState lifecycleState, + Long packageCount, + String url, + ChecksumType checksumType, + String gpgKeyUrl, + String gpgKeyId, + String gpgKeyFingerprint, + Double size, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super( + id, + compartmentId, + displayName, + timeCreated, + description, + availability, + availabilityAtOci, + repoId, + osFamily, + archType, + lifecycleState, + packageCount, + url, + checksumType, + gpgKeyUrl, + gpgKeyId, + gpgKeyFingerprint, + size, + freeformTags, + definedTags, + systemTags); + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** Whether signature verification should be done for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("ThirdPartySoftwareSource("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ThirdPartySoftwareSource)) { + return false; + } + + ThirdPartySoftwareSource other = (ThirdPartySoftwareSource) o; + return java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSourceSummary.java new file mode 100644 index 00000000000..d9283e1b64f --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/ThirdPartySoftwareSourceSummary.java @@ -0,0 +1,412 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides summary information for a third-party software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ThirdPartySoftwareSourceSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ThirdPartySoftwareSourceSummary extends SoftwareSourceSummary { + @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("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + 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("repoId") + private String repoId; + + public Builder repoId(String repoId) { + this.repoId = repoId; + this.__explicitlySet__.add("repoId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availability") + private Availability availability; + + public Builder availability(Availability availability) { + this.availability = availability; + this.__explicitlySet__.add("availability"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("availabilityAtOci") + private Availability availabilityAtOci; + + public Builder availabilityAtOci(Availability availabilityAtOci) { + this.availabilityAtOci = availabilityAtOci; + this.__explicitlySet__.add("availabilityAtOci"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("osFamily") + private OsFamily osFamily; + + public Builder osFamily(OsFamily osFamily) { + this.osFamily = osFamily; + this.__explicitlySet__.add("osFamily"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archType") + private ArchType archType; + + public Builder archType(ArchType archType) { + this.archType = archType; + this.__explicitlySet__.add("archType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("packageCount") + private Long packageCount; + + public Builder packageCount(Long packageCount) { + this.packageCount = packageCount; + this.__explicitlySet__.add("packageCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private SoftwareSource.LifecycleState lifecycleState; + + public Builder lifecycleState(SoftwareSource.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("size") + private Double size; + + public Builder size(Double size) { + this.size = size; + this.__explicitlySet__.add("size"); + 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; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ThirdPartySoftwareSourceSummary build() { + ThirdPartySoftwareSourceSummary model = + new ThirdPartySoftwareSourceSummary( + this.id, + this.compartmentId, + this.displayName, + this.repoId, + this.url, + this.timeCreated, + this.timeUpdated, + this.description, + this.availability, + this.availabilityAtOci, + this.osFamily, + this.archType, + this.packageCount, + this.lifecycleState, + this.size, + this.freeformTags, + this.definedTags, + this.systemTags, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ThirdPartySoftwareSourceSummary 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("repoId")) { + this.repoId(model.getRepoId()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("availability")) { + this.availability(model.getAvailability()); + } + if (model.wasPropertyExplicitlySet("availabilityAtOci")) { + this.availabilityAtOci(model.getAvailabilityAtOci()); + } + if (model.wasPropertyExplicitlySet("osFamily")) { + this.osFamily(model.getOsFamily()); + } + if (model.wasPropertyExplicitlySet("archType")) { + this.archType(model.getArchType()); + } + if (model.wasPropertyExplicitlySet("packageCount")) { + this.packageCount(model.getPackageCount()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("size")) { + this.size(model.getSize()); + } + 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("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ThirdPartySoftwareSourceSummary( + String id, + String compartmentId, + String displayName, + String repoId, + String url, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String description, + Availability availability, + Availability availabilityAtOci, + OsFamily osFamily, + ArchType archType, + Long packageCount, + SoftwareSource.LifecycleState lifecycleState, + Double size, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Boolean isMirrorSyncAllowed) { + super( + id, + compartmentId, + displayName, + repoId, + url, + timeCreated, + timeUpdated, + description, + availability, + availabilityAtOci, + osFamily, + archType, + packageCount, + lifecycleState, + size, + freeformTags, + definedTags, + systemTags); + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("ThirdPartySoftwareSourceSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ThirdPartySoftwareSourceSummary)) { + return false; + } + + ThirdPartySoftwareSourceSummary other = (ThirdPartySoftwareSourceSummary) o; + return java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java index 425af9b7eef..60dec9ee21b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateManagementStationDetails.java @@ -27,6 +27,7 @@ public final class UpdateManagementStationDetails "displayName", "description", "hostname", + "isAutoConfigEnabled", "proxy", "mirror", "freeformTags", @@ -36,6 +37,7 @@ public UpdateManagementStationDetails( String displayName, String description, String hostname, + Boolean isAutoConfigEnabled, UpdateProxyConfigurationDetails proxy, UpdateMirrorConfigurationDetails mirror, java.util.Map freeformTags, @@ -44,6 +46,7 @@ public UpdateManagementStationDetails( this.displayName = displayName; this.description = description; this.hostname = hostname; + this.isAutoConfigEnabled = isAutoConfigEnabled; this.proxy = proxy; this.mirror = mirror; this.freeformTags = freeformTags; @@ -105,6 +108,25 @@ public Builder hostname(String hostname) { this.__explicitlySet__.add("hostname"); return this; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @param isAutoConfigEnabled the value to set + * @return this builder + */ + public Builder isAutoConfigEnabled(Boolean isAutoConfigEnabled) { + this.isAutoConfigEnabled = isAutoConfigEnabled; + this.__explicitlySet__.add("isAutoConfigEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("proxy") private UpdateProxyConfigurationDetails proxy; @@ -180,6 +202,7 @@ public UpdateManagementStationDetails build() { this.displayName, this.description, this.hostname, + this.isAutoConfigEnabled, this.proxy, this.mirror, this.freeformTags, @@ -201,6 +224,9 @@ public Builder copy(UpdateManagementStationDetails model) { if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } + if (model.wasPropertyExplicitlySet("isAutoConfigEnabled")) { + this.isAutoConfigEnabled(model.getIsAutoConfigEnabled()); + } if (model.wasPropertyExplicitlySet("proxy")) { this.proxy(model.getProxy()); } @@ -273,6 +299,23 @@ public String getHostname() { return hostname; } + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoConfigEnabled") + private final Boolean isAutoConfigEnabled; + + /** + * When enabled, the station setup script automatically runs to configure the firewall and + * SELinux settings on the station. + * + * @return the value + */ + public Boolean getIsAutoConfigEnabled() { + return isAutoConfigEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("proxy") private final UpdateProxyConfigurationDetails proxy; @@ -347,6 +390,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", hostname=").append(String.valueOf(this.hostname)); + sb.append(", isAutoConfigEnabled=").append(String.valueOf(this.isAutoConfigEnabled)); sb.append(", proxy=").append(String.valueOf(this.proxy)); sb.append(", mirror=").append(String.valueOf(this.mirror)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -368,6 +412,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.hostname, other.hostname) + && java.util.Objects.equals(this.isAutoConfigEnabled, other.isAutoConfigEnabled) && java.util.Objects.equals(this.proxy, other.proxy) && java.util.Objects.equals(this.mirror, other.mirror) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -382,6 +427,11 @@ public int 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.hostname == null ? 43 : this.hostname.hashCode()); + result = + (result * PRIME) + + (this.isAutoConfigEnabled == null + ? 43 + : this.isAutoConfigEnabled.hashCode()); result = (result * PRIME) + (this.proxy == null ? 43 : this.proxy.hashCode()); result = (result * PRIME) + (this.mirror == null ? 43 : this.mirror.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateMirrorConfigurationDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateMirrorConfigurationDetails.java index b437402ccd4..b76610561db 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateMirrorConfigurationDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateMirrorConfigurationDetails.java @@ -23,14 +23,25 @@ public final class UpdateMirrorConfigurationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"directory", "port", "sslport", "sslcert"}) + @java.beans.ConstructorProperties({ + "directory", + "port", + "sslport", + "sslcert", + "isSslverifyEnabled" + }) public UpdateMirrorConfigurationDetails( - String directory, String port, String sslport, String sslcert) { + String directory, + String port, + String sslport, + String sslcert, + Boolean isSslverifyEnabled) { super(); this.directory = directory; this.port = port; this.sslport = sslport; this.sslcert = sslcert; + this.isSslverifyEnabled = isSslverifyEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -99,6 +110,25 @@ public Builder sslcert(String sslcert) { this.__explicitlySet__.add("sslcert"); return this; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @param isSslverifyEnabled the value to set + * @return this builder + */ + public Builder isSslverifyEnabled(Boolean isSslverifyEnabled) { + this.isSslverifyEnabled = isSslverifyEnabled; + this.__explicitlySet__.add("isSslverifyEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -106,7 +136,11 @@ public Builder sslcert(String sslcert) { public UpdateMirrorConfigurationDetails build() { UpdateMirrorConfigurationDetails model = new UpdateMirrorConfigurationDetails( - this.directory, this.port, this.sslport, this.sslcert); + this.directory, + this.port, + this.sslport, + this.sslcert, + this.isSslverifyEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -127,6 +161,9 @@ public Builder copy(UpdateMirrorConfigurationDetails model) { if (model.wasPropertyExplicitlySet("sslcert")) { this.sslcert(model.getSslcert()); } + if (model.wasPropertyExplicitlySet("isSslverifyEnabled")) { + this.isSslverifyEnabled(model.getIsSslverifyEnabled()); + } return this; } } @@ -194,6 +231,23 @@ public String getSslcert() { return sslcert; } + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslverifyEnabled") + private final Boolean isSslverifyEnabled; + + /** + * When enabled, the SSL certificate is verified whenever an instance installs or updates a + * package from a software source that is mirrored on the management station. + * + * @return the value + */ + public Boolean getIsSslverifyEnabled() { + return isSslverifyEnabled; + } + @Override public String toString() { return this.toString(true); @@ -213,6 +267,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", port=").append(String.valueOf(this.port)); sb.append(", sslport=").append(String.valueOf(this.sslport)); sb.append(", sslcert=").append(String.valueOf(this.sslcert)); + sb.append(", isSslverifyEnabled=").append(String.valueOf(this.isSslverifyEnabled)); sb.append(")"); return sb.toString(); } @@ -231,6 +286,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.port, other.port) && java.util.Objects.equals(this.sslport, other.sslport) && java.util.Objects.equals(this.sslcert, other.sslcert) + && java.util.Objects.equals(this.isSslverifyEnabled, other.isSslverifyEnabled) && super.equals(other); } @@ -242,6 +298,11 @@ public int hashCode() { result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); result = (result * PRIME) + (this.sslport == null ? 43 : this.sslport.hashCode()); result = (result * PRIME) + (this.sslcert == null ? 43 : this.sslcert.hashCode()); + result = + (result * PRIME) + + (this.isSslverifyEnabled == null + ? 43 + : this.isSslverifyEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePrivateSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePrivateSoftwareSourceDetails.java new file mode 100644 index 00000000000..c1cb586c5fd --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdatePrivateSoftwareSourceDetails.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to update a private software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdatePrivateSoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdatePrivateSoftwareSourceDetails extends UpdateSoftwareSourceDetails { + @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("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; + } + /** URL for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL for the private software source. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @param gpgKeyUrl the value to set + * @return this builder + */ + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdatePrivateSoftwareSourceDetails build() { + UpdatePrivateSoftwareSourceDetails model = + new UpdatePrivateSoftwareSourceDetails( + this.compartmentId, + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.url, + this.gpgKeyUrl, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdatePrivateSoftwareSourceDetails 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdatePrivateSoftwareSourceDetails( + String compartmentId, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String url, + String gpgKeyUrl, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super(compartmentId, displayName, description, freeformTags, definedTags); + this.url = url; + this.gpgKeyUrl = gpgKeyUrl; + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** URL for the private software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL for the private software source. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private final String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @return the value + */ + public String getGpgKeyUrl() { + return gpgKeyUrl; + } + + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("UpdatePrivateSoftwareSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", gpgKeyUrl=").append(String.valueOf(this.gpgKeyUrl)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdatePrivateSoftwareSourceDetails)) { + return false; + } + + UpdatePrivateSoftwareSourceDetails other = (UpdatePrivateSoftwareSourceDetails) o; + return java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.gpgKeyUrl, other.gpgKeyUrl) + && java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.gpgKeyUrl == null ? 43 : this.gpgKeyUrl.hashCode()); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateProfileDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateProfileDetails.java index 3f3fb2f602b..78e1b91fe99 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateProfileDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateProfileDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Information for updating a registration profile
+ * Provides the information used to update a registration profile.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java index 9026030df7c..30a6565d9f9 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateScheduledJobDetails.java @@ -108,14 +108,14 @@ public Builder scheduleType(ScheduleTypes scheduleType) { return this; } /** - * The desired time of the next execution of this scheduled job (in [RFC + * The time of the next execution of this scheduled job (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). */ @com.fasterxml.jackson.annotation.JsonProperty("timeNextExecution") private java.util.Date timeNextExecution; /** - * The desired time of the next execution of this scheduled job (in [RFC + * The time of the next execution of this scheduled job (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @param timeNextExecution the value to set @@ -342,14 +342,14 @@ public ScheduleTypes getScheduleType() { } /** - * The desired time of the next execution of this scheduled job (in [RFC + * The time of the next execution of this scheduled job (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). */ @com.fasterxml.jackson.annotation.JsonProperty("timeNextExecution") private final java.util.Date timeNextExecution; /** - * The desired time of the next execution of this scheduled job (in [RFC + * The time of the next execution of this scheduled job (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @return the value diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateSoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateSoftwareSourceDetails.java index 0af2c5ba828..184ee94757a 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateSoftwareSourceDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateSoftwareSourceDetails.java @@ -25,12 +25,18 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateCustomSoftwareSourceDetails.class, name = "CUSTOM"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdatePrivateSoftwareSourceDetails.class, + name = "PRIVATE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateVersionedCustomSoftwareSourceDetails.class, name = "VERSIONED"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = UpdateVendorSoftwareSourceDetails.class, - name = "VENDOR") + name = "VENDOR"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateThirdPartySoftwareSourceDetails.class, + name = "THIRD_PARTY") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateThirdPartySoftwareSourceDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateThirdPartySoftwareSourceDetails.java new file mode 100644 index 00000000000..c472537ae30 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateThirdPartySoftwareSourceDetails.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.model; + +/** + * Provides the information used to update a third-party software source.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateThirdPartySoftwareSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "softwareSourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateThirdPartySoftwareSourceDetails extends UpdateSoftwareSourceDetails { + @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("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; + } + /** URL for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * URL for the third-party software source. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @param gpgKeyUrl the value to set + * @return this builder + */ + public Builder gpgKeyUrl(String gpgKeyUrl) { + this.gpgKeyUrl = gpgKeyUrl; + this.__explicitlySet__.add("gpgKeyUrl"); + return this; + } + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @param isGpgCheckEnabled the value to set + * @return this builder + */ + public Builder isGpgCheckEnabled(Boolean isGpgCheckEnabled) { + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.__explicitlySet__.add("isGpgCheckEnabled"); + return this; + } + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @param isSslVerifyEnabled the value to set + * @return this builder + */ + public Builder isSslVerifyEnabled(Boolean isSslVerifyEnabled) { + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.__explicitlySet__.add("isSslVerifyEnabled"); + return this; + } + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @param advancedRepoOptions the value to set + * @return this builder + */ + public Builder advancedRepoOptions(String advancedRepoOptions) { + this.advancedRepoOptions = advancedRepoOptions; + this.__explicitlySet__.add("advancedRepoOptions"); + return this; + } + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @param isMirrorSyncAllowed the value to set + * @return this builder + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + this.__explicitlySet__.add("isMirrorSyncAllowed"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateThirdPartySoftwareSourceDetails build() { + UpdateThirdPartySoftwareSourceDetails model = + new UpdateThirdPartySoftwareSourceDetails( + this.compartmentId, + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.url, + this.gpgKeyUrl, + this.isGpgCheckEnabled, + this.isSslVerifyEnabled, + this.advancedRepoOptions, + this.isMirrorSyncAllowed); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateThirdPartySoftwareSourceDetails 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("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("gpgKeyUrl")) { + this.gpgKeyUrl(model.getGpgKeyUrl()); + } + if (model.wasPropertyExplicitlySet("isGpgCheckEnabled")) { + this.isGpgCheckEnabled(model.getIsGpgCheckEnabled()); + } + if (model.wasPropertyExplicitlySet("isSslVerifyEnabled")) { + this.isSslVerifyEnabled(model.getIsSslVerifyEnabled()); + } + if (model.wasPropertyExplicitlySet("advancedRepoOptions")) { + this.advancedRepoOptions(model.getAdvancedRepoOptions()); + } + if (model.wasPropertyExplicitlySet("isMirrorSyncAllowed")) { + this.isMirrorSyncAllowed(model.getIsMirrorSyncAllowed()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateThirdPartySoftwareSourceDetails( + String compartmentId, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String url, + String gpgKeyUrl, + Boolean isGpgCheckEnabled, + Boolean isSslVerifyEnabled, + String advancedRepoOptions, + Boolean isMirrorSyncAllowed) { + super(compartmentId, displayName, description, freeformTags, definedTags); + this.url = url; + this.gpgKeyUrl = gpgKeyUrl; + this.isGpgCheckEnabled = isGpgCheckEnabled; + this.isSslVerifyEnabled = isSslVerifyEnabled; + this.advancedRepoOptions = advancedRepoOptions; + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + } + + /** URL for the third-party software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * URL for the third-party software source. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** URI of the GPG key for this software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("gpgKeyUrl") + private final String gpgKeyUrl; + + /** + * URI of the GPG key for this software source. + * + * @return the value + */ + public String getGpgKeyUrl() { + return gpgKeyUrl; + } + + /** Whether signature verification should be done for the software source. */ + @com.fasterxml.jackson.annotation.JsonProperty("isGpgCheckEnabled") + private final Boolean isGpgCheckEnabled; + + /** + * Whether signature verification should be done for the software source. + * + * @return the value + */ + public Boolean getIsGpgCheckEnabled() { + return isGpgCheckEnabled; + } + + /** Whether SSL validation needs to be turned on */ + @com.fasterxml.jackson.annotation.JsonProperty("isSslVerifyEnabled") + private final Boolean isSslVerifyEnabled; + + /** + * Whether SSL validation needs to be turned on + * + * @return the value + */ + public Boolean getIsSslVerifyEnabled() { + return isSslVerifyEnabled; + } + + /** Advanced repository options for the software source */ + @com.fasterxml.jackson.annotation.JsonProperty("advancedRepoOptions") + private final String advancedRepoOptions; + + /** + * Advanced repository options for the software source + * + * @return the value + */ + public String getAdvancedRepoOptions() { + return advancedRepoOptions; + } + + /** Whether this software source can be synced to a management station */ + @com.fasterxml.jackson.annotation.JsonProperty("isMirrorSyncAllowed") + private final Boolean isMirrorSyncAllowed; + + /** + * Whether this software source can be synced to a management station + * + * @return the value + */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } + + @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("UpdateThirdPartySoftwareSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", gpgKeyUrl=").append(String.valueOf(this.gpgKeyUrl)); + sb.append(", isGpgCheckEnabled=").append(String.valueOf(this.isGpgCheckEnabled)); + sb.append(", isSslVerifyEnabled=").append(String.valueOf(this.isSslVerifyEnabled)); + sb.append(", advancedRepoOptions=").append(String.valueOf(this.advancedRepoOptions)); + sb.append(", isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateThirdPartySoftwareSourceDetails)) { + return false; + } + + UpdateThirdPartySoftwareSourceDetails other = (UpdateThirdPartySoftwareSourceDetails) o; + return java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.gpgKeyUrl, other.gpgKeyUrl) + && java.util.Objects.equals(this.isGpgCheckEnabled, other.isGpgCheckEnabled) + && java.util.Objects.equals(this.isSslVerifyEnabled, other.isSslVerifyEnabled) + && java.util.Objects.equals(this.advancedRepoOptions, other.advancedRepoOptions) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.gpgKeyUrl == null ? 43 : this.gpgKeyUrl.hashCode()); + result = + (result * PRIME) + + (this.isGpgCheckEnabled == null ? 43 : this.isGpgCheckEnabled.hashCode()); + result = + (result * PRIME) + + (this.isSslVerifyEnabled == null + ? 43 + : this.isSslVerifyEnabled.hashCode()); + result = + (result * PRIME) + + (this.advancedRepoOptions == null + ? 43 + : this.advancedRepoOptions.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateWorkRequestDetails.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateWorkRequestDetails.java index 5e842b4ec7a..e9379ff0fd2 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateWorkRequestDetails.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/UpdateWorkRequestDetails.java @@ -46,12 +46,12 @@ public UpdateWorkRequestDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** status of current work request. */ + /** Status of current work request. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private OperationStatus status; /** - * status of current work request. + * Status of current work request. * * @param status the value to set * @return this builder @@ -173,12 +173,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** status of current work request. */ + /** Status of current work request. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final OperationStatus status; /** - * status of current work request. + * Status of current work request. * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorSoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorSoftwareSource.java index 0da6f27b4da..bb1d4af8da8 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorSoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VendorSoftwareSource.java @@ -234,17 +234,17 @@ public Builder vendorName(VendorName vendorName) { return this; } /** - * This property applies only to replicated vendor software sources. This is the - * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the vendor software source in the root compartment. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the vendor software source in the root compartment. This property applies only to + * replicated vendor software sources. */ @com.fasterxml.jackson.annotation.JsonProperty("originSoftwareSourceId") private String originSoftwareSourceId; /** - * This property applies only to replicated vendor software sources. This is the - * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of - * the vendor software source in the root compartment. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the vendor software source in the root compartment. This property applies only to + * replicated vendor software sources. * * @param originSoftwareSourceId the value to set * @return this builder @@ -460,17 +460,17 @@ public VendorName getVendorName() { } /** - * This property applies only to replicated vendor software sources. This is the - * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * vendor software source in the root compartment. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the vendor software source in the root compartment. This property applies only to replicated + * vendor software sources. */ @com.fasterxml.jackson.annotation.JsonProperty("originSoftwareSourceId") private final String originSoftwareSourceId; /** - * This property applies only to replicated vendor software sources. This is the - * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - * vendor software source in the root compartment. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the vendor software source in the root compartment. This property applies only to replicated + * vendor software sources. * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSource.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSource.java index e9ae297dfd0..a9e62f06165 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSource.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSource.java @@ -352,6 +352,40 @@ public Builder packages(java.util.List packages) { this.__explicitlySet__.add("packages"); return this; } + /** Identifies how the versioned custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the versioned custom software source was created. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMetadataUpdated") + private java.util.Date timeMetadataUpdated; + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @param timeMetadataUpdated the value to set + * @return this builder + */ + public Builder timeMetadataUpdated(java.util.Date timeMetadataUpdated) { + this.timeMetadataUpdated = timeMetadataUpdated; + this.__explicitlySet__.add("timeMetadataUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -386,7 +420,9 @@ public VersionedCustomSoftwareSource build() { this.isAutoResolveDependencies, this.isCreatedFromPackageList, this.isLatestContentOnly, - this.packages); + this.packages, + this.softwareSourceSubType, + this.timeMetadataUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -479,6 +515,12 @@ public Builder copy(VersionedCustomSoftwareSource model) { if (model.wasPropertyExplicitlySet("packages")) { this.packages(model.getPackages()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } + if (model.wasPropertyExplicitlySet("timeMetadataUpdated")) { + this.timeMetadataUpdated(model.getTimeMetadataUpdated()); + } return this; } } @@ -521,7 +563,9 @@ public VersionedCustomSoftwareSource( Boolean isAutoResolveDependencies, Boolean isCreatedFromPackageList, Boolean isLatestContentOnly, - java.util.List packages) { + java.util.List packages, + SoftwareSourceSubType softwareSourceSubType, + java.util.Date timeMetadataUpdated) { super( id, compartmentId, @@ -551,6 +595,8 @@ public VersionedCustomSoftwareSource( this.isCreatedFromPackageList = isCreatedFromPackageList; this.isLatestContentOnly = isLatestContentOnly; this.packages = packages; + this.softwareSourceSubType = softwareSourceSubType; + this.timeMetadataUpdated = timeMetadataUpdated; } /** @@ -672,6 +718,36 @@ public java.util.List getPackages() { return packages; } + /** Identifies how the versioned custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the versioned custom software source was created. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeMetadataUpdated") + private final java.util.Date timeMetadataUpdated; + + /** + * The date and time the metadata for this software source was last updated (in [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339) format). + * + * @return the value + */ + public java.util.Date getTimeMetadataUpdated() { + return timeMetadataUpdated; + } + @Override public String toString() { return this.toString(true); @@ -697,6 +773,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.isCreatedFromPackageList)); sb.append(", isLatestContentOnly=").append(String.valueOf(this.isLatestContentOnly)); sb.append(", packages=").append(String.valueOf(this.packages)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); + sb.append(", timeMetadataUpdated=").append(String.valueOf(this.timeMetadataUpdated)); sb.append(")"); return sb.toString(); } @@ -721,6 +799,8 @@ public boolean equals(Object o) { this.isCreatedFromPackageList, other.isCreatedFromPackageList) && java.util.Objects.equals(this.isLatestContentOnly, other.isLatestContentOnly) && java.util.Objects.equals(this.packages, other.packages) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) + && java.util.Objects.equals(this.timeMetadataUpdated, other.timeMetadataUpdated) && super.equals(other); } @@ -759,6 +839,16 @@ public int hashCode() { ? 43 : this.isLatestContentOnly.hashCode()); result = (result * PRIME) + (this.packages == null ? 43 : this.packages.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); + result = + (result * PRIME) + + (this.timeMetadataUpdated == null + ? 43 + : this.timeMetadataUpdated.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSourceSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSourceSummary.java index af6ae41f88f..2742f821e14 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSourceSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/VersionedCustomSoftwareSourceSummary.java @@ -223,6 +223,21 @@ public Builder softwareSourceVersion(String softwareSourceVersion) { this.__explicitlySet__.add("softwareSourceVersion"); return this; } + /** Identifies how the versioned custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the versioned custom software source was created. + * + * @param softwareSourceSubType the value to set + * @return this builder + */ + public Builder softwareSourceSubType(SoftwareSourceSubType softwareSourceSubType) { + this.softwareSourceSubType = softwareSourceSubType; + this.__explicitlySet__.add("softwareSourceSubType"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -249,7 +264,8 @@ public VersionedCustomSoftwareSourceSummary build() { this.definedTags, this.systemTags, this.vendorSoftwareSources, - this.softwareSourceVersion); + this.softwareSourceVersion, + this.softwareSourceSubType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -318,6 +334,9 @@ public Builder copy(VersionedCustomSoftwareSourceSummary model) { if (model.wasPropertyExplicitlySet("softwareSourceVersion")) { this.softwareSourceVersion(model.getSoftwareSourceVersion()); } + if (model.wasPropertyExplicitlySet("softwareSourceSubType")) { + this.softwareSourceSubType(model.getSoftwareSourceSubType()); + } return this; } } @@ -352,7 +371,8 @@ public VersionedCustomSoftwareSourceSummary( java.util.Map> definedTags, java.util.Map> systemTags, java.util.List vendorSoftwareSources, - String softwareSourceVersion) { + String softwareSourceVersion, + SoftwareSourceSubType softwareSourceSubType) { super( id, compartmentId, @@ -374,6 +394,7 @@ public VersionedCustomSoftwareSourceSummary( systemTags); this.vendorSoftwareSources = vendorSoftwareSources; this.softwareSourceVersion = softwareSourceVersion; + this.softwareSourceSubType = softwareSourceSubType; } /** @@ -406,6 +427,19 @@ public String getSoftwareSourceVersion() { return softwareSourceVersion; } + /** Identifies how the versioned custom software source was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareSourceSubType") + private final SoftwareSourceSubType softwareSourceSubType; + + /** + * Identifies how the versioned custom software source was created. + * + * @return the value + */ + public SoftwareSourceSubType getSoftwareSourceSubType() { + return softwareSourceSubType; + } + @Override public String toString() { return this.toString(true); @@ -423,6 +457,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", vendorSoftwareSources=").append(String.valueOf(this.vendorSoftwareSources)); sb.append(", softwareSourceVersion=").append(String.valueOf(this.softwareSourceVersion)); + sb.append(", softwareSourceSubType=").append(String.valueOf(this.softwareSourceSubType)); sb.append(")"); return sb.toString(); } @@ -439,6 +474,7 @@ public boolean equals(Object o) { VersionedCustomSoftwareSourceSummary other = (VersionedCustomSoftwareSourceSummary) o; return java.util.Objects.equals(this.vendorSoftwareSources, other.vendorSoftwareSources) && java.util.Objects.equals(this.softwareSourceVersion, other.softwareSourceVersion) + && java.util.Objects.equals(this.softwareSourceSubType, other.softwareSourceSubType) && super.equals(other); } @@ -456,6 +492,11 @@ public int hashCode() { + (this.softwareSourceVersion == null ? 43 : this.softwareSourceVersion.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceSubType == null + ? 43 + : this.softwareSourceSubType.hashCode()); return result; } } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WindowsStandaloneProfile.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WindowsStandaloneProfile.java index ba83c6940c3..f86f8ea757a 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WindowsStandaloneProfile.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WindowsStandaloneProfile.java @@ -5,7 +5,7 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Provides the information for a windows standalone registration profile.
+ * Provides the information for a Windows standalone registration profile.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -108,6 +108,24 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") + private java.util.Date timeModified; + + public Builder timeModified(java.util.Date timeModified) { + this.timeModified = timeModified; + this.__explicitlySet__.add("timeModified"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("profileVersion") + private String profileVersion; + + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + this.__explicitlySet__.add("profileVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -187,6 +205,8 @@ public WindowsStandaloneProfile build() { this.osFamily, this.archType, this.timeCreated, + this.timeModified, + this.profileVersion, this.lifecycleState, this.registrationType, this.isDefaultProfile, @@ -229,6 +249,12 @@ public Builder copy(WindowsStandaloneProfile model) { if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } + if (model.wasPropertyExplicitlySet("timeModified")) { + this.timeModified(model.getTimeModified()); + } + if (model.wasPropertyExplicitlySet("profileVersion")) { + this.profileVersion(model.getProfileVersion()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -274,6 +300,8 @@ public WindowsStandaloneProfile( OsFamily osFamily, ArchType archType, java.util.Date timeCreated, + java.util.Date timeModified, + String profileVersion, LifecycleState lifecycleState, RegistrationType registrationType, Boolean isDefaultProfile, @@ -291,6 +319,8 @@ public WindowsStandaloneProfile( osFamily, archType, timeCreated, + timeModified, + profileVersion, lifecycleState, registrationType, isDefaultProfile, diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java index 09097e553ca..aef4499d2b3 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequest.java @@ -47,8 +47,10 @@ public final class WorkRequest extends com.oracle.bmc.http.client.internal.Expli "eventId", "contentChecksum", "retryOfId", + "rerunOfId", "retryIntervals", - "isManagedByAutonomousLinux" + "isManagedByAutonomousLinux", + "rebootTimeoutInMins" }) public WorkRequest( WorkRequestOperationType operationType, @@ -76,8 +78,10 @@ public WorkRequest( String eventId, String contentChecksum, String retryOfId, + String rerunOfId, java.util.List retryIntervals, - Boolean isManagedByAutonomousLinux) { + Boolean isManagedByAutonomousLinux, + Integer rebootTimeoutInMins) { super(); this.operationType = operationType; this.status = status; @@ -104,8 +108,10 @@ public WorkRequest( this.eventId = eventId; this.contentChecksum = contentChecksum; this.retryOfId = retryOfId; + this.rerunOfId = rerunOfId; this.retryIntervals = retryIntervals; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.rebootTimeoutInMins = rebootTimeoutInMins; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -204,12 +210,16 @@ public Builder message(String message) { this.__explicitlySet__.add("message"); return this; } - /** The OCID of the parent work request, if there is any. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the parent work request, if there is any. + */ @com.fasterxml.jackson.annotation.JsonProperty("parentId") private String parentId; /** - * The OCID of the parent work request, if there is any. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the parent work request, if there is any. * * @param parentId the value to set * @return this builder @@ -219,12 +229,18 @@ public Builder parentId(String parentId) { this.__explicitlySet__.add("parentId"); return this; } - /** The list of OCIDs for the child work requests. */ + /** + * The list of + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the child work requests. + */ @com.fasterxml.jackson.annotation.JsonProperty("childrenId") private java.util.List childrenId; /** - * The list of OCIDs for the child work requests. + * The list of + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for + * the child work requests. * * @param childrenId the value to set * @return this builder @@ -543,12 +559,41 @@ public Builder retryOfId(String retryOfId) { this.__explicitlySet__.add("retryOfId"); return this; } - /** Indicates whether this work request is managed by the Autonomous Linux service. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the original work request that is being rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rerunOfId") + private String rerunOfId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the original work request that is being rerun. + * + * @param rerunOfId the value to set + * @return this builder + */ + public Builder rerunOfId(String rerunOfId) { + this.rerunOfId = rerunOfId; + this.__explicitlySet__.add("rerunOfId"); + return this; + } + /** + * The amount of time in minutes to wait until retrying the work request. If set, the + * service will automatically retry a failed work request after the interval. For example, + * An interval set to [2,5,10]. If the initial execution of the work request fails, the + * service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and + * then retries. If that fails, the service waits 10 minutes and then retries. + */ @com.fasterxml.jackson.annotation.JsonProperty("retryIntervals") private java.util.List retryIntervals; /** - * Indicates whether this work request is managed by the Autonomous Linux service. + * The amount of time in minutes to wait until retrying the work request. If set, the + * service will automatically retry a failed work request after the interval. For example, + * An interval set to [2,5,10]. If the initial execution of the work request fails, the + * service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and + * then retries. If that fails, the service waits 10 minutes and then retries. * * @param retryIntervals the value to set * @return this builder @@ -573,6 +618,25 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { this.__explicitlySet__.add("isManagedByAutonomousLinux"); return this; } + /** + * The number of minutes the service waits for the reboot to complete. If the managed + * instance doesn't reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the managed + * instance doesn't reboot within the timeout, the service marks the reboot job as failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -605,8 +669,10 @@ public WorkRequest build() { this.eventId, this.contentChecksum, this.retryOfId, + this.rerunOfId, this.retryIntervals, - this.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, + this.rebootTimeoutInMins); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -690,12 +756,18 @@ public Builder copy(WorkRequest model) { if (model.wasPropertyExplicitlySet("retryOfId")) { this.retryOfId(model.getRetryOfId()); } + if (model.wasPropertyExplicitlySet("rerunOfId")) { + this.rerunOfId(model.getRerunOfId()); + } if (model.wasPropertyExplicitlySet("retryIntervals")) { this.retryIntervals(model.getRetryIntervals()); } if (model.wasPropertyExplicitlySet("isManagedByAutonomousLinux")) { this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); } + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } return this; } } @@ -791,12 +863,16 @@ public String getMessage() { return message; } - /** The OCID of the parent work request, if there is any. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the parent work request, if there is any. + */ @com.fasterxml.jackson.annotation.JsonProperty("parentId") private final String parentId; /** - * The OCID of the parent work request, if there is any. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the parent work request, if there is any. * * @return the value */ @@ -804,12 +880,18 @@ public String getParentId() { return parentId; } - /** The list of OCIDs for the child work requests. */ + /** + * The list of + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * child work requests. + */ @com.fasterxml.jackson.annotation.JsonProperty("childrenId") private final java.util.List childrenId; /** - * The list of OCIDs for the child work requests. + * The list of + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the + * child work requests. * * @return the value */ @@ -1088,12 +1170,39 @@ public String getRetryOfId() { return retryOfId; } - /** Indicates whether this work request is managed by the Autonomous Linux service. */ + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the original work request that is being rerun. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rerunOfId") + private final String rerunOfId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the original work request that is being rerun. + * + * @return the value + */ + public String getRerunOfId() { + return rerunOfId; + } + + /** + * The amount of time in minutes to wait until retrying the work request. If set, the service + * will automatically retry a failed work request after the interval. For example, An interval + * set to [2,5,10]. If the initial execution of the work request fails, the service waits 2 + * minutes and then retries. If that fails, the service waits 5 minutes and then retries. If + * that fails, the service waits 10 minutes and then retries. + */ @com.fasterxml.jackson.annotation.JsonProperty("retryIntervals") private final java.util.List retryIntervals; /** - * Indicates whether this work request is managed by the Autonomous Linux service. + * The amount of time in minutes to wait until retrying the work request. If set, the service + * will automatically retry a failed work request after the interval. For example, An interval + * set to [2,5,10]. If the initial execution of the work request fails, the service waits 2 + * minutes and then retries. If that fails, the service waits 5 minutes and then retries. If + * that fails, the service waits 10 minutes and then retries. * * @return the value */ @@ -1114,6 +1223,23 @@ public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * The number of minutes the service waits for the reboot to complete. If the managed instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the managed instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + @Override public String toString() { return this.toString(true); @@ -1154,9 +1280,11 @@ public String toString(boolean includeByteArrayContents) { sb.append(", eventId=").append(String.valueOf(this.eventId)); sb.append(", contentChecksum=").append(String.valueOf(this.contentChecksum)); sb.append(", retryOfId=").append(String.valueOf(this.retryOfId)); + sb.append(", rerunOfId=").append(String.valueOf(this.rerunOfId)); sb.append(", retryIntervals=").append(String.valueOf(this.retryIntervals)); sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); sb.append(")"); return sb.toString(); } @@ -1196,9 +1324,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.eventId, other.eventId) && java.util.Objects.equals(this.contentChecksum, other.contentChecksum) && java.util.Objects.equals(this.retryOfId, other.retryOfId) + && java.util.Objects.equals(this.rerunOfId, other.rerunOfId) && java.util.Objects.equals(this.retryIntervals, other.retryIntervals) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) && super.equals(other); } @@ -1249,6 +1379,7 @@ public int hashCode() { (result * PRIME) + (this.contentChecksum == null ? 43 : this.contentChecksum.hashCode()); result = (result * PRIME) + (this.retryOfId == null ? 43 : this.retryOfId.hashCode()); + result = (result * PRIME) + (this.rerunOfId == null ? 43 : this.rerunOfId.hashCode()); result = (result * PRIME) + (this.retryIntervals == null ? 43 : this.retryIntervals.hashCode()); @@ -1257,6 +1388,11 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestError.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestError.java index 54b711bf53a..85f155542de 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestError.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestError.java @@ -33,14 +33,14 @@ 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.cloud.oracle.com/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 + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). * * @param code the value to set @@ -67,13 +67,13 @@ public Builder message(String message) { return this; } /** - * The time the error occured. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * The time the error occurred. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private java.util.Date timestamp; /** - * The time the error occured. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * The time the error occurred. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @param timestamp the value to set * @return this builder @@ -120,14 +120,14 @@ 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.cloud.oracle.com/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 + * A machine-usable code for the error that occurred. Error codes are listed on * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). * * @return the value @@ -149,12 +149,12 @@ public String getMessage() { return message; } - /** The time the error occured. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ + /** The time the error occurred. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ @com.fasterxml.jackson.annotation.JsonProperty("timestamp") private final java.util.Date timestamp; /** - * The time the error occured. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). + * The time the error occurred. (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). * * @return the value */ diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestErrorCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestErrorCollection.java index 4a038bc7a3e..ef0c00db604 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestErrorCollection.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestErrorCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Results of a work request error search. Contains both work request error items and other - * information, such as metadata.
+ * The set of work request errors returned for the {@link + * #listWorkRequestErrors(ListWorkRequestErrorsRequest) listWorkRequestErrors} operation.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestLogEntryCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestLogEntryCollection.java index 128cba3f38b..327ac23d6f7 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestLogEntryCollection.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestLogEntryCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Results of a work request log search. Contains both work request log items and other information, - * such as metadata.
+ * The set of work request logs returned for the {@link + * #listWorkRequestLogs(ListWorkRequestLogsRequest) listWorkRequestLogs} operation.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java index 5f82c68e7cd..e991b2e98a4 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestOperationType.java @@ -44,6 +44,7 @@ public enum WorkRequestOperationType implements com.oracle.bmc.http.internal.Bmc InstallOtherWindowsUpdates("INSTALL_OTHER_WINDOWS_UPDATES"), RemoveContent("REMOVE_CONTENT"), UnregisterManagedInstance("UNREGISTER_MANAGED_INSTANCE"), + Reboot("REBOOT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java index 8e39234e6eb..1e56cd4cf75 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummary.java @@ -36,7 +36,8 @@ public final class WorkRequestSummary "percentComplete", "timeCreated", "timeScheduled", - "isManagedByAutonomousLinux" + "isManagedByAutonomousLinux", + "rebootTimeoutInMins" }) public WorkRequestSummary( WorkRequestOperationType operationType, @@ -51,7 +52,8 @@ public WorkRequestSummary( Float percentComplete, java.util.Date timeCreated, java.util.Date timeScheduled, - Boolean isManagedByAutonomousLinux) { + Boolean isManagedByAutonomousLinux, + Integer rebootTimeoutInMins) { super(); this.operationType = operationType; this.status = status; @@ -66,6 +68,7 @@ public WorkRequestSummary( this.timeCreated = timeCreated; this.timeScheduled = timeScheduled; this.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + this.rebootTimeoutInMins = rebootTimeoutInMins; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -297,6 +300,25 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { this.__explicitlySet__.add("isManagedByAutonomousLinux"); return this; } + /** + * The number of minutes the service waits for the reboot to complete. If the managed + * instance doesn't reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the managed + * instance doesn't reboot within the timeout, the service marks the reboot job as failed. + * + * @param rebootTimeoutInMins the value to set + * @return this builder + */ + public Builder rebootTimeoutInMins(Integer rebootTimeoutInMins) { + this.rebootTimeoutInMins = rebootTimeoutInMins; + this.__explicitlySet__.add("rebootTimeoutInMins"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -316,7 +338,8 @@ public WorkRequestSummary build() { this.percentComplete, this.timeCreated, this.timeScheduled, - this.isManagedByAutonomousLinux); + this.isManagedByAutonomousLinux, + this.rebootTimeoutInMins); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -364,6 +387,9 @@ public Builder copy(WorkRequestSummary model) { if (model.wasPropertyExplicitlySet("isManagedByAutonomousLinux")) { this.isManagedByAutonomousLinux(model.getIsManagedByAutonomousLinux()); } + if (model.wasPropertyExplicitlySet("rebootTimeoutInMins")) { + this.rebootTimeoutInMins(model.getRebootTimeoutInMins()); + } return this; } } @@ -576,6 +602,23 @@ public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * The number of minutes the service waits for the reboot to complete. If the managed instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rebootTimeoutInMins") + private final Integer rebootTimeoutInMins; + + /** + * The number of minutes the service waits for the reboot to complete. If the managed instance + * doesn't reboot within the timeout, the service marks the reboot job as failed. + * + * @return the value + */ + public Integer getRebootTimeoutInMins() { + return rebootTimeoutInMins; + } + @Override public String toString() { return this.toString(true); @@ -605,6 +648,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeScheduled=").append(String.valueOf(this.timeScheduled)); sb.append(", isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(", rebootTimeoutInMins=").append(String.valueOf(this.rebootTimeoutInMins)); sb.append(")"); return sb.toString(); } @@ -633,6 +677,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeScheduled, other.timeScheduled) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.rebootTimeoutInMins, other.rebootTimeoutInMins) && super.equals(other); } @@ -665,6 +710,11 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = + (result * PRIME) + + (this.rebootTimeoutInMins == null + ? 43 + : this.rebootTimeoutInMins.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummaryCollection.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummaryCollection.java index 70e8e99b6f2..c67d1c3f922 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummaryCollection.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/model/WorkRequestSummaryCollection.java @@ -5,8 +5,8 @@ package com.oracle.bmc.osmanagementhub.model; /** - * Results of a work request search. Contains both work request items and other information, such as - * metadata.
+ * The set of work requests returned for the {@link #listWorkRequests(ListWorkRequestsRequest) + * listWorkRequests} operation.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AssociateManagedInstancesWithManagementStationRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AssociateManagedInstancesWithManagementStationRequest.java new file mode 100644 index 00000000000..8666686e41a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AssociateManagedInstancesWithManagementStationRequest.java @@ -0,0 +1,416 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * AssociateManagedInstancesWithManagementStationRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AssociateManagedInstancesWithManagementStationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station. + */ + private String managementStationId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the management station. + */ + public String getManagementStationId() { + return managementStationId; + } + /** + * The managed instances + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + */ + private com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails + associateManagedInstancesWithManagementStationDetails; + + /** + * The managed instances + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + */ + public com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails + getAssociateManagedInstancesWithManagementStationDetails() { + return associateManagedInstancesWithManagementStationDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails + getBody$() { + return associateManagedInstancesWithManagementStationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AssociateManagedInstancesWithManagementStationRequest, + com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station. + */ + private String managementStationId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the management station. + * + * @param managementStationId the value to set + * @return this builder instance + */ + public Builder managementStationId(String managementStationId) { + this.managementStationId = managementStationId; + return this; + } + + /** + * The managed instances + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + */ + private com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails + associateManagedInstancesWithManagementStationDetails = null; + + /** + * The managed instances + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * associate to the management station. + * + * @param associateManagedInstancesWithManagementStationDetails the value to set + * @return this builder instance + */ + public Builder associateManagedInstancesWithManagementStationDetails( + com.oracle.bmc.osmanagementhub.model + .AssociateManagedInstancesWithManagementStationDetails + associateManagedInstancesWithManagementStationDetails) { + this.associateManagedInstancesWithManagementStationDetails = + associateManagedInstancesWithManagementStationDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AssociateManagedInstancesWithManagementStationRequest o) { + managementStationId(o.getManagementStationId()); + associateManagedInstancesWithManagementStationDetails( + o.getAssociateManagedInstancesWithManagementStationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AssociateManagedInstancesWithManagementStationRequest as configured + * by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AssociateManagedInstancesWithManagementStationRequest + */ + public AssociateManagedInstancesWithManagementStationRequest + buildWithoutInvocationCallback() { + AssociateManagedInstancesWithManagementStationRequest request = + new AssociateManagedInstancesWithManagementStationRequest(); + request.managementStationId = managementStationId; + request.associateManagedInstancesWithManagementStationDetails = + associateManagedInstancesWithManagementStationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new AssociateManagedInstancesWithManagementStationRequest(managementStationId, + // associateManagedInstancesWithManagementStationDetails, opcRequestId, opcRetryToken, + // 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() + .managementStationId(managementStationId) + .associateManagedInstancesWithManagementStationDetails( + associateManagedInstancesWithManagementStationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",managementStationId=").append(String.valueOf(this.managementStationId)); + sb.append(",associateManagedInstancesWithManagementStationDetails=") + .append(String.valueOf(this.associateManagedInstancesWithManagementStationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 AssociateManagedInstancesWithManagementStationRequest)) { + return false; + } + + AssociateManagedInstancesWithManagementStationRequest other = + (AssociateManagedInstancesWithManagementStationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managementStationId, other.managementStationId) + && java.util.Objects.equals( + this.associateManagedInstancesWithManagementStationDetails, + other.associateManagedInstancesWithManagementStationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managementStationId == null + ? 43 + : this.managementStationId.hashCode()); + result = + (result * PRIME) + + (this.associateManagedInstancesWithManagementStationDetails == null + ? 43 + : this.associateManagedInstancesWithManagementStationDetails + .hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachLifecycleStageToProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachLifecycleStageToProfileRequest.java new file mode 100644 index 00000000000..7b80d216983 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachLifecycleStageToProfileRequest.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * AttachLifecycleStageToProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachLifecycleStageToProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The lifecycle stage + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails + attachLifecycleStageToProfileDetails; + + /** + * The lifecycle stage + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + public com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails + getAttachLifecycleStageToProfileDetails() { + return attachLifecycleStageToProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.AttachLifecycleStageToProfileDetails getBody$() { + return attachLifecycleStageToProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AttachLifecycleStageToProfileRequest, + com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The lifecycle stage + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails + attachLifecycleStageToProfileDetails = null; + + /** + * The lifecycle stage + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + * + * @param attachLifecycleStageToProfileDetails the value to set + * @return this builder instance + */ + public Builder attachLifecycleStageToProfileDetails( + com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails + attachLifecycleStageToProfileDetails) { + this.attachLifecycleStageToProfileDetails = attachLifecycleStageToProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AttachLifecycleStageToProfileRequest o) { + profileId(o.getProfileId()); + attachLifecycleStageToProfileDetails(o.getAttachLifecycleStageToProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AttachLifecycleStageToProfileRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AttachLifecycleStageToProfileRequest + */ + public AttachLifecycleStageToProfileRequest buildWithoutInvocationCallback() { + AttachLifecycleStageToProfileRequest request = + new AttachLifecycleStageToProfileRequest(); + request.profileId = profileId; + request.attachLifecycleStageToProfileDetails = attachLifecycleStageToProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new AttachLifecycleStageToProfileRequest(profileId, + // attachLifecycleStageToProfileDetails, opcRequestId, opcRetryToken, 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() + .profileId(profileId) + .attachLifecycleStageToProfileDetails(attachLifecycleStageToProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",attachLifecycleStageToProfileDetails=") + .append(String.valueOf(this.attachLifecycleStageToProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 AttachLifecycleStageToProfileRequest)) { + return false; + } + + AttachLifecycleStageToProfileRequest other = (AttachLifecycleStageToProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.attachLifecycleStageToProfileDetails, + other.attachLifecycleStageToProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.attachLifecycleStageToProfileDetails == null + ? 43 + : this.attachLifecycleStageToProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagedInstanceGroupToProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagedInstanceGroupToProfileRequest.java new file mode 100644 index 00000000000..281d47bb995 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagedInstanceGroupToProfileRequest.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * AttachManagedInstanceGroupToProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachManagedInstanceGroupToProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The managed instance group + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails + attachManagedInstanceGroupToProfileDetails; + + /** + * The managed instance group + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + public com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails + getAttachManagedInstanceGroupToProfileDetails() { + return attachManagedInstanceGroupToProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails + getBody$() { + return attachManagedInstanceGroupToProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AttachManagedInstanceGroupToProfileRequest, + com.oracle.bmc.osmanagementhub.model + .AttachManagedInstanceGroupToProfileDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The managed instance group + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails + attachManagedInstanceGroupToProfileDetails = null; + + /** + * The managed instance group + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + * + * @param attachManagedInstanceGroupToProfileDetails the value to set + * @return this builder instance + */ + public Builder attachManagedInstanceGroupToProfileDetails( + com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails + attachManagedInstanceGroupToProfileDetails) { + this.attachManagedInstanceGroupToProfileDetails = + attachManagedInstanceGroupToProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AttachManagedInstanceGroupToProfileRequest o) { + profileId(o.getProfileId()); + attachManagedInstanceGroupToProfileDetails( + o.getAttachManagedInstanceGroupToProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AttachManagedInstanceGroupToProfileRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AttachManagedInstanceGroupToProfileRequest + */ + public AttachManagedInstanceGroupToProfileRequest buildWithoutInvocationCallback() { + AttachManagedInstanceGroupToProfileRequest request = + new AttachManagedInstanceGroupToProfileRequest(); + request.profileId = profileId; + request.attachManagedInstanceGroupToProfileDetails = + attachManagedInstanceGroupToProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new AttachManagedInstanceGroupToProfileRequest(profileId, + // attachManagedInstanceGroupToProfileDetails, opcRequestId, opcRetryToken, 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() + .profileId(profileId) + .attachManagedInstanceGroupToProfileDetails( + attachManagedInstanceGroupToProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",attachManagedInstanceGroupToProfileDetails=") + .append(String.valueOf(this.attachManagedInstanceGroupToProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 AttachManagedInstanceGroupToProfileRequest)) { + return false; + } + + AttachManagedInstanceGroupToProfileRequest other = + (AttachManagedInstanceGroupToProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.attachManagedInstanceGroupToProfileDetails, + other.attachManagedInstanceGroupToProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.attachManagedInstanceGroupToProfileDetails == null + ? 43 + : this.attachManagedInstanceGroupToProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagementStationToProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagementStationToProfileRequest.java new file mode 100644 index 00000000000..530bf8da16f --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachManagementStationToProfileRequest.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * AttachManagementStationToProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachManagementStationToProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The management station + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails + attachManagementStationToProfileDetails; + + /** + * The management station + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to attach + * to the profile + */ + public com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails + getAttachManagementStationToProfileDetails() { + return attachManagementStationToProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.AttachManagementStationToProfileDetails getBody$() { + return attachManagementStationToProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AttachManagementStationToProfileRequest, + com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The management station + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails + attachManagementStationToProfileDetails = null; + + /** + * The management station + * [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + * + * @param attachManagementStationToProfileDetails the value to set + * @return this builder instance + */ + public Builder attachManagementStationToProfileDetails( + com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails + attachManagementStationToProfileDetails) { + this.attachManagementStationToProfileDetails = attachManagementStationToProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AttachManagementStationToProfileRequest o) { + profileId(o.getProfileId()); + attachManagementStationToProfileDetails(o.getAttachManagementStationToProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AttachManagementStationToProfileRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AttachManagementStationToProfileRequest + */ + public AttachManagementStationToProfileRequest buildWithoutInvocationCallback() { + AttachManagementStationToProfileRequest request = + new AttachManagementStationToProfileRequest(); + request.profileId = profileId; + request.attachManagementStationToProfileDetails = + attachManagementStationToProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new AttachManagementStationToProfileRequest(profileId, + // attachManagementStationToProfileDetails, opcRequestId, opcRetryToken, 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() + .profileId(profileId) + .attachManagementStationToProfileDetails(attachManagementStationToProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",attachManagementStationToProfileDetails=") + .append(String.valueOf(this.attachManagementStationToProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 AttachManagementStationToProfileRequest)) { + return false; + } + + AttachManagementStationToProfileRequest other = (AttachManagementStationToProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.attachManagementStationToProfileDetails, + other.attachManagementStationToProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.attachManagementStationToProfileDetails == null + ? 43 + : this.attachManagementStationToProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachSoftwareSourcesToProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachSoftwareSourcesToProfileRequest.java new file mode 100644 index 00000000000..77086df8587 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/AttachSoftwareSourcesToProfileRequest.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * AttachSoftwareSourcesToProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachSoftwareSourcesToProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails + attachSoftwareSourcesToProfileDetails; + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + public com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails + getAttachSoftwareSourcesToProfileDetails() { + return attachSoftwareSourcesToProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails getBody$() { + return attachSoftwareSourcesToProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + AttachSoftwareSourcesToProfileRequest, + com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + */ + private com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails + attachSoftwareSourcesToProfileDetails = null; + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * attach to the profile + * + * @param attachSoftwareSourcesToProfileDetails the value to set + * @return this builder instance + */ + public Builder attachSoftwareSourcesToProfileDetails( + com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails + attachSoftwareSourcesToProfileDetails) { + this.attachSoftwareSourcesToProfileDetails = attachSoftwareSourcesToProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(AttachSoftwareSourcesToProfileRequest o) { + profileId(o.getProfileId()); + attachSoftwareSourcesToProfileDetails(o.getAttachSoftwareSourcesToProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of AttachSoftwareSourcesToProfileRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of AttachSoftwareSourcesToProfileRequest + */ + public AttachSoftwareSourcesToProfileRequest buildWithoutInvocationCallback() { + AttachSoftwareSourcesToProfileRequest request = + new AttachSoftwareSourcesToProfileRequest(); + request.profileId = profileId; + request.attachSoftwareSourcesToProfileDetails = attachSoftwareSourcesToProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new AttachSoftwareSourcesToProfileRequest(profileId, + // attachSoftwareSourcesToProfileDetails, opcRequestId, opcRetryToken, 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() + .profileId(profileId) + .attachSoftwareSourcesToProfileDetails(attachSoftwareSourcesToProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",attachSoftwareSourcesToProfileDetails=") + .append(String.valueOf(this.attachSoftwareSourcesToProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 AttachSoftwareSourcesToProfileRequest)) { + return false; + } + + AttachSoftwareSourcesToProfileRequest other = (AttachSoftwareSourcesToProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.attachSoftwareSourcesToProfileDetails, + other.attachSoftwareSourcesToProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.attachSoftwareSourcesToProfileDetails == null + ? 43 + : this.attachSoftwareSourcesToProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteManagementStationRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteManagementStationRequest.java index 535f659baa2..52480debbcb 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteManagementStationRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DeleteManagementStationRequest.java @@ -45,6 +45,25 @@ public String getManagementStationId() { 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; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -105,6 +124,30 @@ public Builder ifMatch(String 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; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -155,6 +198,7 @@ public Builder retryConfiguration( public Builder copy(DeleteManagementStationRequest o) { managementStationId(o.getManagementStationId()); ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -192,9 +236,11 @@ public DeleteManagementStationRequest buildWithoutInvocationCallback() { DeleteManagementStationRequest request = new DeleteManagementStationRequest(); request.managementStationId = managementStationId; request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new DeleteManagementStationRequest(managementStationId, ifMatch, opcRequestId); + // new DeleteManagementStationRequest(managementStationId, ifMatch, opcRetryToken, + // opcRequestId); } } @@ -207,6 +253,7 @@ public Builder toBuilder() { return new Builder() .managementStationId(managementStationId) .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -226,6 +273,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",managementStationId=").append(String.valueOf(this.managementStationId)); 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(); @@ -244,6 +292,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.managementStationId, other.managementStationId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -257,6 +306,9 @@ public int hashCode() { ? 43 : this.managementStationId.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachSoftwareSourcesFromProfileRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachSoftwareSourcesFromProfileRequest.java new file mode 100644 index 00000000000..fc5e40205ff --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/DetachSoftwareSourcesFromProfileRequest.java @@ -0,0 +1,394 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * DetachSoftwareSourcesFromProfileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DetachSoftwareSourcesFromProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile + */ + private com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails + detachSoftwareSourcesFromProfileDetails; + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile + */ + public com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails + getDetachSoftwareSourcesFromProfileDetails() { + return detachSoftwareSourcesFromProfileDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails getBody$() { + return detachSoftwareSourcesFromProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DetachSoftwareSourcesFromProfileRequest, + com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile + */ + private com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails + detachSoftwareSourcesFromProfileDetails = null; + + /** + * The software source + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * detach from the profile + * + * @param detachSoftwareSourcesFromProfileDetails the value to set + * @return this builder instance + */ + public Builder detachSoftwareSourcesFromProfileDetails( + com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails + detachSoftwareSourcesFromProfileDetails) { + this.detachSoftwareSourcesFromProfileDetails = detachSoftwareSourcesFromProfileDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DetachSoftwareSourcesFromProfileRequest o) { + profileId(o.getProfileId()); + detachSoftwareSourcesFromProfileDetails(o.getDetachSoftwareSourcesFromProfileDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DetachSoftwareSourcesFromProfileRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DetachSoftwareSourcesFromProfileRequest + */ + public DetachSoftwareSourcesFromProfileRequest buildWithoutInvocationCallback() { + DetachSoftwareSourcesFromProfileRequest request = + new DetachSoftwareSourcesFromProfileRequest(); + request.profileId = profileId; + request.detachSoftwareSourcesFromProfileDetails = + detachSoftwareSourcesFromProfileDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DetachSoftwareSourcesFromProfileRequest(profileId, + // detachSoftwareSourcesFromProfileDetails, opcRequestId, opcRetryToken, 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() + .profileId(profileId) + .detachSoftwareSourcesFromProfileDetails(detachSoftwareSourcesFromProfileDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",detachSoftwareSourcesFromProfileDetails=") + .append(String.valueOf(this.detachSoftwareSourcesFromProfileDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 DetachSoftwareSourcesFromProfileRequest)) { + return false; + } + + DetachSoftwareSourcesFromProfileRequest other = (DetachSoftwareSourcesFromProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals( + this.detachSoftwareSourcesFromProfileDetails, + other.detachSoftwareSourcesFromProfileDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.detachSoftwareSourcesFromProfileDetails == null + ? 43 + : this.detachSoftwareSourcesFromProfileDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetProfileVersionRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetProfileVersionRequest.java new file mode 100644 index 00000000000..e6b27981144 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetProfileVersionRequest.java @@ -0,0 +1,241 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use GetProfileVersionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetProfileVersionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** The version of the registration profile. */ + private String profileVersion; + + /** The version of the registration profile. */ + public String getProfileVersion() { + return profileVersion; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetProfileVersionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** The version of the registration profile. */ + private String profileVersion = null; + + /** + * The version of the registration profile. + * + * @param profileVersion the value to set + * @return this builder instance + */ + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetProfileVersionRequest o) { + profileId(o.getProfileId()); + profileVersion(o.getProfileVersion()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetProfileVersionRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetProfileVersionRequest + */ + public GetProfileVersionRequest buildWithoutInvocationCallback() { + GetProfileVersionRequest request = new GetProfileVersionRequest(); + request.profileId = profileId; + request.profileVersion = profileVersion; + request.opcRequestId = opcRequestId; + return request; + // new GetProfileVersionRequest(profileId, profileVersion, 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() + .profileId(profileId) + .profileVersion(profileVersion) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",profileVersion=").append(String.valueOf(this.profileVersion)); + 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 GetProfileVersionRequest)) { + return false; + } + + GetProfileVersionRequest other = (GetProfileVersionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals(this.profileVersion, other.profileVersion) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.profileId == null ? 43 : this.profileId.hashCode()); + result = + (result * PRIME) + + (this.profileVersion == null ? 43 : this.profileVersion.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetSoftwareSourceManifestRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetSoftwareSourceManifestRequest.java new file mode 100644 index 00000000000..28e470ceff5 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/GetSoftwareSourceManifestRequest.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * GetSoftwareSourceManifestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetSoftwareSourceManifestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetSoftwareSourceManifestRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetSoftwareSourceManifestRequest o) { + softwareSourceId(o.getSoftwareSourceId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetSoftwareSourceManifestRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetSoftwareSourceManifestRequest + */ + public GetSoftwareSourceManifestRequest buildWithoutInvocationCallback() { + GetSoftwareSourceManifestRequest request = new GetSoftwareSourceManifestRequest(); + request.softwareSourceId = softwareSourceId; + request.opcRequestId = opcRequestId; + return request; + // new GetSoftwareSourceManifestRequest(softwareSourceId, 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().softwareSourceId(softwareSourceId).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(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + 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 GetSoftwareSourceManifestRequest)) { + return false; + } + + GetSoftwareSourceManifestRequest other = (GetSoftwareSourceManifestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwarePackagesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwarePackagesRequest.java new file mode 100644 index 00000000000..633204786d6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListAvailableSoftwarePackagesRequest.java @@ -0,0 +1,512 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * ListAvailableSoftwarePackagesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAvailableSoftwarePackagesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** A filter to return resources that match the given user-friendly name. */ + private String displayName; + + /** A filter to return resources that match the given user-friendly name. */ + public String getDisplayName() { + return displayName; + } + /** A filter to return resources that may partially match the given display name. */ + private String displayNameContains; + + /** A filter to return resources that may partially match the given display name. */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * Indicates whether to list only the latest versions of packages, module streams, and stream + * profiles. + */ + private Boolean isLatest; + + /** + * Indicates whether to list only the latest versions of packages, module streams, and stream + * profiles. + */ + public Boolean getIsLatest() { + return isLatest; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + 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. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAvailableSoftwarePackagesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** A filter to return resources that match the given user-friendly name. */ + private String displayName = null; + + /** + * A filter to return resources that match the given user-friendly name. + * + * @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 may partially match the given display name. */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * Indicates whether to list only the latest versions of packages, module streams, and + * stream profiles. + */ + private Boolean isLatest = null; + + /** + * Indicates whether to list only the latest versions of packages, module streams, and + * stream profiles. + * + * @param isLatest the value to set + * @return this builder instance + */ + public Builder isLatest(Boolean isLatest) { + this.isLatest = isLatest; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see [List + * Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + * + * @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.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListAvailableSoftwarePackagesRequest o) { + softwareSourceId(o.getSoftwareSourceId()); + displayName(o.getDisplayName()); + displayNameContains(o.getDisplayNameContains()); + isLatest(o.getIsLatest()); + 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 ListAvailableSoftwarePackagesRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAvailableSoftwarePackagesRequest + */ + public ListAvailableSoftwarePackagesRequest buildWithoutInvocationCallback() { + ListAvailableSoftwarePackagesRequest request = + new ListAvailableSoftwarePackagesRequest(); + request.softwareSourceId = softwareSourceId; + request.displayName = displayName; + request.displayNameContains = displayNameContains; + request.isLatest = isLatest; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListAvailableSoftwarePackagesRequest(softwareSourceId, displayName, + // displayNameContains, isLatest, 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() + .softwareSourceId(softwareSourceId) + .displayName(displayName) + .displayNameContains(displayNameContains) + .isLatest(isLatest) + .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(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + sb.append(",isLatest=").append(String.valueOf(this.isLatest)); + 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 ListAvailableSoftwarePackagesRequest)) { + return false; + } + + ListAvailableSoftwarePackagesRequest other = (ListAvailableSoftwarePackagesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && java.util.Objects.equals(this.isLatest, other.isLatest) + && 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.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.hashCode()); + result = (result * PRIME) + (this.isLatest == null ? 43 : this.isLatest.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListEntitlementsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListEntitlementsRequest.java index 1bfb57738f9..dfcd2435f4b 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListEntitlementsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListEntitlementsRequest.java @@ -28,10 +28,10 @@ public class ListEntitlementsRequest extends com.oracle.bmc.requests.BmcRequest< public String getCompartmentId() { return compartmentId; } - /** A filter to return entitlements that match the given CSI. */ + /** A filter to return entitlements that match the given customer support identifier (CSI). */ private String csi; - /** A filter to return entitlements that match the given CSI. */ + /** A filter to return entitlements that match the given customer support identifier (CSI). */ public String getCsi() { return csi; } @@ -168,11 +168,13 @@ public Builder compartmentId(String compartmentId) { return this; } - /** A filter to return entitlements that match the given CSI. */ + /** + * A filter to return entitlements that match the given customer support identifier (CSI). + */ private String csi = null; /** - * A filter to return entitlements that match the given CSI. + * A filter to return entitlements that match the given customer support identifier (CSI). * * @param csi the value to set * @return this builder instance diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesRequest.java index 7d5e79909f4..fc4098be900 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagedInstancesRequest.java @@ -232,6 +232,50 @@ public Boolean getIsProfileAttached() { public Boolean getIsManagedByAutonomousLinux() { return isManagedByAutonomousLinux; } + /** + * A filter to return only managed instances with the specified version of osmh-agent running. + */ + private String agentVersion; + + /** + * A filter to return only managed instances with the specified version of osmh-agent running. + */ + public String getAgentVersion() { + return agentVersion; + } + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStation; + + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public java.util.List getManagementStation() { + return managementStation; + } + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStationNotEqualTo; + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public java.util.List getManagementStationNotEqualTo() { + return managementStationNotEqualTo; + } + /** A filter to return only managed instances that require a reboot to install updates. */ + private Boolean isRebootRequired; + + /** A filter to return only managed instances that require a reboot to install updates. */ + public Boolean getIsRebootRequired() { + return isRebootRequired; + } /** * 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 @@ -826,6 +870,99 @@ public Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux) { return this; } + /** + * A filter to return only managed instances with the specified version of osmh-agent + * running. + */ + private String agentVersion = null; + + /** + * A filter to return only managed instances with the specified version of osmh-agent + * running. + * + * @param agentVersion the value to set + * @return this builder instance + */ + public Builder agentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStation = null; + + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param managementStation the value to set + * @return this builder instance + */ + public Builder managementStation(java.util.List managementStation) { + this.managementStation = managementStation; + return this; + } + + /** + * Singular setter. A filter to return resources that are associated with the specified + * management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder managementStation(String singularValue) { + return this.managementStation(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStationNotEqualTo = null; + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param managementStationNotEqualTo the value to set + * @return this builder instance + */ + public Builder managementStationNotEqualTo( + java.util.List managementStationNotEqualTo) { + this.managementStationNotEqualTo = managementStationNotEqualTo; + return this; + } + + /** + * Singular setter. A filter to return resources that aren't associated with the specified + * management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder managementStationNotEqualTo(String singularValue) { + return this.managementStationNotEqualTo(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only managed instances that require a reboot to install updates. */ + private Boolean isRebootRequired = null; + + /** + * A filter to return only managed instances that require a reboot to install updates. + * + * @param isRebootRequired the value to set + * @return this builder instance + */ + public Builder isRebootRequired(Boolean isRebootRequired) { + this.isRebootRequired = isRebootRequired; + 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 @@ -977,6 +1114,10 @@ public Builder copy(ListManagedInstancesRequest o) { profileNotEqualTo(o.getProfileNotEqualTo()); isProfileAttached(o.getIsProfileAttached()); isManagedByAutonomousLinux(o.getIsManagedByAutonomousLinux()); + agentVersion(o.getAgentVersion()); + managementStation(o.getManagementStation()); + managementStationNotEqualTo(o.getManagementStationNotEqualTo()); + isRebootRequired(o.getIsRebootRequired()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -1039,6 +1180,10 @@ public ListManagedInstancesRequest buildWithoutInvocationCallback() { request.profileNotEqualTo = profileNotEqualTo; request.isProfileAttached = isProfileAttached; request.isManagedByAutonomousLinux = isManagedByAutonomousLinux; + request.agentVersion = agentVersion; + request.managementStation = managementStation; + request.managementStationNotEqualTo = managementStationNotEqualTo; + request.isRebootRequired = isRebootRequired; request.limit = limit; request.page = page; request.sortOrder = sortOrder; @@ -1050,8 +1195,9 @@ public ListManagedInstancesRequest buildWithoutInvocationCallback() { // groupNotEqualTo, lifecycleStage, lifecycleStageNotEqualTo, // isAttachedToGroupOrLifecycleStage, softwareSourceId, advisoryName, // lifecycleEnvironment, lifecycleEnvironmentNotEqualTo, location, locationNotEqualTo, - // profile, profileNotEqualTo, isProfileAttached, isManagedByAutonomousLinux, limit, - // page, sortOrder, sortBy, opcRequestId); + // profile, profileNotEqualTo, isProfileAttached, isManagedByAutonomousLinux, + // agentVersion, managementStation, managementStationNotEqualTo, isRebootRequired, + // limit, page, sortOrder, sortBy, opcRequestId); } } @@ -1085,6 +1231,10 @@ public Builder toBuilder() { .profileNotEqualTo(profileNotEqualTo) .isProfileAttached(isProfileAttached) .isManagedByAutonomousLinux(isManagedByAutonomousLinux) + .agentVersion(agentVersion) + .managementStation(managementStation) + .managementStationNotEqualTo(managementStationNotEqualTo) + .isRebootRequired(isRebootRequired) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -1133,6 +1283,11 @@ public String toString() { sb.append(",isProfileAttached=").append(String.valueOf(this.isProfileAttached)); sb.append(",isManagedByAutonomousLinux=") .append(String.valueOf(this.isManagedByAutonomousLinux)); + sb.append(",agentVersion=").append(String.valueOf(this.agentVersion)); + sb.append(",managementStation=").append(String.valueOf(this.managementStation)); + sb.append(",managementStationNotEqualTo=") + .append(String.valueOf(this.managementStationNotEqualTo)); + sb.append(",isRebootRequired=").append(String.valueOf(this.isRebootRequired)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -1181,6 +1336,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isProfileAttached, other.isProfileAttached) && java.util.Objects.equals( this.isManagedByAutonomousLinux, other.isManagedByAutonomousLinux) + && java.util.Objects.equals(this.agentVersion, other.agentVersion) + && java.util.Objects.equals(this.managementStation, other.managementStation) + && java.util.Objects.equals( + this.managementStationNotEqualTo, other.managementStationNotEqualTo) + && java.util.Objects.equals(this.isRebootRequired, other.isRebootRequired) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -1261,6 +1421,18 @@ public int hashCode() { + (this.isManagedByAutonomousLinux == null ? 43 : this.isManagedByAutonomousLinux.hashCode()); + result = (result * PRIME) + (this.agentVersion == null ? 43 : this.agentVersion.hashCode()); + result = + (result * PRIME) + + (this.managementStation == null ? 43 : this.managementStation.hashCode()); + result = + (result * PRIME) + + (this.managementStationNotEqualTo == null + ? 43 + : this.managementStationNotEqualTo.hashCode()); + result = + (result * PRIME) + + (this.isRebootRequired == null ? 43 : this.isRebootRequired.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()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java index 2c3c9ada7db..6d1a94d9ea7 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListManagementStationsRequest.java @@ -101,6 +101,23 @@ public Integer getLimit() { public String getPage() { return page; } + /** A filter to return only resources whose location matches the given value. */ + private java.util.List location; + + /** A filter to return only resources whose location matches the given value. */ + public java.util.List + getLocation() { + return location; + } + /** A filter to return only resources whose location does not match the given value. */ + private java.util.List + locationNotEqualTo; + + /** A filter to return only resources whose location does not match the given value. */ + public java.util.List + getLocationNotEqualTo() { + return locationNotEqualTo; + } /** The sort order to use, either 'ASC' or 'DESC'. */ private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; @@ -327,6 +344,62 @@ public Builder page(String page) { return this; } + /** A filter to return only resources whose location matches the given value. */ + private java.util.List + location = null; + + /** + * A filter to return only resources whose location matches the given value. + * + * @param location the value to set + * @return this builder instance + */ + public Builder location( + java.util.List + location) { + this.location = location; + return this; + } + + /** + * Singular setter. A filter to return only resources whose location matches the given + * value. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder location(ManagedInstanceLocation singularValue) { + return this.location(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return only resources whose location does not match the given value. */ + private java.util.List + locationNotEqualTo = null; + + /** + * A filter to return only resources whose location does not match the given value. + * + * @param locationNotEqualTo the value to set + * @return this builder instance + */ + public Builder locationNotEqualTo( + java.util.List + locationNotEqualTo) { + this.locationNotEqualTo = locationNotEqualTo; + return this; + } + + /** + * Singular setter. A filter to return only resources whose location does not match the + * given value. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder locationNotEqualTo(ManagedInstanceLocation singularValue) { + return this.locationNotEqualTo(java.util.Arrays.asList(singularValue)); + } + /** The sort order to use, either 'ASC' or 'DESC'. */ private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder = null; @@ -436,6 +509,8 @@ public Builder copy(ListManagementStationsRequest o) { managedInstanceId(o.getManagedInstanceId()); limit(o.getLimit()); page(o.getPage()); + location(o.getLocation()); + locationNotEqualTo(o.getLocationNotEqualTo()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); @@ -481,13 +556,16 @@ public ListManagementStationsRequest buildWithoutInvocationCallback() { request.managedInstanceId = managedInstanceId; request.limit = limit; request.page = page; + request.location = location; + request.locationNotEqualTo = locationNotEqualTo; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; request.id = id; return request; // new ListManagementStationsRequest(compartmentId, displayName, displayNameContains, - // lifecycleState, managedInstanceId, limit, page, sortOrder, sortBy, opcRequestId, id); + // lifecycleState, managedInstanceId, limit, page, location, locationNotEqualTo, + // sortOrder, sortBy, opcRequestId, id); } } @@ -505,6 +583,8 @@ public Builder toBuilder() { .managedInstanceId(managedInstanceId) .limit(limit) .page(page) + .location(location) + .locationNotEqualTo(locationNotEqualTo) .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) @@ -532,6 +612,8 @@ public String toString() { sb.append(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",location=").append(String.valueOf(this.location)); + sb.append(",locationNotEqualTo=").append(String.valueOf(this.locationNotEqualTo)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -558,6 +640,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.locationNotEqualTo, other.locationNotEqualTo) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) @@ -585,6 +669,12 @@ public int hashCode() { + (this.managedInstanceId == null ? 43 : this.managedInstanceId.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.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.locationNotEqualTo == null + ? 43 + : this.locationNotEqualTo.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfileAvailableSoftwareSourcesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfileAvailableSoftwareSourcesRequest.java new file mode 100644 index 00000000000..cfe4746ffb6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfileAvailableSoftwareSourcesRequest.java @@ -0,0 +1,525 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * ListProfileAvailableSoftwareSourcesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListProfileAvailableSoftwareSourcesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + private String profileId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the registration profile. + */ + public String getProfileId() { + return profileId; + } + /** A filter to return resources that match the given display names. */ + private java.util.List displayName; + + /** A filter to return resources that match the given display names. */ + public java.util.List getDisplayName() { + return displayName; + } + /** A filter to return resources that may partially match the given display name. */ + private String displayNameContains; + + /** A filter to return resources that may partially match the given display name. */ + public String getDisplayNameContains() { + return displayNameContains; + } + /** + * The OCID of the compartment that contains the resources to list. This filter returns only + * resources contained within the specified compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only + * resources contained within the specified compartment. + */ + 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.cloud.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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + public String getPage() { + return page; + } + /** The sort order to use, either 'ASC' or 'DESC'. */ + private com.oracle.bmc.osmanagementhub.model.SortOrder sortOrder; + + /** The sort order to use, either 'ASC' or 'DESC'. */ + public com.oracle.bmc.osmanagementhub.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for displayName is ascending. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + 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. Only one sort order may be provided. Default order for timeCreated is + * descending. Default order for 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListProfileAvailableSoftwareSourcesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + */ + private String profileId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the registration profile. + * + * @param profileId the value to set + * @return this builder instance + */ + public Builder profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** A filter to return resources that match the given display names. */ + private java.util.List displayName = null; + + /** + * A filter to return resources that match the given display names. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(java.util.List displayName) { + this.displayName = displayName; + return this; + } + + /** + * Singular setter. A filter to return resources that match the given display names. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder displayName(String singularValue) { + return this.displayName(java.util.Arrays.asList(singularValue)); + } + + /** A filter to return resources that may partially match the given display name. */ + private String displayNameContains = null; + + /** + * A filter to return resources that may partially match the given display name. + * + * @param displayNameContains the value to set + * @return this builder instance + */ + public Builder displayNameContains(String displayNameContains) { + this.displayNameContains = displayNameContains; + return this; + } + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only + * resources contained within the specified compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment that contains the resources to list. This filter returns only + * resources contained within the specified compartment. + * + * @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.cloud.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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + */ + 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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + *

Example: {@code 3} + * + * @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.osmanagementhub.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.osmanagementhub.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated + * is descending. Default order for displayName is ascending. + * + * @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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListProfileAvailableSoftwareSourcesRequest o) { + profileId(o.getProfileId()); + displayName(o.getDisplayName()); + displayNameContains(o.getDisplayNameContains()); + compartmentId(o.getCompartmentId()); + 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 ListProfileAvailableSoftwareSourcesRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListProfileAvailableSoftwareSourcesRequest + */ + public ListProfileAvailableSoftwareSourcesRequest buildWithoutInvocationCallback() { + ListProfileAvailableSoftwareSourcesRequest request = + new ListProfileAvailableSoftwareSourcesRequest(); + request.profileId = profileId; + request.displayName = displayName; + request.displayNameContains = displayNameContains; + request.compartmentId = compartmentId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListProfileAvailableSoftwareSourcesRequest(profileId, displayName, + // displayNameContains, compartmentId, 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() + .profileId(profileId) + .displayName(displayName) + .displayNameContains(displayNameContains) + .compartmentId(compartmentId) + .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(",profileId=").append(String.valueOf(this.profileId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); + 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(",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 ListProfileAvailableSoftwareSourcesRequest)) { + return false; + } + + ListProfileAvailableSoftwareSourcesRequest other = + (ListProfileAvailableSoftwareSourcesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.profileId, other.profileId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) + && 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.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.profileId == null ? 43 : this.profileId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.displayNameContains == null + ? 43 + : this.displayNameContains.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.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfilesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfilesRequest.java index e58477410a2..de660b862d7 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfilesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListProfilesRequest.java @@ -83,10 +83,10 @@ public com.oracle.bmc.osmanagementhub.model.ArchType getArchType() { getRegistrationType() { return registrationType; } - /** A boolean variable that is used to list only the default profile resources. */ + /** A filter to return only default profiles. */ private Boolean isDefaultProfile; - /** A boolean variable that is used to list only the default profile resources. */ + /** A filter to return only default profiles. */ public Boolean getIsDefaultProfile() { return isDefaultProfile; } @@ -97,6 +97,39 @@ public Boolean getIsDefaultProfile() { public Boolean getIsServiceProvidedProfile() { return isServiceProvidedProfile; } + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStation; + + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public java.util.List getManagementStation() { + return managementStation; + } + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStationNotEqualTo; + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public java.util.List getManagementStationNotEqualTo() { + return managementStationNotEqualTo; + } + /** The version of the registration profile. */ + private String profileVersion; + + /** The version of the registration profile. */ + public String getProfileVersion() { + return profileVersion; + } /** A filter to return only resources that match the given vendor name. */ private com.oracle.bmc.osmanagementhub.model.VendorName vendorName; @@ -382,11 +415,11 @@ public Builder registrationType( return this.registrationType(java.util.Arrays.asList(singularValue)); } - /** A boolean variable that is used to list only the default profile resources. */ + /** A filter to return only default profiles. */ private Boolean isDefaultProfile = null; /** - * A boolean variable that is used to list only the default profile resources. + * A filter to return only default profiles. * * @param isDefaultProfile the value to set * @return this builder instance @@ -410,6 +443,81 @@ public Builder isServiceProvidedProfile(Boolean isServiceProvidedProfile) { return this; } + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStation = null; + + /** + * A filter to return resources that are associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param managementStation the value to set + * @return this builder instance + */ + public Builder managementStation(java.util.List managementStation) { + this.managementStation = managementStation; + return this; + } + + /** + * Singular setter. A filter to return resources that are associated with the specified + * management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder managementStation(String singularValue) { + return this.managementStation(java.util.Arrays.asList(singularValue)); + } + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private java.util.List managementStationNotEqualTo = null; + + /** + * A filter to return resources that aren't associated with the specified management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param managementStationNotEqualTo the value to set + * @return this builder instance + */ + public Builder managementStationNotEqualTo( + java.util.List managementStationNotEqualTo) { + this.managementStationNotEqualTo = managementStationNotEqualTo; + return this; + } + + /** + * Singular setter. A filter to return resources that aren't associated with the specified + * management station + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder managementStationNotEqualTo(String singularValue) { + return this.managementStationNotEqualTo(java.util.Arrays.asList(singularValue)); + } + + /** The version of the registration profile. */ + private String profileVersion = null; + + /** + * The version of the registration profile. + * + * @param profileVersion the value to set + * @return this builder instance + */ + public Builder profileVersion(String profileVersion) { + this.profileVersion = profileVersion; + return this; + } + /** A filter to return only resources that match the given vendor name. */ private com.oracle.bmc.osmanagementhub.model.VendorName vendorName = null; @@ -577,6 +685,9 @@ public Builder copy(ListProfilesRequest o) { registrationType(o.getRegistrationType()); isDefaultProfile(o.getIsDefaultProfile()); isServiceProvidedProfile(o.getIsServiceProvidedProfile()); + managementStation(o.getManagementStation()); + managementStationNotEqualTo(o.getManagementStationNotEqualTo()); + profileVersion(o.getProfileVersion()); vendorName(o.getVendorName()); limit(o.getLimit()); page(o.getPage()); @@ -628,6 +739,9 @@ public ListProfilesRequest buildWithoutInvocationCallback() { request.registrationType = registrationType; request.isDefaultProfile = isDefaultProfile; request.isServiceProvidedProfile = isServiceProvidedProfile; + request.managementStation = managementStation; + request.managementStationNotEqualTo = managementStationNotEqualTo; + request.profileVersion = profileVersion; request.vendorName = vendorName; request.limit = limit; request.page = page; @@ -638,7 +752,8 @@ public ListProfilesRequest buildWithoutInvocationCallback() { return request; // new ListProfilesRequest(compartmentId, displayName, displayNameContains, profileType, // profileId, osFamily, archType, registrationType, isDefaultProfile, - // isServiceProvidedProfile, vendorName, limit, page, lifecycleState, sortOrder, sortBy, + // isServiceProvidedProfile, managementStation, managementStationNotEqualTo, + // profileVersion, vendorName, limit, page, lifecycleState, sortOrder, sortBy, // opcRequestId); } } @@ -660,6 +775,9 @@ public Builder toBuilder() { .registrationType(registrationType) .isDefaultProfile(isDefaultProfile) .isServiceProvidedProfile(isServiceProvidedProfile) + .managementStation(managementStation) + .managementStationNotEqualTo(managementStationNotEqualTo) + .profileVersion(profileVersion) .vendorName(vendorName) .limit(limit) .page(page) @@ -694,6 +812,10 @@ public String toString() { sb.append(",isDefaultProfile=").append(String.valueOf(this.isDefaultProfile)); sb.append(",isServiceProvidedProfile=") .append(String.valueOf(this.isServiceProvidedProfile)); + sb.append(",managementStation=").append(String.valueOf(this.managementStation)); + sb.append(",managementStationNotEqualTo=") + .append(String.valueOf(this.managementStationNotEqualTo)); + sb.append(",profileVersion=").append(String.valueOf(this.profileVersion)); sb.append(",vendorName=").append(String.valueOf(this.vendorName)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -727,6 +849,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isDefaultProfile, other.isDefaultProfile) && java.util.Objects.equals( this.isServiceProvidedProfile, other.isServiceProvidedProfile) + && java.util.Objects.equals(this.managementStation, other.managementStation) + && java.util.Objects.equals( + this.managementStationNotEqualTo, other.managementStationNotEqualTo) + && java.util.Objects.equals(this.profileVersion, other.profileVersion) && java.util.Objects.equals(this.vendorName, other.vendorName) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -764,6 +890,17 @@ public int hashCode() { + (this.isServiceProvidedProfile == null ? 43 : this.isServiceProvidedProfile.hashCode()); + result = + (result * PRIME) + + (this.managementStation == null ? 43 : this.managementStation.hashCode()); + result = + (result * PRIME) + + (this.managementStationNotEqualTo == null + ? 43 + : this.managementStationNotEqualTo.hashCode()); + result = + (result * PRIME) + + (this.profileVersion == null ? 43 : this.profileVersion.hashCode()); result = (result * PRIME) + (this.vendorName == null ? 43 : this.vendorName.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwarePackageSoftwareSourcesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwarePackageSoftwareSourcesRequest.java index e7530664177..07cff8b0b07 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwarePackageSoftwareSourcesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwarePackageSoftwareSourcesRequest.java @@ -60,29 +60,29 @@ public java.util.List getOsFamily public java.util.List getArchType() { return archType; } - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ private java.util.List availability; - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ public java.util.List getAvailability() { return availability; } - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ private java.util.List availabilityAtOci; - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ public java.util.List getAvailabilityAtOci() { return availabilityAtOci; } /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ private java.util.List availabilityAnywhere; /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ public java.util.List @@ -342,12 +342,12 @@ public Builder archType(ArchType singularValue) { return this.archType(java.util.Arrays.asList(singularValue)); } - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ private java.util.List availability = null; /** - * The availabilities of the software source in a non-OCI environment for a tenancy. + * The availability of the software source in a non-OCI environment for a tenancy. * * @param availability the value to set * @return this builder instance @@ -359,7 +359,7 @@ public Builder availability( } /** - * Singular setter. The availabilities of the software source in a non-OCI environment for a + * Singular setter. The availability of the software source in a non-OCI environment for a * tenancy. * * @param singularValue the singular value to set @@ -369,12 +369,12 @@ public Builder availability(Availability singularValue) { return this.availability(java.util.Arrays.asList(singularValue)); } - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ private java.util.List availabilityAtOci = null; /** - * The availabilities of the software source in an OCI environment for a tenancy. + * The availability of the software source in an OCI environment for a tenancy. * * @param availabilityAtOci the value to set * @return this builder instance @@ -387,7 +387,7 @@ public Builder availabilityAtOci( } /** - * Singular setter. The availabilities of the software source in an OCI environment for a + * Singular setter. The availability of the software source in an OCI environment for a * tenancy. * * @param singularValue the singular value to set @@ -398,14 +398,14 @@ public Builder availabilityAtOci(Availability singularValue) { } /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ private java.util.List availabilityAnywhere = null; /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. * * @param availabilityAnywhere the value to set @@ -419,7 +419,7 @@ public Builder availabilityAnywhere( } /** - * Singular setter. The availabilities of the software source. Use this query parameter to + * Singular setter. The availability of the software source. Use this query parameter to * filter across availabilities in different environments. * * @param singularValue the singular value to set diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwareSourcesRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwareSourcesRequest.java index ecececdcdc1..8e4811df552 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwareSourcesRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListSoftwareSourcesRequest.java @@ -69,29 +69,29 @@ public java.util.List getOsFamily public java.util.List getArchType() { return archType; } - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ private java.util.List availability; - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ public java.util.List getAvailability() { return availability; } - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ private java.util.List availabilityAtOci; - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ public java.util.List getAvailabilityAtOci() { return availabilityAtOci; } /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ private java.util.List availabilityAnywhere; /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ public java.util.List @@ -105,6 +105,13 @@ public java.util.List getAvai public Boolean getIsMandatoryForAutonomousLinux() { return isMandatoryForAutonomousLinux; } + /** A filter to return software sources which can be synced to a management station. */ + private Boolean isMirrorSyncAllowed; + + /** A filter to return software sources which can be synced to a management station. */ + public Boolean getIsMirrorSyncAllowed() { + return isMirrorSyncAllowed; + } /** A filter to return resources that match the given user-friendly name. */ private String displayName; @@ -381,12 +388,12 @@ public Builder archType(ArchType singularValue) { return this.archType(java.util.Arrays.asList(singularValue)); } - /** The availabilities of the software source in a non-OCI environment for a tenancy. */ + /** The availability of the software source in a non-OCI environment for a tenancy. */ private java.util.List availability = null; /** - * The availabilities of the software source in a non-OCI environment for a tenancy. + * The availability of the software source in a non-OCI environment for a tenancy. * * @param availability the value to set * @return this builder instance @@ -398,7 +405,7 @@ public Builder availability( } /** - * Singular setter. The availabilities of the software source in a non-OCI environment for a + * Singular setter. The availability of the software source in a non-OCI environment for a * tenancy. * * @param singularValue the singular value to set @@ -408,12 +415,12 @@ public Builder availability(Availability singularValue) { return this.availability(java.util.Arrays.asList(singularValue)); } - /** The availabilities of the software source in an OCI environment for a tenancy. */ + /** The availability of the software source in an OCI environment for a tenancy. */ private java.util.List availabilityAtOci = null; /** - * The availabilities of the software source in an OCI environment for a tenancy. + * The availability of the software source in an OCI environment for a tenancy. * * @param availabilityAtOci the value to set * @return this builder instance @@ -426,7 +433,7 @@ public Builder availabilityAtOci( } /** - * Singular setter. The availabilities of the software source in an OCI environment for a + * Singular setter. The availability of the software source in an OCI environment for a * tenancy. * * @param singularValue the singular value to set @@ -437,14 +444,14 @@ public Builder availabilityAtOci(Availability singularValue) { } /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. */ private java.util.List availabilityAnywhere = null; /** - * The availabilities of the software source. Use this query parameter to filter across + * The availability of the software source. Use this query parameter to filter across * availabilities in different environments. * * @param availabilityAnywhere the value to set @@ -458,7 +465,7 @@ public Builder availabilityAnywhere( } /** - * Singular setter. The availabilities of the software source. Use this query parameter to + * Singular setter. The availability of the software source. Use this query parameter to * filter across availabilities in different environments. * * @param singularValue the singular value to set @@ -482,6 +489,20 @@ public Builder isMandatoryForAutonomousLinux(Boolean isMandatoryForAutonomousLin return this; } + /** A filter to return software sources which can be synced to a management station. */ + private Boolean isMirrorSyncAllowed = null; + + /** + * A filter to return software sources which can be synced to a management station. + * + * @param isMirrorSyncAllowed the value to set + * @return this builder instance + */ + public Builder isMirrorSyncAllowed(Boolean isMirrorSyncAllowed) { + this.isMirrorSyncAllowed = isMirrorSyncAllowed; + return this; + } + /** A filter to return resources that match the given user-friendly name. */ private String displayName = null; @@ -702,6 +723,7 @@ public Builder copy(ListSoftwareSourcesRequest o) { availabilityAtOci(o.getAvailabilityAtOci()); availabilityAnywhere(o.getAvailabilityAnywhere()); isMandatoryForAutonomousLinux(o.getIsMandatoryForAutonomousLinux()); + isMirrorSyncAllowed(o.getIsMirrorSyncAllowed()); displayName(o.getDisplayName()); displayNameContains(o.getDisplayNameContains()); displayNameNotEqualTo(o.getDisplayNameNotEqualTo()); @@ -755,6 +777,7 @@ public ListSoftwareSourcesRequest buildWithoutInvocationCallback() { request.availabilityAtOci = availabilityAtOci; request.availabilityAnywhere = availabilityAnywhere; request.isMandatoryForAutonomousLinux = isMandatoryForAutonomousLinux; + request.isMirrorSyncAllowed = isMirrorSyncAllowed; request.displayName = displayName; request.displayNameContains = displayNameContains; request.displayNameNotEqualTo = displayNameNotEqualTo; @@ -767,9 +790,9 @@ public ListSoftwareSourcesRequest buildWithoutInvocationCallback() { return request; // new ListSoftwareSourcesRequest(compartmentId, softwareSourceId, softwareSourceType, // vendorName, osFamily, archType, availability, availabilityAtOci, - // availabilityAnywhere, isMandatoryForAutonomousLinux, displayName, - // displayNameContains, displayNameNotEqualTo, limit, page, sortOrder, sortBy, - // lifecycleState, opcRequestId); + // availabilityAnywhere, isMandatoryForAutonomousLinux, isMirrorSyncAllowed, + // displayName, displayNameContains, displayNameNotEqualTo, limit, page, sortOrder, + // sortBy, lifecycleState, opcRequestId); } } @@ -790,6 +813,7 @@ public Builder toBuilder() { .availabilityAtOci(availabilityAtOci) .availabilityAnywhere(availabilityAnywhere) .isMandatoryForAutonomousLinux(isMandatoryForAutonomousLinux) + .isMirrorSyncAllowed(isMirrorSyncAllowed) .displayName(displayName) .displayNameContains(displayNameContains) .displayNameNotEqualTo(displayNameNotEqualTo) @@ -826,6 +850,7 @@ public String toString() { sb.append(",availabilityAnywhere=").append(String.valueOf(this.availabilityAnywhere)); sb.append(",isMandatoryForAutonomousLinux=") .append(String.valueOf(this.isMandatoryForAutonomousLinux)); + sb.append(",isMirrorSyncAllowed=").append(String.valueOf(this.isMirrorSyncAllowed)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); sb.append(",displayNameNotEqualTo=").append(String.valueOf(this.displayNameNotEqualTo)); @@ -861,6 +886,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityAnywhere, other.availabilityAnywhere) && java.util.Objects.equals( this.isMandatoryForAutonomousLinux, other.isMandatoryForAutonomousLinux) + && java.util.Objects.equals(this.isMirrorSyncAllowed, other.isMirrorSyncAllowed) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) && java.util.Objects.equals(this.displayNameNotEqualTo, other.displayNameNotEqualTo) @@ -904,6 +930,11 @@ public int hashCode() { + (this.isMandatoryForAutonomousLinux == null ? 43 : this.isMandatoryForAutonomousLinux.hashCode()); + result = + (result * PRIME) + + (this.isMirrorSyncAllowed == null + ? 43 + : this.isMirrorSyncAllowed.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java index 554ba479dfc..5581cdbd8f4 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ListWorkRequestsRequest.java @@ -243,6 +243,19 @@ public String getDisplayNameContains() { public String getRetryOfId() { return retryOfId; } + /** + * A filter to return the work requests that are a rerun of the given work request + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String rerunOfId; + + /** + * A filter to return the work requests that are a rerun of the given work request + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getRerunOfId() { + return rerunOfId; + } /** * A filter to return work requests that were created before the date provided (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). Example: '2023-08-25T21:10:29.600Z' @@ -592,6 +605,24 @@ public Builder retryOfId(String retryOfId) { return this; } + /** + * A filter to return the work requests that are a rerun of the given work request + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String rerunOfId = null; + + /** + * A filter to return the work requests that are a rerun of the given work request + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param rerunOfId the value to set + * @return this builder instance + */ + public Builder rerunOfId(String rerunOfId) { + this.rerunOfId = rerunOfId; + return this; + } + /** * A filter to return work requests that were created before the date provided (in [RFC * 3339](https://tools.ietf.org/rfc/rfc3339) format). Example: '2023-08-25T21:10:29.600Z' @@ -688,6 +719,7 @@ public Builder copy(ListWorkRequestsRequest o) { operationType(o.getOperationType()); displayNameContains(o.getDisplayNameContains()); retryOfId(o.getRetryOfId()); + rerunOfId(o.getRerunOfId()); timeCreatedLessThan(o.getTimeCreatedLessThan()); timeCreatedGreaterThanOrEqualTo(o.getTimeCreatedGreaterThanOrEqualTo()); isManagedByAutonomousLinux(o.getIsManagedByAutonomousLinux()); @@ -740,13 +772,14 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { request.operationType = operationType; request.displayNameContains = displayNameContains; request.retryOfId = retryOfId; + request.rerunOfId = rerunOfId; request.timeCreatedLessThan = timeCreatedLessThan; request.timeCreatedGreaterThanOrEqualTo = timeCreatedGreaterThanOrEqualTo; request.isManagedByAutonomousLinux = isManagedByAutonomousLinux; return request; // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, // opcRequestId, page, limit, sortOrder, sortBy, initiatorId, parentId, - // parentResourcesNotEqualTo, operationType, displayNameContains, retryOfId, + // parentResourcesNotEqualTo, operationType, displayNameContains, retryOfId, rerunOfId, // timeCreatedLessThan, timeCreatedGreaterThanOrEqualTo, isManagedByAutonomousLinux); } } @@ -773,6 +806,7 @@ public Builder toBuilder() { .operationType(operationType) .displayNameContains(displayNameContains) .retryOfId(retryOfId) + .rerunOfId(rerunOfId) .timeCreatedLessThan(timeCreatedLessThan) .timeCreatedGreaterThanOrEqualTo(timeCreatedGreaterThanOrEqualTo) .isManagedByAutonomousLinux(isManagedByAutonomousLinux); @@ -808,6 +842,7 @@ public String toString() { sb.append(",operationType=").append(String.valueOf(this.operationType)); sb.append(",displayNameContains=").append(String.valueOf(this.displayNameContains)); sb.append(",retryOfId=").append(String.valueOf(this.retryOfId)); + sb.append(",rerunOfId=").append(String.valueOf(this.rerunOfId)); sb.append(",timeCreatedLessThan=").append(String.valueOf(this.timeCreatedLessThan)); sb.append(",timeCreatedGreaterThanOrEqualTo=") .append(String.valueOf(this.timeCreatedGreaterThanOrEqualTo)); @@ -844,6 +879,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.operationType, other.operationType) && java.util.Objects.equals(this.displayNameContains, other.displayNameContains) && java.util.Objects.equals(this.retryOfId, other.retryOfId) + && java.util.Objects.equals(this.rerunOfId, other.rerunOfId) && java.util.Objects.equals(this.timeCreatedLessThan, other.timeCreatedLessThan) && java.util.Objects.equals( this.timeCreatedGreaterThanOrEqualTo, other.timeCreatedGreaterThanOrEqualTo) @@ -884,6 +920,7 @@ public int hashCode() { ? 43 : this.displayNameContains.hashCode()); result = (result * PRIME) + (this.retryOfId == null ? 43 : this.retryOfId.hashCode()); + result = (result * PRIME) + (this.rerunOfId == null ? 43 : this.rerunOfId.hashCode()); result = (result * PRIME) + (this.timeCreatedLessThan == null diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootLifecycleStageRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootLifecycleStageRequest.java new file mode 100644 index 00000000000..817291ea05e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootLifecycleStageRequest.java @@ -0,0 +1,376 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RebootLifecycleStageRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootLifecycleStageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the lifecycle stage. + */ + private String lifecycleStageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the lifecycle stage. + */ + public String getLifecycleStageId() { + return lifecycleStageId; + } + /** Details rebooting managed instances in a lifecycle stage. */ + private com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails + rebootLifecycleStageDetails; + + /** Details rebooting managed instances in a lifecycle stage. */ + public com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails + getRebootLifecycleStageDetails() { + return rebootLifecycleStageDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.RebootLifecycleStageDetails getBody$() { + return rebootLifecycleStageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RebootLifecycleStageRequest, + com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the lifecycle stage. + */ + private String lifecycleStageId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the lifecycle stage. + * + * @param lifecycleStageId the value to set + * @return this builder instance + */ + public Builder lifecycleStageId(String lifecycleStageId) { + this.lifecycleStageId = lifecycleStageId; + return this; + } + + /** Details rebooting managed instances in a lifecycle stage. */ + private com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails + rebootLifecycleStageDetails = null; + + /** + * Details rebooting managed instances in a lifecycle stage. + * + * @param rebootLifecycleStageDetails the value to set + * @return this builder instance + */ + public Builder rebootLifecycleStageDetails( + com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails + rebootLifecycleStageDetails) { + this.rebootLifecycleStageDetails = rebootLifecycleStageDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RebootLifecycleStageRequest o) { + lifecycleStageId(o.getLifecycleStageId()); + rebootLifecycleStageDetails(o.getRebootLifecycleStageDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RebootLifecycleStageRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RebootLifecycleStageRequest + */ + public RebootLifecycleStageRequest buildWithoutInvocationCallback() { + RebootLifecycleStageRequest request = new RebootLifecycleStageRequest(); + request.lifecycleStageId = lifecycleStageId; + request.rebootLifecycleStageDetails = rebootLifecycleStageDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new RebootLifecycleStageRequest(lifecycleStageId, rebootLifecycleStageDetails, + // opcRequestId, opcRetryToken, 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() + .lifecycleStageId(lifecycleStageId) + .rebootLifecycleStageDetails(rebootLifecycleStageDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",lifecycleStageId=").append(String.valueOf(this.lifecycleStageId)); + sb.append(",rebootLifecycleStageDetails=") + .append(String.valueOf(this.rebootLifecycleStageDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RebootLifecycleStageRequest)) { + return false; + } + + RebootLifecycleStageRequest other = (RebootLifecycleStageRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.lifecycleStageId, other.lifecycleStageId) + && java.util.Objects.equals( + this.rebootLifecycleStageDetails, other.rebootLifecycleStageDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.lifecycleStageId == null ? 43 : this.lifecycleStageId.hashCode()); + result = + (result * PRIME) + + (this.rebootLifecycleStageDetails == null + ? 43 + : this.rebootLifecycleStageDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceGroupRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceGroupRequest.java new file mode 100644 index 00000000000..42de134e24c --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceGroupRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * RebootManagedInstanceGroupRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootManagedInstanceGroupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance group. + */ + private String managedInstanceGroupId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance group. + */ + public String getManagedInstanceGroupId() { + return managedInstanceGroupId; + } + /** Provides the information used to reboot managed instances in a group. */ + private com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails + rebootManagedInstanceGroupDetails; + + /** Provides the information used to reboot managed instances in a group. */ + public com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails + getRebootManagedInstanceGroupDetails() { + return rebootManagedInstanceGroupDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.RebootManagedInstanceGroupDetails getBody$() { + return rebootManagedInstanceGroupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RebootManagedInstanceGroupRequest, + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance group. + */ + private String managedInstanceGroupId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance group. + * + * @param managedInstanceGroupId the value to set + * @return this builder instance + */ + public Builder managedInstanceGroupId(String managedInstanceGroupId) { + this.managedInstanceGroupId = managedInstanceGroupId; + return this; + } + + /** Provides the information used to reboot managed instances in a group. */ + private com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails + rebootManagedInstanceGroupDetails = null; + + /** + * Provides the information used to reboot managed instances in a group. + * + * @param rebootManagedInstanceGroupDetails the value to set + * @return this builder instance + */ + public Builder rebootManagedInstanceGroupDetails( + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails + rebootManagedInstanceGroupDetails) { + this.rebootManagedInstanceGroupDetails = rebootManagedInstanceGroupDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RebootManagedInstanceGroupRequest o) { + managedInstanceGroupId(o.getManagedInstanceGroupId()); + rebootManagedInstanceGroupDetails(o.getRebootManagedInstanceGroupDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RebootManagedInstanceGroupRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RebootManagedInstanceGroupRequest + */ + public RebootManagedInstanceGroupRequest buildWithoutInvocationCallback() { + RebootManagedInstanceGroupRequest request = new RebootManagedInstanceGroupRequest(); + request.managedInstanceGroupId = managedInstanceGroupId; + request.rebootManagedInstanceGroupDetails = rebootManagedInstanceGroupDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new RebootManagedInstanceGroupRequest(managedInstanceGroupId, + // rebootManagedInstanceGroupDetails, opcRequestId, opcRetryToken, 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() + .managedInstanceGroupId(managedInstanceGroupId) + .rebootManagedInstanceGroupDetails(rebootManagedInstanceGroupDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",managedInstanceGroupId=").append(String.valueOf(this.managedInstanceGroupId)); + sb.append(",rebootManagedInstanceGroupDetails=") + .append(String.valueOf(this.rebootManagedInstanceGroupDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RebootManagedInstanceGroupRequest)) { + return false; + } + + RebootManagedInstanceGroupRequest other = (RebootManagedInstanceGroupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.managedInstanceGroupId, other.managedInstanceGroupId) + && java.util.Objects.equals( + this.rebootManagedInstanceGroupDetails, + other.rebootManagedInstanceGroupDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managedInstanceGroupId == null + ? 43 + : this.managedInstanceGroupId.hashCode()); + result = + (result * PRIME) + + (this.rebootManagedInstanceGroupDetails == null + ? 43 + : this.rebootManagedInstanceGroupDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceRequest.java new file mode 100644 index 00000000000..4f0178b9724 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RebootManagedInstanceRequest.java @@ -0,0 +1,387 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * RebootManagedInstanceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootManagedInstanceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance. + */ + private String managedInstanceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the managed instance. + */ + public String getManagedInstanceId() { + return managedInstanceId; + } + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that + * the service waits for the reboot to complete before marking the job as failed. + */ + private com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails + rebootManagedInstanceDetails; + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes that + * the service waits for the reboot to complete before marking the job as failed. + */ + public com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails + getRebootManagedInstanceDetails() { + return rebootManagedInstanceDetails; + } + /** + * 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. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails getBody$() { + return rebootManagedInstanceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RebootManagedInstanceRequest, + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance. + */ + private String managedInstanceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the managed instance. + * + * @param managedInstanceId the value to set + * @return this builder instance + */ + public Builder managedInstanceId(String managedInstanceId) { + this.managedInstanceId = managedInstanceId; + return this; + } + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes + * that the service waits for the reboot to complete before marking the job as failed. + */ + private com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails + rebootManagedInstanceDetails = null; + + /** + * The timeout to be set for the reboot job. The timeout is the amount of time in minutes + * that the service waits for the reboot to complete before marking the job as failed. + * + * @param rebootManagedInstanceDetails the value to set + * @return this builder instance + */ + public Builder rebootManagedInstanceDetails( + com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails + rebootManagedInstanceDetails) { + this.rebootManagedInstanceDetails = rebootManagedInstanceDetails; + 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. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RebootManagedInstanceRequest o) { + managedInstanceId(o.getManagedInstanceId()); + rebootManagedInstanceDetails(o.getRebootManagedInstanceDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RebootManagedInstanceRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RebootManagedInstanceRequest + */ + public RebootManagedInstanceRequest buildWithoutInvocationCallback() { + RebootManagedInstanceRequest request = new RebootManagedInstanceRequest(); + request.managedInstanceId = managedInstanceId; + request.rebootManagedInstanceDetails = rebootManagedInstanceDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new RebootManagedInstanceRequest(managedInstanceId, rebootManagedInstanceDetails, + // 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() + .managedInstanceId(managedInstanceId) + .rebootManagedInstanceDetails(rebootManagedInstanceDetails) + .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(",managedInstanceId=").append(String.valueOf(this.managedInstanceId)); + sb.append(",rebootManagedInstanceDetails=") + .append(String.valueOf(this.rebootManagedInstanceDetails)); + 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 RebootManagedInstanceRequest)) { + return false; + } + + RebootManagedInstanceRequest other = (RebootManagedInstanceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.managedInstanceId, other.managedInstanceId) + && java.util.Objects.equals( + this.rebootManagedInstanceDetails, other.rebootManagedInstanceDetails) + && 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.managedInstanceId == null ? 43 : this.managedInstanceId.hashCode()); + result = + (result * PRIME) + + (this.rebootManagedInstanceDetails == null + ? 43 + : this.rebootManagedInstanceDetails.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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromSoftwareSourceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromSoftwareSourceRequest.java new file mode 100644 index 00000000000..9a64a50d570 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RemovePackagesFromSoftwareSourceRequest.java @@ -0,0 +1,382 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * RemovePackagesFromSoftwareSourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemovePackagesFromSoftwareSourceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** A list of packages to be removed from the software source. */ + private com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails + removePackagesFromSoftwareSourceDetails; + + /** A list of packages to be removed from the software source. */ + public com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails + getRemovePackagesFromSoftwareSourceDetails() { + return removePackagesFromSoftwareSourceDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails getBody$() { + return removePackagesFromSoftwareSourceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RemovePackagesFromSoftwareSourceRequest, + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** A list of packages to be removed from the software source. */ + private com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails + removePackagesFromSoftwareSourceDetails = null; + + /** + * A list of packages to be removed from the software source. + * + * @param removePackagesFromSoftwareSourceDetails the value to set + * @return this builder instance + */ + public Builder removePackagesFromSoftwareSourceDetails( + com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails + removePackagesFromSoftwareSourceDetails) { + this.removePackagesFromSoftwareSourceDetails = removePackagesFromSoftwareSourceDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RemovePackagesFromSoftwareSourceRequest o) { + softwareSourceId(o.getSoftwareSourceId()); + removePackagesFromSoftwareSourceDetails(o.getRemovePackagesFromSoftwareSourceDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RemovePackagesFromSoftwareSourceRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RemovePackagesFromSoftwareSourceRequest + */ + public RemovePackagesFromSoftwareSourceRequest buildWithoutInvocationCallback() { + RemovePackagesFromSoftwareSourceRequest request = + new RemovePackagesFromSoftwareSourceRequest(); + request.softwareSourceId = softwareSourceId; + request.removePackagesFromSoftwareSourceDetails = + removePackagesFromSoftwareSourceDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new RemovePackagesFromSoftwareSourceRequest(softwareSourceId, + // removePackagesFromSoftwareSourceDetails, opcRequestId, ifMatch, 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() + .softwareSourceId(softwareSourceId) + .removePackagesFromSoftwareSourceDetails(removePackagesFromSoftwareSourceDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + sb.append(",removePackagesFromSoftwareSourceDetails=") + .append(String.valueOf(this.removePackagesFromSoftwareSourceDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 RemovePackagesFromSoftwareSourceRequest)) { + return false; + } + + RemovePackagesFromSoftwareSourceRequest other = (RemovePackagesFromSoftwareSourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals( + this.removePackagesFromSoftwareSourceDetails, + other.removePackagesFromSoftwareSourceDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = + (result * PRIME) + + (this.removePackagesFromSoftwareSourceDetails == null + ? 43 + : this.removePackagesFromSoftwareSourceDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ReplacePackagesInSoftwareSourceRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ReplacePackagesInSoftwareSourceRequest.java new file mode 100644 index 00000000000..6c2adff2bf0 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/ReplacePackagesInSoftwareSourceRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * ReplacePackagesInSoftwareSourceRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ReplacePackagesInSoftwareSourceRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** A list of packages that will replace the existing packages in the software source. */ + private com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails + replacePackagesInSoftwareSourceDetails; + + /** A list of packages that will replace the existing packages in the software source. */ + public com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails + getReplacePackagesInSoftwareSourceDetails() { + return replacePackagesInSoftwareSourceDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails getBody$() { + return replacePackagesInSoftwareSourceDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ReplacePackagesInSoftwareSourceRequest, + com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** A list of packages that will replace the existing packages in the software source. */ + private com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails + replacePackagesInSoftwareSourceDetails = null; + + /** + * A list of packages that will replace the existing packages in the software source. + * + * @param replacePackagesInSoftwareSourceDetails the value to set + * @return this builder instance + */ + public Builder replacePackagesInSoftwareSourceDetails( + com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails + replacePackagesInSoftwareSourceDetails) { + this.replacePackagesInSoftwareSourceDetails = replacePackagesInSoftwareSourceDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ReplacePackagesInSoftwareSourceRequest o) { + softwareSourceId(o.getSoftwareSourceId()); + replacePackagesInSoftwareSourceDetails(o.getReplacePackagesInSoftwareSourceDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ReplacePackagesInSoftwareSourceRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ReplacePackagesInSoftwareSourceRequest + */ + public ReplacePackagesInSoftwareSourceRequest buildWithoutInvocationCallback() { + ReplacePackagesInSoftwareSourceRequest request = + new ReplacePackagesInSoftwareSourceRequest(); + request.softwareSourceId = softwareSourceId; + request.replacePackagesInSoftwareSourceDetails = replacePackagesInSoftwareSourceDetails; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new ReplacePackagesInSoftwareSourceRequest(softwareSourceId, + // replacePackagesInSoftwareSourceDetails, opcRequestId, ifMatch, 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() + .softwareSourceId(softwareSourceId) + .replacePackagesInSoftwareSourceDetails(replacePackagesInSoftwareSourceDetails) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + sb.append(",replacePackagesInSoftwareSourceDetails=") + .append(String.valueOf(this.replacePackagesInSoftwareSourceDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 ReplacePackagesInSoftwareSourceRequest)) { + return false; + } + + ReplacePackagesInSoftwareSourceRequest other = (ReplacePackagesInSoftwareSourceRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals( + this.replacePackagesInSoftwareSourceDetails, + other.replacePackagesInSoftwareSourceDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = + (result * PRIME) + + (this.replacePackagesInSoftwareSourceDetails == null + ? 43 + : this.replacePackagesInSoftwareSourceDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RerunWorkRequestRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RerunWorkRequestRequest.java new file mode 100644 index 00000000000..1f4eec4d597 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/RerunWorkRequestRequest.java @@ -0,0 +1,391 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use RerunWorkRequestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RerunWorkRequestRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * The resource + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to rerun + * the work requests for. If no OCIDs are provided, rerun will apply to all failed work requests + * associated with the specified work request id. + */ + private com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails rerunWorkRequestDetails; + + /** + * The resource + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to rerun + * the work requests for. If no OCIDs are provided, rerun will apply to all failed work requests + * associated with the specified work request id. + */ + public com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails + getRerunWorkRequestDetails() { + return rerunWorkRequestDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * 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; + } + /** + * 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.osmanagementhub.model.RerunWorkRequestDetails getBody$() { + return rerunWorkRequestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RerunWorkRequestRequest, + com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the work request. + * + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * The resource + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * rerun the work requests for. If no OCIDs are provided, rerun will apply to all failed + * work requests associated with the specified work request id. + */ + private com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails + rerunWorkRequestDetails = null; + + /** + * The resource + * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to + * rerun the work requests for. If no OCIDs are provided, rerun will apply to all failed + * work requests associated with the specified work request id. + * + * @param rerunWorkRequestDetails the value to set + * @return this builder instance + */ + public Builder rerunWorkRequestDetails( + com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails + rerunWorkRequestDetails) { + this.rerunWorkRequestDetails = rerunWorkRequestDetails; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RerunWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + rerunWorkRequestDetails(o.getRerunWorkRequestDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RerunWorkRequestRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RerunWorkRequestRequest + */ + public RerunWorkRequestRequest buildWithoutInvocationCallback() { + RerunWorkRequestRequest request = new RerunWorkRequestRequest(); + request.workRequestId = workRequestId; + request.rerunWorkRequestDetails = rerunWorkRequestDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new RerunWorkRequestRequest(workRequestId, rerunWorkRequestDetails, opcRequestId, + // opcRetryToken, 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() + .workRequestId(workRequestId) + .rerunWorkRequestDetails(rerunWorkRequestDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) + .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(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",rerunWorkRequestDetails=").append(String.valueOf(this.rerunWorkRequestDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + 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 RerunWorkRequestRequest)) { + return false; + } + + RerunWorkRequestRequest other = (RerunWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals( + this.rerunWorkRequestDetails, other.rerunWorkRequestDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @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.rerunWorkRequestDetails == null + ? 43 + : this.rerunWorkRequestDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SoftwareSourceGenerateMetadataRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SoftwareSourceGenerateMetadataRequest.java new file mode 100644 index 00000000000..461c239b3a0 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/SoftwareSourceGenerateMetadataRequest.java @@ -0,0 +1,314 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * SoftwareSourceGenerateMetadataRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SoftwareSourceGenerateMetadataRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For 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; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SoftwareSourceGenerateMetadataRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SoftwareSourceGenerateMetadataRequest o) { + softwareSourceId(o.getSoftwareSourceId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SoftwareSourceGenerateMetadataRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of SoftwareSourceGenerateMetadataRequest + */ + public SoftwareSourceGenerateMetadataRequest buildWithoutInvocationCallback() { + SoftwareSourceGenerateMetadataRequest request = + new SoftwareSourceGenerateMetadataRequest(); + request.softwareSourceId = softwareSourceId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new SoftwareSourceGenerateMetadataRequest(softwareSourceId, opcRequestId, ifMatch, + // 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() + .softwareSourceId(softwareSourceId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 SoftwareSourceGenerateMetadataRequest)) { + return false; + } + + SoftwareSourceGenerateMetadataRequest other = (SoftwareSourceGenerateMetadataRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateSoftwareSourceManifestRequest.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateSoftwareSourceManifestRequest.java new file mode 100644 index 00000000000..bea060c6377 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/requests/UpdateSoftwareSourceManifestRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.requests; + +import com.oracle.bmc.osmanagementhub.model.*; +/** + * Example: Click here to see how to use + * UpdateSoftwareSourceManifestRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateSoftwareSourceManifestRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Provides the document used to update the package list of the software source. */ + private java.io.InputStream updateSoftwareSourceManifestDetails; + + /** Provides the document used to update the package list of the software source. */ + public java.io.InputStream getUpdateSoftwareSourceManifestDetails() { + return updateSoftwareSourceManifestDetails; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + private String softwareSourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of + * the software source. + */ + public String getSoftwareSourceId() { + return softwareSourceId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return updateSoftwareSourceManifestDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateSoftwareSourceManifestRequest, java.io.InputStream> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Provides the document used to update the package list of the software source. */ + private java.io.InputStream updateSoftwareSourceManifestDetails = null; + + /** + * Provides the document used to update the package list of the software source. + * + * @param updateSoftwareSourceManifestDetails the value to set + * @return this builder instance + */ + public Builder updateSoftwareSourceManifestDetails( + java.io.InputStream updateSoftwareSourceManifestDetails) { + this.updateSoftwareSourceManifestDetails = updateSoftwareSourceManifestDetails; + return this; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + */ + private String softwareSourceId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * of the software source. + * + * @param softwareSourceId the value to set + * @return this builder instance + */ + public Builder softwareSourceId(String softwareSourceId) { + this.softwareSourceId = softwareSourceId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(UpdateSoftwareSourceManifestRequest o) { + updateSoftwareSourceManifestDetails(o.getUpdateSoftwareSourceManifestDetails()); + softwareSourceId(o.getSoftwareSourceId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateSoftwareSourceManifestRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateSoftwareSourceManifestRequest + */ + public UpdateSoftwareSourceManifestRequest buildWithoutInvocationCallback() { + UpdateSoftwareSourceManifestRequest request = new UpdateSoftwareSourceManifestRequest(); + request.updateSoftwareSourceManifestDetails = updateSoftwareSourceManifestDetails; + request.softwareSourceId = softwareSourceId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateSoftwareSourceManifestRequest(updateSoftwareSourceManifestDetails, + // softwareSourceId, opcRequestId, ifMatch, 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() + .updateSoftwareSourceManifestDetails(updateSoftwareSourceManifestDetails) + .softwareSourceId(softwareSourceId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .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(",updateSoftwareSourceManifestDetails=") + .append(String.valueOf(this.updateSoftwareSourceManifestDetails)); + sb.append(",softwareSourceId=").append(String.valueOf(this.softwareSourceId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + 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 UpdateSoftwareSourceManifestRequest)) { + return false; + } + + UpdateSoftwareSourceManifestRequest other = (UpdateSoftwareSourceManifestRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.updateSoftwareSourceManifestDetails, + other.updateSoftwareSourceManifestDetails) + && java.util.Objects.equals(this.softwareSourceId, other.softwareSourceId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.updateSoftwareSourceManifestDetails == null + ? 43 + : this.updateSoftwareSourceManifestDetails.hashCode()); + result = + (result * PRIME) + + (this.softwareSourceId == null ? 43 : this.softwareSourceId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AssociateManagedInstancesWithManagementStationResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AssociateManagedInstancesWithManagementStationResponse.java new file mode 100644 index 00000000000..fecde1f4c53 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AssociateManagedInstancesWithManagementStationResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AssociateManagedInstancesWithManagementStationResponse + 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 AssociateManagedInstancesWithManagementStationResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AssociateManagedInstancesWithManagementStationResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + public Builder copy(AssociateManagedInstancesWithManagementStationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AssociateManagedInstancesWithManagementStationResponse build() { + return new AssociateManagedInstancesWithManagementStationResponse( + __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 AssociateManagedInstancesWithManagementStationResponse)) { + return false; + } + + AssociateManagedInstancesWithManagementStationResponse other = + (AssociateManagedInstancesWithManagementStationResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachLifecycleStageToProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachLifecycleStageToProfileResponse.java new file mode 100644 index 00000000000..464021967cf --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachLifecycleStageToProfileResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachLifecycleStageToProfileResponse 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 AttachLifecycleStageToProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AttachLifecycleStageToProfileResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AttachLifecycleStageToProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AttachLifecycleStageToProfileResponse build() { + return new AttachLifecycleStageToProfileResponse( + __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 AttachLifecycleStageToProfileResponse)) { + return false; + } + + AttachLifecycleStageToProfileResponse other = (AttachLifecycleStageToProfileResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagedInstanceGroupToProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagedInstanceGroupToProfileResponse.java new file mode 100644 index 00000000000..b35e8505ee2 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagedInstanceGroupToProfileResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachManagedInstanceGroupToProfileResponse + 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 AttachManagedInstanceGroupToProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AttachManagedInstanceGroupToProfileResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AttachManagedInstanceGroupToProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AttachManagedInstanceGroupToProfileResponse build() { + return new AttachManagedInstanceGroupToProfileResponse( + __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 AttachManagedInstanceGroupToProfileResponse)) { + return false; + } + + AttachManagedInstanceGroupToProfileResponse other = + (AttachManagedInstanceGroupToProfileResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagementStationToProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagementStationToProfileResponse.java new file mode 100644 index 00000000000..353a2ea298c --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachManagementStationToProfileResponse.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachManagementStationToProfileResponse 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 AttachManagementStationToProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AttachManagementStationToProfileResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AttachManagementStationToProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AttachManagementStationToProfileResponse build() { + return new AttachManagementStationToProfileResponse( + __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 AttachManagementStationToProfileResponse)) { + return false; + } + + AttachManagementStationToProfileResponse other = + (AttachManagementStationToProfileResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachSoftwareSourcesToProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachSoftwareSourcesToProfileResponse.java new file mode 100644 index 00000000000..62d4efd501d --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/AttachSoftwareSourcesToProfileResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class AttachSoftwareSourcesToProfileResponse 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 AttachSoftwareSourcesToProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + AttachSoftwareSourcesToProfileResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(AttachSoftwareSourcesToProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public AttachSoftwareSourcesToProfileResponse build() { + return new AttachSoftwareSourcesToProfileResponse( + __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 AttachSoftwareSourcesToProfileResponse)) { + return false; + } + + AttachSoftwareSourcesToProfileResponse other = (AttachSoftwareSourcesToProfileResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachSoftwareSourcesFromProfileResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachSoftwareSourcesFromProfileResponse.java new file mode 100644 index 00000000000..94d19b7ef7b --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/DetachSoftwareSourcesFromProfileResponse.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class DetachSoftwareSourcesFromProfileResponse 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 DetachSoftwareSourcesFromProfileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DetachSoftwareSourcesFromProfileResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DetachSoftwareSourcesFromProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DetachSoftwareSourcesFromProfileResponse build() { + return new DetachSoftwareSourcesFromProfileResponse( + __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 DetachSoftwareSourcesFromProfileResponse)) { + return false; + } + + DetachSoftwareSourcesFromProfileResponse other = + (DetachSoftwareSourcesFromProfileResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetProfileVersionResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetProfileVersionResponse.java new file mode 100644 index 00000000000..8ee62b5d812 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetProfileVersionResponse.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetProfileVersionResponse 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 {@code ProfileVersion} instance. */ + private com.oracle.bmc.osmanagementhub.model.ProfileVersion profileVersion; + + /** + * The returned {@code ProfileVersion} instance. + * + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.ProfileVersion getProfileVersion() { + return profileVersion; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "profileVersion" + }) + private GetProfileVersionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.osmanagementhub.model.ProfileVersion profileVersion) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.profileVersion = profileVersion; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** 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 {@code ProfileVersion} instance. */ + private com.oracle.bmc.osmanagementhub.model.ProfileVersion profileVersion; + + /** + * The returned {@code ProfileVersion} instance. + * + * @param profileVersion the value to set + * @return this builder + */ + public Builder profileVersion( + com.oracle.bmc.osmanagementhub.model.ProfileVersion profileVersion) { + this.profileVersion = profileVersion; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetProfileVersionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + profileVersion(o.getProfileVersion()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetProfileVersionResponse build() { + return new GetProfileVersionResponse( + __httpStatusCode__, headers, etag, opcRequestId, profileVersion); + } + } + + /** + * 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(",profileVersion=").append(String.valueOf(profileVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetProfileVersionResponse)) { + return false; + } + + GetProfileVersionResponse other = (GetProfileVersionResponse) 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.profileVersion, other.profileVersion); + } + + @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.profileVersion == null ? 43 : this.profileVersion.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetSoftwareSourceManifestResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetSoftwareSourceManifestResponse.java new file mode 100644 index 00000000000..6e907a0610a --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/GetSoftwareSourceManifestResponse.java @@ -0,0 +1,209 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class GetSoftwareSourceManifestResponse 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 {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "inputStream" + }) + private GetSoftwareSourceManifestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetSoftwareSourceManifestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@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 {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code 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 + */ + @Override + public Builder copy(GetSoftwareSourceManifestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetSoftwareSourceManifestResponse build() { + return new GetSoftwareSourceManifestResponse( + __httpStatusCode__, headers, etag, opcRequestId, 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(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetSoftwareSourceManifestResponse)) { + return false; + } + + GetSoftwareSourceManifestResponse other = (GetSoftwareSourceManifestResponse) 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.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.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwarePackagesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwarePackagesResponse.java new file mode 100644 index 00000000000..23d42c51323 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListAvailableSoftwarePackagesResponse.java @@ -0,0 +1,236 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListAvailableSoftwarePackagesResponse 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code SoftwarePackageCollection} instance. */ + private com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection + softwarePackageCollection; + + /** + * The returned {@code SoftwarePackageCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection + getSoftwarePackageCollection() { + return softwarePackageCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "softwarePackageCollection" + }) + private ListAvailableSoftwarePackagesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection + softwarePackageCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.softwarePackageCollection = softwarePackageCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListAvailableSoftwarePackagesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code SoftwarePackageCollection} instance. */ + private com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection + softwarePackageCollection; + + /** + * The returned {@code SoftwarePackageCollection} instance. + * + * @param softwarePackageCollection the value to set + * @return this builder + */ + public Builder softwarePackageCollection( + com.oracle.bmc.osmanagementhub.model.SoftwarePackageCollection + softwarePackageCollection) { + this.softwarePackageCollection = softwarePackageCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListAvailableSoftwarePackagesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + softwarePackageCollection(o.getSoftwarePackageCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListAvailableSoftwarePackagesResponse build() { + return new ListAvailableSoftwarePackagesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + softwarePackageCollection); + } + } + + /** + * 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(",softwarePackageCollection=").append(String.valueOf(softwarePackageCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableSoftwarePackagesResponse)) { + return false; + } + + ListAvailableSoftwarePackagesResponse other = (ListAvailableSoftwarePackagesResponse) 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.softwarePackageCollection, other.softwarePackageCollection); + } + + @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.softwarePackageCollection == null + ? 43 + : this.softwarePackageCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesResponse.java index 74ae442007e..2f06365e28a 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesResponse.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListManagedInstancesResponse.java @@ -42,6 +42,18 @@ public String getOpcNextPage() { return opcNextPage; } + /** The total number of items in the result. Used for pagination of a list of items. */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + /** The returned {@code ManagedInstanceCollection} instance. */ private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection managedInstanceCollection; @@ -61,6 +73,7 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", + "opcTotalItems", "managedInstanceCollection" }) private ListManagedInstancesResponse( @@ -68,11 +81,13 @@ private ListManagedInstancesResponse( java.util.Map> headers, String opcRequestId, String opcNextPage, + Integer opcTotalItems, com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection managedInstanceCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; this.managedInstanceCollection = managedInstanceCollection; } @@ -132,6 +147,20 @@ public Builder opcNextPage(String opcNextPage) { return this; } + /** The total number of items in the result. Used for pagination of a list of items. */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + /** The returned {@code ManagedInstanceCollection} instance. */ private com.oracle.bmc.osmanagementhub.model.ManagedInstanceCollection managedInstanceCollection; @@ -160,6 +189,7 @@ public Builder copy(ListManagedInstancesResponse o) { headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); managedInstanceCollection(o.getManagedInstanceCollection()); return this; @@ -177,6 +207,7 @@ public ListManagedInstancesResponse build() { headers, opcRequestId, opcNextPage, + opcTotalItems, managedInstanceCollection); } } @@ -197,6 +228,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcTotalItems=").append(String.valueOf(opcTotalItems)); sb.append(",managedInstanceCollection=").append(String.valueOf(managedInstanceCollection)); sb.append(")"); return sb.toString(); @@ -215,6 +247,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcTotalItems, other.opcTotalItems) && java.util.Objects.equals( this.managedInstanceCollection, other.managedInstanceCollection); } @@ -225,6 +258,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); result = (result * PRIME) + (this.managedInstanceCollection == null diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfileAvailableSoftwareSourcesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfileAvailableSoftwareSourcesResponse.java new file mode 100644 index 00000000000..ba6a3f4e679 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfileAvailableSoftwareSourcesResponse.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ListProfileAvailableSoftwareSourcesResponse + 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code AvailableSoftwareSourceCollection} instance. */ + private com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + availableSoftwareSourceCollection; + + /** + * The returned {@code AvailableSoftwareSourceCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + getAvailableSoftwareSourceCollection() { + return availableSoftwareSourceCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "availableSoftwareSourceCollection" + }) + private ListProfileAvailableSoftwareSourcesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + availableSoftwareSourceCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.availableSoftwareSourceCollection = availableSoftwareSourceCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListProfileAvailableSoftwareSourcesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code AvailableSoftwareSourceCollection} instance. */ + private com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + availableSoftwareSourceCollection; + + /** + * The returned {@code AvailableSoftwareSourceCollection} instance. + * + * @param availableSoftwareSourceCollection the value to set + * @return this builder + */ + public Builder availableSoftwareSourceCollection( + com.oracle.bmc.osmanagementhub.model.AvailableSoftwareSourceCollection + availableSoftwareSourceCollection) { + this.availableSoftwareSourceCollection = availableSoftwareSourceCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListProfileAvailableSoftwareSourcesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + availableSoftwareSourceCollection(o.getAvailableSoftwareSourceCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListProfileAvailableSoftwareSourcesResponse build() { + return new ListProfileAvailableSoftwareSourcesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + availableSoftwareSourceCollection); + } + } + + /** + * 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(",availableSoftwareSourceCollection=") + .append(String.valueOf(availableSoftwareSourceCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListProfileAvailableSoftwareSourcesResponse)) { + return false; + } + + ListProfileAvailableSoftwareSourcesResponse other = + (ListProfileAvailableSoftwareSourcesResponse) 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.availableSoftwareSourceCollection, + other.availableSoftwareSourceCollection); + } + + @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.availableSoftwareSourceCollection == null + ? 43 + : this.availableSoftwareSourceCollection.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfilesResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfilesResponse.java index b143834f28b..2942597b9ce 100644 --- a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfilesResponse.java +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ListProfilesResponse.java @@ -42,6 +42,18 @@ public String getOpcNextPage() { return opcNextPage; } + /** The total number of items in the result. Used for pagination of a list of items. */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @return the value + */ + public Integer getOpcTotalItems() { + return opcTotalItems; + } + /** The returned {@code ProfileCollection} instance. */ private com.oracle.bmc.osmanagementhub.model.ProfileCollection profileCollection; @@ -59,6 +71,7 @@ public com.oracle.bmc.osmanagementhub.model.ProfileCollection getProfileCollecti "headers", "opcRequestId", "opcNextPage", + "opcTotalItems", "profileCollection" }) private ListProfilesResponse( @@ -66,10 +79,12 @@ private ListProfilesResponse( java.util.Map> headers, String opcRequestId, String opcNextPage, + Integer opcTotalItems, com.oracle.bmc.osmanagementhub.model.ProfileCollection profileCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; + this.opcTotalItems = opcTotalItems; this.profileCollection = profileCollection; } @@ -129,6 +144,20 @@ public Builder opcNextPage(String opcNextPage) { return this; } + /** The total number of items in the result. Used for pagination of a list of items. */ + private Integer opcTotalItems; + + /** + * The total number of items in the result. Used for pagination of a list of items. + * + * @param opcTotalItems the value to set + * @return this builder + */ + public Builder opcTotalItems(Integer opcTotalItems) { + this.opcTotalItems = opcTotalItems; + return this; + } + /** The returned {@code ProfileCollection} instance. */ private com.oracle.bmc.osmanagementhub.model.ProfileCollection profileCollection; @@ -155,6 +184,7 @@ public Builder copy(ListProfilesResponse o) { headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); + opcTotalItems(o.getOpcTotalItems()); profileCollection(o.getProfileCollection()); return this; @@ -168,7 +198,12 @@ public Builder copy(ListProfilesResponse o) { @Override public ListProfilesResponse build() { return new ListProfilesResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, profileCollection); + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcTotalItems, + profileCollection); } } @@ -188,6 +223,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcTotalItems=").append(String.valueOf(opcTotalItems)); sb.append(",profileCollection=").append(String.valueOf(profileCollection)); sb.append(")"); return sb.toString(); @@ -206,6 +242,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcTotalItems, other.opcTotalItems) && java.util.Objects.equals(this.profileCollection, other.profileCollection); } @@ -215,6 +252,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.opcTotalItems == null ? 43 : this.opcTotalItems.hashCode()); result = (result * PRIME) + (this.profileCollection == null ? 43 : this.profileCollection.hashCode()); diff --git a/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootLifecycleStageResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootLifecycleStageResponse.java new file mode 100644 index 00000000000..7c974db796e --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootLifecycleStageResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootLifecycleStageResponse 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 RebootLifecycleStageResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + public Builder copy(RebootLifecycleStageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RebootLifecycleStageResponse build() { + return new RebootLifecycleStageResponse( + __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 RebootLifecycleStageResponse)) { + return false; + } + + RebootLifecycleStageResponse other = (RebootLifecycleStageResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceGroupResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceGroupResponse.java new file mode 100644 index 00000000000..bd236a9deea --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceGroupResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootManagedInstanceGroupResponse 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 RebootManagedInstanceGroupResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RebootManagedInstanceGroupResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + public Builder copy(RebootManagedInstanceGroupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RebootManagedInstanceGroupResponse build() { + return new RebootManagedInstanceGroupResponse( + __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 RebootManagedInstanceGroupResponse)) { + return false; + } + + RebootManagedInstanceGroupResponse other = (RebootManagedInstanceGroupResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceResponse.java new file mode 100644 index 00000000000..704de774ce1 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RebootManagedInstanceResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RebootManagedInstanceResponse 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 RebootManagedInstanceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + public Builder copy(RebootManagedInstanceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RebootManagedInstanceResponse build() { + return new RebootManagedInstanceResponse( + __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 RebootManagedInstanceResponse)) { + return false; + } + + RebootManagedInstanceResponse other = (RebootManagedInstanceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromSoftwareSourceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromSoftwareSourceResponse.java new file mode 100644 index 00000000000..124ea4a6e68 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RemovePackagesFromSoftwareSourceResponse.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RemovePackagesFromSoftwareSourceResponse 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; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private RemovePackagesFromSoftwareSourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RemovePackagesFromSoftwareSourceResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RemovePackagesFromSoftwareSourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RemovePackagesFromSoftwareSourceResponse build() { + return new RemovePackagesFromSoftwareSourceResponse( + __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 RemovePackagesFromSoftwareSourceResponse)) { + return false; + } + + RemovePackagesFromSoftwareSourceResponse other = + (RemovePackagesFromSoftwareSourceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ReplacePackagesInSoftwareSourceResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ReplacePackagesInSoftwareSourceResponse.java new file mode 100644 index 00000000000..28896bb2bb6 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/ReplacePackagesInSoftwareSourceResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class ReplacePackagesInSoftwareSourceResponse 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; + } + + /** + * 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; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ReplacePackagesInSoftwareSourceResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ReplacePackagesInSoftwareSourceResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ReplacePackagesInSoftwareSourceResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ReplacePackagesInSoftwareSourceResponse build() { + return new ReplacePackagesInSoftwareSourceResponse( + __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 ReplacePackagesInSoftwareSourceResponse)) { + return false; + } + + ReplacePackagesInSoftwareSourceResponse other = (ReplacePackagesInSoftwareSourceResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RerunWorkRequestResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RerunWorkRequestResponse.java new file mode 100644 index 00000000000..12803491412 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/RerunWorkRequestResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class RerunWorkRequestResponse 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 RerunWorkRequestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the 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 + */ + @Override + public Builder copy(RerunWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RerunWorkRequestResponse build() { + return new RerunWorkRequestResponse( + __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 RerunWorkRequestResponse)) { + return false; + } + + RerunWorkRequestResponse other = (RerunWorkRequestResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SoftwareSourceGenerateMetadataResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SoftwareSourceGenerateMetadataResponse.java new file mode 100644 index 00000000000..81b0dc4dc36 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/SoftwareSourceGenerateMetadataResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class SoftwareSourceGenerateMetadataResponse 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 SoftwareSourceGenerateMetadataResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + SoftwareSourceGenerateMetadataResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SoftwareSourceGenerateMetadataResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public SoftwareSourceGenerateMetadataResponse build() { + return new SoftwareSourceGenerateMetadataResponse( + __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 SoftwareSourceGenerateMetadataResponse)) { + return false; + } + + SoftwareSourceGenerateMetadataResponse other = (SoftwareSourceGenerateMetadataResponse) 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-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateSoftwareSourceManifestResponse.java b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateSoftwareSourceManifestResponse.java new file mode 100644 index 00000000000..db6bf1dcd35 --- /dev/null +++ b/bmc-osmanagementhub/src/main/java/com/oracle/bmc/osmanagementhub/responses/UpdateSoftwareSourceManifestResponse.java @@ -0,0 +1,260 @@ +/** + * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.osmanagementhub.responses; + +import com.oracle.bmc.osmanagementhub.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") +public class UpdateSoftwareSourceManifestResponse 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; + } + + /** + * 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; + } + + /** 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 {@code SoftwareSource} instance. */ + private com.oracle.bmc.osmanagementhub.model.SoftwareSource softwareSource; + + /** + * The returned {@code SoftwareSource} instance. + * + * @return the value + */ + public com.oracle.bmc.osmanagementhub.model.SoftwareSource getSoftwareSource() { + return softwareSource; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "etag", + "softwareSource" + }) + private UpdateSoftwareSourceManifestResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId, + String etag, + com.oracle.bmc.osmanagementhub.model.SoftwareSource softwareSource) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.softwareSource = softwareSource; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + UpdateSoftwareSourceManifestResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * 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; + } + + /** 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 {@code SoftwareSource} instance. */ + private com.oracle.bmc.osmanagementhub.model.SoftwareSource softwareSource; + + /** + * The returned {@code SoftwareSource} instance. + * + * @param softwareSource the value to set + * @return this builder + */ + public Builder softwareSource( + com.oracle.bmc.osmanagementhub.model.SoftwareSource softwareSource) { + this.softwareSource = softwareSource; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(UpdateSoftwareSourceManifestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + softwareSource(o.getSoftwareSource()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public UpdateSoftwareSourceManifestResponse build() { + return new UpdateSoftwareSourceManifestResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + etag, + softwareSource); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",softwareSource=").append(String.valueOf(softwareSource)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateSoftwareSourceManifestResponse)) { + return false; + } + + UpdateSoftwareSourceManifestResponse other = (UpdateSoftwareSourceManifestResponse) 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.etag, other.etag) + && java.util.Objects.equals(this.softwareSource, other.softwareSource); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.softwareSource == null ? 43 : this.softwareSource.hashCode()); + return result; + } +} diff --git a/bmc-osmanagementhub/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-osmanagementhub/reflect-config.json b/bmc-osmanagementhub/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-osmanagementhub/reflect-config.json index a8eadbe0524..56baa0c32b6 100644 --- a/bmc-osmanagementhub/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-osmanagementhub/reflect-config.json +++ b/bmc-osmanagementhub/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-osmanagementhub/reflect-config.json @@ -71,6 +71,48 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AssociateManagedInstancesWithManagementStationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AssociateManagedInstancesWithManagementStationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachLifecycleStageToProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachManagedInstanceGroupToProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.AttachManagedInstancesToLifecycleStageDetails", @@ -99,6 +141,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachManagementStationToProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.AttachProfileToManagedInstanceDetails", @@ -141,6 +197,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.AttachSoftwareSourcesToProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.AutonomousSettings", @@ -495,6 +565,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreatePrivateSoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreatePrivateSoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.CreateProfileDetails", @@ -565,6 +649,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreateThirdPartySoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreateThirdPartySoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.CreateVendorSoftwareSourceDetails", @@ -593,6 +691,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreateWindowsStandAloneProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.CreateWindowsStandAloneProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.CustomSoftwareSource", @@ -691,6 +803,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.DetachSoftwareSourcesFromProfileDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.DisableModuleStreamOnManagedInstanceDetails", @@ -1851,6 +1977,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ManagementStationEventData$HealthState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.ManagementStationSummary", @@ -2274,6 +2406,48 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PeerManagementStation", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PeerManagementStation$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PrivateSoftwareSource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PrivateSoftwareSource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PrivateSoftwareSourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.PrivateSoftwareSourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.Profile", @@ -2327,6 +2501,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ProfileVersion", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ProfileVersion$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ProfileVersion$RegistrationType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.PromoteSoftwareSourceToLifecycleStageDetails", @@ -2355,6 +2549,82 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootEvent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootEvent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootEventData", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootEventData$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootEventData$RebootStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootLifecycleStageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RebootManagedInstanceGroupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.RemoveModuleStreamProfileFromManagedInstanceDetails", @@ -2411,6 +2681,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RemovePackagesFromSoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ReplacePackagesInSoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.RerunWorkRequestDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.ScheduleTypes", @@ -2750,6 +3062,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.SoftwareSourceSubType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.SoftwareSourceSummary", @@ -2915,6 +3233,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.SysadminEvent", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.SysadminEvent$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.SysadminEventData", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.SysadminEventData$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.SystemDetails", @@ -2935,6 +3281,34 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ThirdPartySoftwareSource", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ThirdPartySoftwareSource$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ThirdPartySoftwareSourceSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.ThirdPartySoftwareSourceSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.UpdatableAutonomousSettings", @@ -3131,6 +3505,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.UpdatePrivateSoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.UpdatePrivateSoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.UpdateProfileDetails", @@ -3180,6 +3568,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.UpdateThirdPartySoftwareSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.osmanagementhub.model.UpdateThirdPartySoftwareSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.osmanagementhub.model.UpdateTypes", diff --git a/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties b/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties index adcbaa55c00..390ab188533 100644 --- a/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties +++ b/bmc-osmanagementhub/src/main/resources/com/oracle/bmc/osmanagementhub/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index b3c3efba127..dcb7b7f861d 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties b/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties index 2e6c6402dc2..10c1d2f9fdf 100644 --- a/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties +++ b/bmc-ospgateway/src/main/resources/com/oracle/bmc/ospgateway/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20191001") \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index c70e20bfdf2..6756db00693 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties b/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties index f237e7712db..2b55153e988 100644 --- a/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties +++ b/bmc-osubbillingschedule/src/main/resources/com/oracle/bmc/osubbillingschedule/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 14a47acb220..df09f196e6d 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties b/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties index f237e7712db..2b55153e988 100644 --- a/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties +++ b/bmc-osuborganizationsubscription/src/main/resources/com/oracle/bmc/osuborganizationsubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 67d082389df..9c8cc8ab6bc 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties b/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties index f237e7712db..2b55153e988 100644 --- a/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties +++ b/bmc-osubsubscription/src/main/resources/com/oracle/bmc/osubsubscription/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index d505d4d7087..47c1848550d 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties b/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties index f237e7712db..2b55153e988 100644 --- a/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties +++ b/bmc-osubusage/src/main/resources/com/oracle/bmc/osubusage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210501") \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index f403541ba58..1a78881c196 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.57.2 + 3.58.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.57.2 + 3.58.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 39bce8ed512..7f9ea0fe41b 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.57.2 + 3.58.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.57.2 + 3.58.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.57.2 + 3.58.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index b6e792a0c0b..176fff25798 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.57.2 + 3.58.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.57.2 + 3.58.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.57.2 + 3.58.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 8bf5b3b847a..2ec26a93343 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 52cd66328da..4cfc4e69b22 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties b/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties index 1117646777c..98212ccf62d 100644 --- a/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties +++ b/bmc-psql/src/main/resources/com/oracle/bmc/psql/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index fc7696ac00e..a8d59408ded 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties b/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties index 13823afe867..fa89edbaf5b 100644 --- a/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties +++ b/bmc-queue/src/main/resources/com/oracle/bmc/queue/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 3743536effa..ce1fca5691b 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties b/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties index 447178e6308..4c9ecb804e1 100644 --- a/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties +++ b/bmc-recovery/src/main/resources/com/oracle/bmc/recovery/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 7a557307630..c61006b03a3 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java index ee82fe98dc6..cafe1ed75af 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java @@ -830,6 +830,7 @@ public String getReplicasEndpointIpAddress() { public enum SoftwareVersion implements com.oracle.bmc.http.internal.BmcEnum { V705("V7_0_5"), Redis70("REDIS_7_0"), + Valkey72("VALKEY_7_2"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java index 9e4557f6b25..1e0133af15b 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/UpdateRedisClusterDetails.java @@ -28,6 +28,7 @@ public final class UpdateRedisClusterDetails "displayName", "nodeCount", "nodeMemoryInGBs", + "softwareVersion", "nsgIds", "freeformTags", "definedTags" @@ -37,6 +38,7 @@ public UpdateRedisClusterDetails( String displayName, Integer nodeCount, Float nodeMemoryInGBs, + RedisCluster.SoftwareVersion softwareVersion, java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -45,6 +47,7 @@ public UpdateRedisClusterDetails( this.displayName = displayName; this.nodeCount = nodeCount; this.nodeMemoryInGBs = nodeMemoryInGBs; + this.softwareVersion = softwareVersion; this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -120,6 +123,21 @@ public Builder nodeMemoryInGBs(Float nodeMemoryInGBs) { this.__explicitlySet__.add("nodeMemoryInGBs"); return this; } + /** The OCI Cache engine version that the cluster is running. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") + private RedisCluster.SoftwareVersion softwareVersion; + + /** + * The OCI Cache engine version that the cluster is running. + * + * @param softwareVersion the value to set + * @return this builder + */ + public Builder softwareVersion(RedisCluster.SoftwareVersion softwareVersion) { + this.softwareVersion = softwareVersion; + this.__explicitlySet__.add("softwareVersion"); + return this; + } /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) @@ -193,6 +211,7 @@ public UpdateRedisClusterDetails build() { this.displayName, this.nodeCount, this.nodeMemoryInGBs, + this.softwareVersion, this.nsgIds, this.freeformTags, this.definedTags); @@ -216,6 +235,9 @@ public Builder copy(UpdateRedisClusterDetails model) { if (model.wasPropertyExplicitlySet("nodeMemoryInGBs")) { this.nodeMemoryInGBs(model.getNodeMemoryInGBs()); } + if (model.wasPropertyExplicitlySet("softwareVersion")) { + this.softwareVersion(model.getSoftwareVersion()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } @@ -298,6 +320,19 @@ public Float getNodeMemoryInGBs() { return nodeMemoryInGBs; } + /** The OCI Cache engine version that the cluster is running. */ + @com.fasterxml.jackson.annotation.JsonProperty("softwareVersion") + private final RedisCluster.SoftwareVersion softwareVersion; + + /** + * The OCI Cache engine version that the cluster is running. + * + * @return the value + */ + public RedisCluster.SoftwareVersion getSoftwareVersion() { + return softwareVersion; + } + /** * A list of Network Security Group (NSG) * [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) @@ -372,6 +407,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", nodeCount=").append(String.valueOf(this.nodeCount)); sb.append(", nodeMemoryInGBs=").append(String.valueOf(this.nodeMemoryInGBs)); + sb.append(", softwareVersion=").append(String.valueOf(this.softwareVersion)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -393,6 +429,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.nodeCount, other.nodeCount) && java.util.Objects.equals(this.nodeMemoryInGBs, other.nodeMemoryInGBs) + && java.util.Objects.equals(this.softwareVersion, other.softwareVersion) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -409,6 +446,9 @@ public int hashCode() { result = (result * PRIME) + (this.nodeMemoryInGBs == null ? 43 : this.nodeMemoryInGBs.hashCode()); + result = + (result * PRIME) + + (this.softwareVersion == null ? 43 : this.softwareVersion.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()); diff --git a/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties b/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties index 4c0cb4c1e31..8cfa999e54b 100644 --- a/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties +++ b/bmc-redis/src/main/resources/com/oracle/bmc/redis/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 22dc47f8fc1..87351000008 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties b/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties index d2be4185c13..f46066fb956 100644 --- a/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties +++ b/bmc-resourcemanager/src/main/resources/com/oracle/bmc/resourcemanager/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 04b9883872e..84dcecfaed3 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties index f6f5d1602ef..2f51c92f3c0 100644 --- a/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties +++ b/bmc-resourcescheduler/src/main/resources/com/oracle/bmc/resourcescheduler/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240430") \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index a69544aa3cd..08bf7cbe348 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties b/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties index fc92c8c7468..5804d234436 100644 --- a/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties +++ b/bmc-resourcesearch/src/main/resources/com/oracle/bmc/resourcesearch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180409") \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 2cb39cd963e..8c0b01e12e4 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties b/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties index 2da01da688f..726e3325519 100644 --- a/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties +++ b/bmc-rover/src/main/resources/com/oracle/bmc/rover/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201210") \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 3b4daa0ae1b..6e8d02d9965 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties b/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties index f3e29473642..cb995e1580d 100644 --- a/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties +++ b/bmc-sch/src/main/resources/com/oracle/bmc/sch/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200909") \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 39d06d6061b..6448c85da8c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties b/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties index fc020eda63a..dfb04716e19 100644 --- a/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties +++ b/bmc-secrets/src/main/resources/com/oracle/bmc/secrets/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190301") \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index dd342bc92de..9bb7923b061 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties b/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties index 21c6000b455..c7bf219db05 100644 --- a/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties +++ b/bmc-securityattribute/src/main/resources/com/oracle/bmc/securityattribute/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240815") \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index fdb955757f6..aa73e71effd 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties b/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties index 52f6dfe1b8e..4e7e6a8e21e 100644 --- a/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties +++ b/bmc-servicecatalog/src/main/resources/com/oracle/bmc/servicecatalog/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210527") \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 1519967ecd7..55605b9e343 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties b/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties index ca1c400ae15..592a6d26aac 100644 --- a/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties +++ b/bmc-servicemanagerproxy/src/main/resources/com/oracle/bmc/servicemanagerproxy/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210914") \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index 1fa2c446129..c15881851c4 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-servicemesh/src/main/resources/com/oracle/bmc/servicemesh/client.properties b/bmc-servicemesh/src/main/resources/com/oracle/bmc/servicemesh/client.properties index 8acc0790cc8..e2882df08b8 100644 --- a/bmc-servicemesh/src/main/resources/com/oracle/bmc/servicemesh/client.properties +++ b/bmc-servicemesh/src/main/resources/com/oracle/bmc/servicemesh/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220615") \ 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 48ddc53c79b..dcf54fbd96e 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index e79a232256e..5cdb28f0b92 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 922fcb2fd47..7d77099b332 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties b/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties index ea5944ac983..4128ef07235 100644 --- a/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties +++ b/bmc-stackmonitoring/src/main/resources/com/oracle/bmc/stackmonitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210330") \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index ef00a5518c5..7a53596f972 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties b/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties index a59569765a9..0b0b43522d8 100644 --- a/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties +++ b/bmc-streaming/src/main/resources/com/oracle/bmc/streaming/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180418") \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 9ec07ee0b67..b758524d9df 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties b/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties index 8e0fa9ea6d8..f6f6bc6cda6 100644 --- a/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties +++ b/bmc-tenantmanagercontrolplane/src/main/resources/com/oracle/bmc/tenantmanagercontrolplane/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") \ No newline at end of file diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 03756e5ff46..a5673c4dde3 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties b/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties index adcbaa55c00..390ab188533 100644 --- a/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties +++ b/bmc-threatintelligence/src/main/resources/com/oracle/bmc/threatintelligence/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220901") \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 942468f3d49..6bab6180596 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties b/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties index 0170c01e3b0..e795f427b83 100644 --- a/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties +++ b/bmc-usage/src/main/resources/com/oracle/bmc/usage/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190111") \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 9e076685364..6c6a9180b8c 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties b/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties index 0e75c4e43c2..1add4f5c6ee 100644 --- a/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties +++ b/bmc-usageapi/src/main/resources/com/oracle/bmc/usageapi/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200107") \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index a428403f2a4..6341c50093e 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.57.2 + 3.58.0 diff --git a/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties b/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties index 61f87a1d93b..3e3b7be42a8 100644 --- a/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties +++ b/bmc-vault/src/main/resources/com/oracle/bmc/vault/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180608") \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 4f9f61a8ccb..6397bb135bb 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties b/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties index f785785598d..63d617e0d35 100644 --- a/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties +++ b/bmc-vbsinst/src/main/resources/com/oracle/bmc/vbsinst/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 0aff675a8cf..02224813be3 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties b/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties index 6a2f12e63d8..ca2590fe7f5 100644 --- a/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties +++ b/bmc-visualbuilder/src/main/resources/com/oracle/bmc/visualbuilder/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210601") \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 49f4a57fbc0..b6ea3c260b8 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties b/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties +++ b/bmc-vnmonitoring/src/main/resources/com/oracle/bmc/vnmonitoring/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 2f78fe981be..1b0023e833b 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties b/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties index b6791eea467..4c698ee49c9 100644 --- a/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties +++ b/bmc-vulnerabilityscanning/src/main/resources/com/oracle/bmc/vulnerabilityscanning/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210215") \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 34927b9aa93..698d6929b13 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties b/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties index 79a5005ea9d..552f6a4dd85 100644 --- a/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties +++ b/bmc-waa/src/main/resources/com/oracle/bmc/waa/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211230") \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index d3d4891de2f..5e6a4977d3e 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties b/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties index 29c27e45184..7e87befc13a 100644 --- a/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties +++ b/bmc-waas/src/main/resources/com/oracle/bmc/waas/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181116") \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index d7c84b40a94..0f197a59922 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties b/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties index 9a919aa97fd..bcbe272712b 100644 --- a/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties +++ b/bmc-waf/src/main/resources/com/oracle/bmc/waf/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210930") \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 54f159d600d..e8a9205f4fd 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 diff --git a/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties b/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties index 25f0f0fc4a8..7b97f5fdcc0 100644 --- a/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties +++ b/bmc-workrequests/src/main/resources/com/oracle/bmc/workrequests/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index f38be92276a..48755423854 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.57.2 + 3.58.0 \ No newline at end of file diff --git a/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties b/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties index 4b5c109525f..6819783e302 100644 --- a/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties +++ b/bmc-zpr/src/main/resources/com/oracle/bmc/zpr/client.properties @@ -3,7 +3,7 @@ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # -java.client.codegen.version = 2.113 +java.client.codegen.version = 2.118 java.minimum.client.codegen.version.from.client = 2.100 # @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20240301") \ No newline at end of file diff --git a/pom.xml b/pom.xml index 38cbc9f0a32..821ad1858db 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.57.2 + 3.58.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -60,7 +60,7 @@ true true com.acme.Undefined - 2.113 + 2.118 @@ -790,5 +790,6 @@ bmc-generativeaiagentruntime bmc-securityattribute bmc-zpr + bmc-dblm - + \ No newline at end of file