From 195ab522baf71e6ae758dcedd9bc7b72539ac690 Mon Sep 17 00:00:00 2001 From: nakshatra2312 Date: Tue, 28 Jan 2020 19:40:45 +0000 Subject: [PATCH] Releasing version 1.12.4 --- CHANGELOG.md | 9 + .../bmc-apache-connector-provider/pom.xml | 4 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- bmc-addons/pom.xml | 2 +- bmc-analytics/pom.xml | 4 +- bmc-announcementsservice/pom.xml | 4 +- bmc-apigateway/pom.xml | 4 +- bmc-applicationmigration/pom.xml | 21 + .../ApplicationMigration.java | 218 + .../ApplicationMigrationAsync.java | 339 + .../ApplicationMigrationAsyncClient.java | 1807 ++++ .../ApplicationMigrationClient.java | 955 ++ .../ApplicationMigrationPaginators.java | 723 ++ .../ApplicationMigrationWaiters.java | 76 + .../http/CancelWorkRequestConverter.java | 97 + .../ChangeMigrationCompartmentConverter.java | 122 + .../ChangeSourceCompartmentConverter.java | 121 + .../http/CreateMigrationConverter.java | 115 + .../internal/http/CreateSourceConverter.java | 114 + .../http/DeleteMigrationConverter.java | 108 + .../internal/http/DeleteSourceConverter.java | 107 + .../internal/http/GetMigrationConverter.java | 103 + .../internal/http/GetSourceConverter.java | 101 + .../http/GetWorkRequestConverter.java | 105 + .../http/ListMigrationsConverter.java | 168 + .../http/ListSourceApplicationsConverter.java | 163 + .../internal/http/ListSourcesConverter.java | 167 + .../http/ListWorkRequestErrorsConverter.java | 140 + .../http/ListWorkRequestLogsConverter.java | 139 + .../http/ListWorkRequestsConverter.java | 138 + .../http/MigrateApplicationConverter.java | 107 + .../http/UpdateMigrationConverter.java | 113 + .../internal/http/UpdateSourceConverter.java | 108 + .../model/AuthorizationDetails.java | 40 + .../model/ChangeCompartmentDetails.java | 71 + .../model/ConfigurationField.java | 171 + .../model/CreateMigrationDetails.java | 232 + .../model/CreateSourceDetails.java | 176 + .../model/DiscoveryDetails.java | 56 + .../model/IcsDiscoveryDetails.java | 101 + .../model/InternalAuthorizationDetails.java | 99 + .../model/InternalSourceDetails.java | 82 + .../model/JcsDiscoveryDetails.java | 100 + .../applicationmigration/model/Migration.java | 318 + .../model/MigrationLifecycleStates.java | 46 + .../model/MigrationStates.java | 46 + .../model/MigrationSummary.java | 281 + .../model/MigrationTypes.java | 56 + .../model/OacDiscoveryDetails.java | 101 + .../model/OcicAuthorizationDetails.java | 99 + .../model/OcicSourceDetails.java | 98 + .../model/OicDiscoveryDetails.java | 101 + .../model/OperationStatus.java | 45 + .../model/OperationTypes.java | 50 + .../model/PcsDiscoveryDetails.java | 101 + .../model/SoacsDiscoveryDetails.java | 100 + .../model/SortOrders.java | 41 + .../applicationmigration/model/Source.java | 228 + .../model/SourceApplication.java | 136 + .../model/SourceApplicationSummary.java | 136 + .../model/SourceDetails.java | 40 + .../model/SourceLifecycleStates.java | 45 + .../model/SourceSummary.java | 231 + .../model/SourceTypes.java | 52 + .../model/UpdateMigrationDetails.java | 180 + .../model/UpdateSourceDetails.java | 158 + .../model/WorkRequest.java | 209 + .../model/WorkRequestError.java | 98 + .../model/WorkRequestLogEntry.java | 84 + .../model/WorkRequestResource.java | 172 + .../model/WorkRequestSummary.java | 197 + .../requests/CancelWorkRequestRequest.java | 91 + .../ChangeMigrationCompartmentRequest.java | 108 + .../ChangeSourceCompartmentRequest.java | 108 + .../requests/CreateMigrationRequest.java | 93 + .../requests/CreateSourceRequest.java | 93 + .../requests/DeleteMigrationRequest.java | 91 + .../requests/DeleteSourceRequest.java | 91 + .../requests/GetMigrationRequest.java | 82 + .../requests/GetSourceRequest.java | 82 + .../requests/GetWorkRequestRequest.java | 82 + .../requests/ListMigrationsRequest.java | 172 + .../ListSourceApplicationsRequest.java | 165 + .../requests/ListSourcesRequest.java | 172 + .../ListWorkRequestErrorsRequest.java | 105 + .../requests/ListWorkRequestLogsRequest.java | 105 + .../requests/ListWorkRequestsRequest.java | 104 + .../requests/MigrateApplicationRequest.java | 82 + .../requests/UpdateMigrationRequest.java | 109 + .../requests/UpdateSourceRequest.java | 98 + .../responses/CancelWorkRequestResponse.java | 31 + .../ChangeMigrationCompartmentResponse.java | 38 + .../ChangeSourceCompartmentResponse.java | 38 + .../responses/CreateMigrationResponse.java | 51 + .../responses/CreateSourceResponse.java | 51 + .../responses/DeleteMigrationResponse.java | 38 + .../responses/DeleteSourceResponse.java | 38 + .../responses/GetMigrationResponse.java | 44 + .../responses/GetSourceResponse.java | 44 + .../responses/GetWorkRequestResponse.java | 44 + .../responses/ListMigrationsResponse.java | 46 + .../ListSourceApplicationsResponse.java | 46 + .../responses/ListSourcesResponse.java | 46 + .../ListWorkRequestErrorsResponse.java | 46 + .../ListWorkRequestLogsResponse.java | 46 + .../responses/ListWorkRequestsResponse.java | 46 + .../responses/MigrateApplicationResponse.java | 38 + .../responses/UpdateMigrationResponse.java | 38 + .../responses/UpdateSourceResponse.java | 38 + bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bom/pom.xml | 92 +- bmc-budget/pom.xml | 4 +- bmc-common/pom.xml | 2 +- bmc-containerengine/pom.xml | 4 +- bmc-core/pom.xml | 6 +- bmc-database/pom.xml | 6 +- ...uardAssociationWithNewDbSystemDetails.java | 23 + bmc-datacatalog/pom.xml | 21 + .../oracle/bmc/datacatalog/DataCatalog.java | 837 ++ .../bmc/datacatalog/DataCatalogAsync.java | 1500 ++++ .../datacatalog/DataCatalogAsyncClient.java | 7953 +++++++++++++++++ .../bmc/datacatalog/DataCatalogClient.java | 3249 +++++++ .../datacatalog/DataCatalogPaginators.java | 2600 ++++++ .../bmc/datacatalog/DataCatalogWaiters.java | 76 + .../ChangeCatalogCompartmentConverter.java | 117 + .../http/CreateAttributeConverter.java | 120 + .../http/CreateAttributeTagConverter.java | 129 + .../internal/http/CreateCatalogConverter.java | 102 + .../http/CreateConnectionConverter.java | 119 + .../http/CreateDataAssetConverter.java | 110 + .../http/CreateDataAssetTagConverter.java | 119 + .../internal/http/CreateEntityConverter.java | 114 + .../http/CreateEntityTagConverter.java | 120 + .../internal/http/CreateFolderConverter.java | 114 + .../http/CreateFolderTagConverter.java | 120 + .../http/CreateGlossaryConverter.java | 109 + .../internal/http/CreateJobConverter.java | 106 + .../http/CreateJobDefinitionConverter.java | 115 + .../http/CreateJobExecutionConverter.java | 119 + .../internal/http/CreateTermConverter.java | 111 + .../http/CreateTermRelationshipConverter.java | 127 + .../http/DeleteAttributeConverter.java | 111 + .../http/DeleteAttributeTagConverter.java | 117 + .../internal/http/DeleteCatalogConverter.java | 107 + .../http/DeleteConnectionConverter.java | 107 + .../http/DeleteDataAssetConverter.java | 101 + .../http/DeleteDataAssetTagConverter.java | 107 + .../internal/http/DeleteEntityConverter.java | 105 + .../http/DeleteEntityTagConverter.java | 111 + .../internal/http/DeleteFolderConverter.java | 105 + .../http/DeleteFolderTagConverter.java | 111 + .../http/DeleteGlossaryConverter.java | 100 + .../internal/http/DeleteJobConverter.java | 98 + .../http/DeleteJobDefinitionConverter.java | 103 + .../internal/http/DeleteTermConverter.java | 103 + .../http/DeleteTermRelationshipConverter.java | 115 + .../http/ExpandTreeForGlossaryConverter.java | 123 + .../http/ExportGlossaryConverter.java | 122 + .../internal/http/GetAttributeConverter.java | 127 + .../http/GetAttributeTagConverter.java | 135 + .../internal/http/GetCatalogConverter.java | 101 + .../internal/http/GetConnectionConverter.java | 124 + .../internal/http/GetDataAssetConverter.java | 117 + .../http/GetDataAssetTagConverter.java | 125 + .../internal/http/GetEntityConverter.java | 120 + .../internal/http/GetEntityTagConverter.java | 127 + .../internal/http/GetFolderConverter.java | 120 + .../internal/http/GetFolderTagConverter.java | 127 + .../internal/http/GetGlossaryConverter.java | 116 + .../internal/http/GetJobConverter.java | 114 + .../http/GetJobDefinitionConverter.java | 121 + .../http/GetJobExecutionConverter.java | 125 + .../internal/http/GetJobLogConverter.java | 125 + .../internal/http/GetJobMetricsConverter.java | 127 + .../internal/http/GetTermConverter.java | 119 + .../http/GetTermRelationshipConverter.java | 133 + .../internal/http/GetTypeConverter.java | 114 + .../http/GetWorkRequestConverter.java | 117 + .../http/ImportConnectionConverter.java | 124 + .../http/ImportGlossaryConverter.java | 120 + .../http/ListAttributeTagsConverter.java | 215 + .../http/ListAttributesConverter.java | 280 + .../internal/http/ListCatalogsConverter.java | 160 + .../http/ListConnectionsConverter.java | 228 + .../http/ListDataAssetTagsConverter.java | 205 + .../http/ListDataAssetsConverter.java | 214 + .../internal/http/ListEntitiesConverter.java | 275 + .../http/ListEntityTagsConverter.java | 208 + .../http/ListFolderTagsConverter.java | 208 + .../internal/http/ListFoldersConverter.java | 242 + .../http/ListGlossariesConverter.java | 198 + .../http/ListJobDefinitionsConverter.java | 240 + .../http/ListJobExecutionsConverter.java | 285 + .../internal/http/ListJobLogsConverter.java | 207 + .../http/ListJobMetricsConverter.java | 248 + .../internal/http/ListJobsConverter.java | 268 + .../internal/http/ListTagsConverter.java | 164 + .../http/ListTermRelationshipsConverter.java | 180 + .../internal/http/ListTermsConverter.java | 201 + .../internal/http/ListTypesConverter.java | 204 + .../http/ListWorkRequestErrorsConverter.java | 148 + .../http/ListWorkRequestLogsConverter.java | 147 + .../http/ListWorkRequestsConverter.java | 129 + .../internal/http/ObjectStatsConverter.java | 139 + .../http/ParseConnectionConverter.java | 129 + .../http/SearchCriteriaConverter.java | 173 + .../http/TestConnectionConverter.java | 121 + .../http/UpdateAttributeConverter.java | 124 + .../internal/http/UpdateCatalogConverter.java | 108 + .../http/UpdateConnectionConverter.java | 123 + .../http/UpdateDataAssetConverter.java | 114 + .../internal/http/UpdateEntityConverter.java | 118 + .../internal/http/UpdateFolderConverter.java | 118 + .../http/UpdateGlossaryConverter.java | 113 + .../internal/http/UpdateJobConverter.java | 110 + .../http/UpdateJobDefinitionConverter.java | 119 + .../internal/http/UpdateTermConverter.java | 115 + .../http/UpdateTermRelationshipConverter.java | 132 + .../http/UploadCredentialsConverter.java | 129 + .../internal/http/UsersConverter.java | 138 + .../http/ValidateConnectionConverter.java | 120 + .../bmc/datacatalog/model/Attribute.java | 409 + .../model/AttributeCollection.java | 70 + .../datacatalog/model/AttributeSummary.java | 244 + .../bmc/datacatalog/model/AttributeTag.java | 225 + .../model/AttributeTagCollection.java | 70 + .../model/AttributeTagSummary.java | 227 + .../model/BasePermissionsSummary.java | 69 + .../oracle/bmc/datacatalog/model/BaseTag.java | 208 + .../bmc/datacatalog/model/BaseTagSummary.java | 208 + .../oracle/bmc/datacatalog/model/Catalog.java | 266 + .../model/CatalogPermissionsSummary.java | 86 + .../bmc/datacatalog/model/CatalogSummary.java | 228 + .../ChangeCatalogCompartmentDetails.java | 70 + .../bmc/datacatalog/model/Connection.java | 318 + .../model/ConnectionAliasSummary.java | 88 + .../model/ConnectionCollection.java | 70 + .../datacatalog/model/ConnectionResult.java | 44 + .../datacatalog/model/ConnectionSummary.java | 229 + .../model/CreateAttributeDetails.java | 252 + .../model/CreateCatalogDetails.java | 124 + .../model/CreateConnectionDetails.java | 180 + .../model/CreateDataAssetDetails.java | 129 + .../model/CreateEntityDetails.java | 222 + .../model/CreateFolderDetails.java | 184 + .../model/CreateGlossaryDetails.java | 121 + .../model/CreateJobDefinitionDetails.java | 218 + .../datacatalog/model/CreateJobDetails.java | 179 + .../model/CreateJobExecutionDetails.java | 304 + .../datacatalog/model/CreateTagDetails.java | 84 + .../datacatalog/model/CreateTermDetails.java | 159 + .../model/CreateTermRelationshipDetails.java | 105 + .../bmc/datacatalog/model/DataAsset.java | 288 + .../model/DataAssetCollection.java | 70 + .../model/DataAssetPermissionsSummary.java | 86 + .../datacatalog/model/DataAssetSummary.java | 214 + .../bmc/datacatalog/model/DataAssetTag.java | 225 + .../model/DataAssetTagCollection.java | 70 + .../model/DataAssetTagSummary.java | 227 + .../oracle/bmc/datacatalog/model/Entity.java | 425 + .../datacatalog/model/EntityCollection.java | 68 + .../bmc/datacatalog/model/EntitySummary.java | 265 + .../bmc/datacatalog/model/EntityTag.java | 225 + .../model/EntityTagCollection.java | 70 + .../datacatalog/model/EntityTagSummary.java | 225 + .../oracle/bmc/datacatalog/model/Folder.java | 356 + .../datacatalog/model/FolderCollection.java | 68 + .../bmc/datacatalog/model/FolderSummary.java | 249 + .../bmc/datacatalog/model/FolderTag.java | 225 + .../model/FolderTagCollection.java | 70 + .../datacatalog/model/FolderTagSummary.java | 225 + .../bmc/datacatalog/model/Glossary.java | 270 + .../datacatalog/model/GlossaryCollection.java | 70 + .../model/GlossaryPermissionsSummary.java | 86 + .../datacatalog/model/GlossarySummary.java | 201 + .../model/GlossaryTreeElement.java | 280 + .../bmc/datacatalog/model/HarvestStatus.java | 51 + .../model/ImportConnectionDetails.java | 84 + .../model/ImportGlossaryDetails.java | 69 + .../com/oracle/bmc/datacatalog/model/Job.java | 405 + .../bmc/datacatalog/model/JobCollection.java | 68 + .../bmc/datacatalog/model/JobDefinition.java | 373 + .../model/JobDefinitionCollection.java | 70 + .../JobDefinitionPermissionsSummary.java | 87 + .../datacatalog/model/JobDefinitionScope.java | 157 + .../model/JobDefinitionSummary.java | 215 + .../bmc/datacatalog/model/JobExecution.java | 406 + .../model/JobExecutionCollection.java | 70 + .../datacatalog/model/JobExecutionState.java | 52 + .../model/JobExecutionSummary.java | 229 + .../datacatalog/model/JobLifecycleState.java | 46 + .../oracle/bmc/datacatalog/model/JobLog.java | 211 + .../datacatalog/model/JobLogCollection.java | 68 + .../bmc/datacatalog/model/JobLogSummary.java | 154 + .../bmc/datacatalog/model/JobMetric.java | 319 + .../model/JobMetricCollection.java | 70 + .../datacatalog/model/JobMetricSummary.java | 263 + .../datacatalog/model/JobScheduleType.java | 44 + .../bmc/datacatalog/model/JobSummary.java | 370 + .../oracle/bmc/datacatalog/model/JobType.java | 59 + .../bmc/datacatalog/model/LifecycleState.java | 56 + .../model/ParseConnectionDetails.java | 84 + .../datacatalog/model/PropertyDefinition.java | 119 + .../bmc/datacatalog/model/SearchCriteria.java | 68 + .../bmc/datacatalog/model/SearchResult.java | 502 ++ .../model/SearchResultCollection.java | 86 + .../datacatalog/model/SearchTagSummary.java | 82 + .../datacatalog/model/SearchTermSummary.java | 160 + .../oracle/bmc/datacatalog/model/Term.java | 350 + .../model/TermAssociatedObject.java | 99 + .../bmc/datacatalog/model/TermCollection.java | 68 + .../datacatalog/model/TermRelationship.java | 262 + .../model/TermRelationshipCollection.java | 70 + .../model/TermRelationshipSummary.java | 264 + .../bmc/datacatalog/model/TermSummary.java | 264 + .../datacatalog/model/TermWorkflowStatus.java | 50 + .../oracle/bmc/datacatalog/model/Type.java | 279 + .../bmc/datacatalog/model/TypeCollection.java | 68 + .../bmc/datacatalog/model/TypeSummary.java | 168 + .../model/UpdateAttributeDetails.java | 252 + .../model/UpdateCatalogDetails.java | 108 + .../model/UpdateConnectionDetails.java | 155 + .../model/UpdateDataAssetDetails.java | 110 + .../model/UpdateEntityDetails.java | 222 + .../model/UpdateFolderDetails.java | 184 + .../model/UpdateGlossaryDetails.java | 121 + .../model/UpdateJobDefinitionDetails.java | 198 + .../datacatalog/model/UpdateJobDetails.java | 160 + .../datacatalog/model/UpdateTermDetails.java | 138 + .../model/UpdateTermRelationshipDetails.java | 87 + .../model/UploadCredentialsDetails.java | 84 + .../model/ValidateConnectionDetails.java | 84 + .../model/ValidateConnectionResult.java | 84 + .../bmc/datacatalog/model/WorkRequest.java | 312 + .../datacatalog/model/WorkRequestError.java | 100 + .../bmc/datacatalog/model/WorkRequestLog.java | 82 + .../model/WorkRequestResource.java | 175 + .../ChangeCatalogCompartmentRequest.java | 97 + .../requests/CreateAttributeRequest.java | 109 + .../requests/CreateAttributeTagRequest.java | 115 + .../requests/CreateCatalogRequest.java | 91 + .../requests/CreateConnectionRequest.java | 103 + .../requests/CreateDataAssetRequest.java | 97 + .../requests/CreateDataAssetTagRequest.java | 103 + .../requests/CreateEntityRequest.java | 103 + .../requests/CreateEntityTagRequest.java | 109 + .../requests/CreateFolderRequest.java | 103 + .../requests/CreateFolderTagRequest.java | 109 + .../requests/CreateGlossaryRequest.java | 97 + .../requests/CreateJobDefinitionRequest.java | 97 + .../requests/CreateJobExecutionRequest.java | 103 + .../requests/CreateJobRequest.java | 97 + .../CreateTermRelationshipRequest.java | 109 + .../requests/CreateTermRequest.java | 103 + .../requests/DeleteAttributeRequest.java | 109 + .../requests/DeleteAttributeTagRequest.java | 115 + .../requests/DeleteCatalogRequest.java | 91 + .../requests/DeleteConnectionRequest.java | 103 + .../requests/DeleteDataAssetRequest.java | 97 + .../requests/DeleteDataAssetTagRequest.java | 103 + .../requests/DeleteEntityRequest.java | 103 + .../requests/DeleteEntityTagRequest.java | 109 + .../requests/DeleteFolderRequest.java | 103 + .../requests/DeleteFolderTagRequest.java | 109 + .../requests/DeleteGlossaryRequest.java | 97 + .../requests/DeleteJobDefinitionRequest.java | 97 + .../requests/DeleteJobRequest.java | 97 + .../DeleteTermRelationshipRequest.java | 109 + .../requests/DeleteTermRequest.java | 103 + .../ExpandTreeForGlossaryRequest.java | 97 + .../requests/ExportGlossaryRequest.java | 103 + .../requests/GetAttributeRequest.java | 160 + .../requests/GetAttributeTagRequest.java | 156 + .../requests/GetCatalogRequest.java | 80 + .../requests/GetConnectionRequest.java | 149 + .../requests/GetDataAssetRequest.java | 141 + .../requests/GetDataAssetTagRequest.java | 144 + .../requests/GetEntityRequest.java | 155 + .../requests/GetEntityTagRequest.java | 150 + .../requests/GetFolderRequest.java | 151 + .../requests/GetFolderTagRequest.java | 150 + .../requests/GetGlossaryRequest.java | 140 + .../requests/GetJobDefinitionRequest.java | 146 + .../requests/GetJobExecutionRequest.java | 154 + .../requests/GetJobLogRequest.java | 149 + .../requests/GetJobMetricsRequest.java | 155 + .../datacatalog/requests/GetJobRequest.java | 149 + .../requests/GetTermRelationshipRequest.java | 150 + .../datacatalog/requests/GetTermRequest.java | 152 + .../datacatalog/requests/GetTypeRequest.java | 140 + .../requests/GetWorkRequestRequest.java | 80 + .../requests/ImportConnectionRequest.java | 114 + .../requests/ImportGlossaryRequest.java | 109 + .../requests/ListAttributeTagsRequest.java | 284 + .../requests/ListAttributesRequest.java | 333 + .../requests/ListCatalogsRequest.java | 190 + .../requests/ListConnectionsRequest.java | 290 + .../requests/ListDataAssetTagsRequest.java | 272 + .../requests/ListDataAssetsRequest.java | 277 + .../requests/ListEntitiesRequest.java | 329 + .../requests/ListEntityTagsRequest.java | 278 + .../requests/ListFolderTagsRequest.java | 278 + .../requests/ListFoldersRequest.java | 303 + .../requests/ListGlossariesRequest.java | 264 + .../requests/ListJobDefinitionsRequest.java | 295 + .../requests/ListJobExecutionsRequest.java | 338 + .../requests/ListJobLogsRequest.java | 274 + .../requests/ListJobMetricsRequest.java | 312 + .../datacatalog/requests/ListJobsRequest.java | 334 + .../datacatalog/requests/ListTagsRequest.java | 244 + .../ListTermRelationshipsRequest.java | 254 + .../requests/ListTermsRequest.java | 274 + .../requests/ListTypesRequest.java | 269 + .../ListWorkRequestErrorsRequest.java | 178 + .../requests/ListWorkRequestLogsRequest.java | 178 + .../requests/ListWorkRequestsRequest.java | 92 + .../requests/ObjectStatsRequest.java | 178 + .../requests/ParseConnectionRequest.java | 109 + .../requests/SearchCriteriaRequest.java | 211 + .../requests/TestConnectionRequest.java | 103 + .../requests/UpdateAttributeRequest.java | 115 + .../requests/UpdateCatalogRequest.java | 97 + .../requests/UpdateConnectionRequest.java | 109 + .../requests/UpdateDataAssetRequest.java | 103 + .../requests/UpdateEntityRequest.java | 109 + .../requests/UpdateFolderRequest.java | 109 + .../requests/UpdateGlossaryRequest.java | 103 + .../requests/UpdateJobDefinitionRequest.java | 103 + .../requests/UpdateJobRequest.java | 103 + .../UpdateTermRelationshipRequest.java | 115 + .../requests/UpdateTermRequest.java | 109 + .../requests/UploadCredentialsRequest.java | 120 + .../datacatalog/requests/UsersRequest.java | 178 + .../requests/ValidateConnectionRequest.java | 103 + .../ChangeCatalogCompartmentResponse.java | 39 + .../responses/CreateAttributeResponse.java | 44 + .../responses/CreateAttributeTagResponse.java | 44 + .../responses/CreateCatalogResponse.java | 38 + .../responses/CreateConnectionResponse.java | 44 + .../responses/CreateDataAssetResponse.java | 44 + .../responses/CreateDataAssetTagResponse.java | 44 + .../responses/CreateEntityResponse.java | 44 + .../responses/CreateEntityTagResponse.java | 44 + .../responses/CreateFolderResponse.java | 44 + .../responses/CreateFolderTagResponse.java | 44 + .../responses/CreateGlossaryResponse.java | 44 + .../CreateJobDefinitionResponse.java | 44 + .../responses/CreateJobExecutionResponse.java | 44 + .../responses/CreateJobResponse.java | 44 + .../CreateTermRelationshipResponse.java | 44 + .../responses/CreateTermResponse.java | 44 + .../responses/DeleteAttributeResponse.java | 31 + .../responses/DeleteAttributeTagResponse.java | 31 + .../responses/DeleteCatalogResponse.java | 38 + .../responses/DeleteConnectionResponse.java | 31 + .../responses/DeleteDataAssetResponse.java | 31 + .../responses/DeleteDataAssetTagResponse.java | 31 + .../responses/DeleteEntityResponse.java | 31 + .../responses/DeleteEntityTagResponse.java | 31 + .../responses/DeleteFolderResponse.java | 31 + .../responses/DeleteFolderTagResponse.java | 31 + .../responses/DeleteGlossaryResponse.java | 31 + .../DeleteJobDefinitionResponse.java | 31 + .../responses/DeleteJobResponse.java | 31 + .../DeleteTermRelationshipResponse.java | 31 + .../responses/DeleteTermResponse.java | 31 + .../ExpandTreeForGlossaryResponse.java | 44 + .../responses/ExportGlossaryResponse.java | 44 + .../responses/GetAttributeResponse.java | 44 + .../responses/GetAttributeTagResponse.java | 44 + .../responses/GetCatalogResponse.java | 44 + .../responses/GetConnectionResponse.java | 44 + .../responses/GetDataAssetResponse.java | 44 + .../responses/GetDataAssetTagResponse.java | 44 + .../responses/GetEntityResponse.java | 44 + .../responses/GetEntityTagResponse.java | 44 + .../responses/GetFolderResponse.java | 44 + .../responses/GetFolderTagResponse.java | 44 + .../responses/GetGlossaryResponse.java | 44 + .../responses/GetJobDefinitionResponse.java | 44 + .../responses/GetJobExecutionResponse.java | 44 + .../responses/GetJobLogResponse.java | 44 + .../responses/GetJobMetricsResponse.java | 44 + .../datacatalog/responses/GetJobResponse.java | 44 + .../GetTermRelationshipResponse.java | 44 + .../responses/GetTermResponse.java | 44 + .../responses/GetTypeResponse.java | 44 + .../responses/GetWorkRequestResponse.java | 52 + .../responses/ImportConnectionResponse.java | 44 + .../responses/ImportGlossaryResponse.java | 38 + .../responses/ListAttributeTagsResponse.java | 44 + .../responses/ListAttributesResponse.java | 44 + .../responses/ListCatalogsResponse.java | 44 + .../responses/ListConnectionsResponse.java | 44 + .../responses/ListDataAssetTagsResponse.java | 44 + .../responses/ListDataAssetsResponse.java | 44 + .../responses/ListEntitiesResponse.java | 44 + .../responses/ListEntityTagsResponse.java | 44 + .../responses/ListFolderTagsResponse.java | 44 + .../responses/ListFoldersResponse.java | 44 + .../responses/ListGlossariesResponse.java | 44 + .../responses/ListJobDefinitionsResponse.java | 44 + .../responses/ListJobExecutionsResponse.java | 44 + .../responses/ListJobLogsResponse.java | 44 + .../responses/ListJobMetricsResponse.java | 44 + .../responses/ListJobsResponse.java | 44 + .../responses/ListTagsResponse.java | 44 + .../ListTermRelationshipsResponse.java | 44 + .../responses/ListTermsResponse.java | 44 + .../responses/ListTypesResponse.java | 44 + .../ListWorkRequestErrorsResponse.java | 44 + .../ListWorkRequestLogsResponse.java | 44 + .../responses/ListWorkRequestsResponse.java | 44 + .../responses/ObjectStatsResponse.java | 44 + .../responses/ParseConnectionResponse.java | 44 + .../responses/SearchCriteriaResponse.java | 44 + .../responses/TestConnectionResponse.java | 44 + .../responses/UpdateAttributeResponse.java | 44 + .../responses/UpdateCatalogResponse.java | 44 + .../responses/UpdateConnectionResponse.java | 44 + .../responses/UpdateDataAssetResponse.java | 44 + .../responses/UpdateEntityResponse.java | 44 + .../responses/UpdateFolderResponse.java | 44 + .../responses/UpdateGlossaryResponse.java | 44 + .../UpdateJobDefinitionResponse.java | 44 + .../responses/UpdateJobResponse.java | 44 + .../UpdateTermRelationshipResponse.java | 44 + .../responses/UpdateTermResponse.java | 44 + .../responses/UploadCredentialsResponse.java | 44 + .../datacatalog/responses/UsersResponse.java | 44 + .../responses/ValidateConnectionResponse.java | 44 + bmc-dataflow/pom.xml | 21 + .../com/oracle/bmc/dataflow/DataFlow.java | 163 + .../oracle/bmc/dataflow/DataFlowAsync.java | 227 + .../bmc/dataflow/DataFlowAsyncClient.java | 1237 +++ .../oracle/bmc/dataflow/DataFlowClient.java | 736 ++ .../bmc/dataflow/DataFlowPaginators.java | 362 + .../oracle/bmc/dataflow/DataFlowWaiters.java | 215 + .../http/CreateApplicationConverter.java | 107 + .../internal/http/CreateRunConverter.java | 99 + .../http/DeleteApplicationConverter.java | 97 + .../internal/http/DeleteRunConverter.java | 93 + .../http/GetApplicationConverter.java | 105 + .../internal/http/GetRunConverter.java | 100 + .../internal/http/GetRunLogConverter.java | 157 + .../http/ListApplicationsConverter.java | 182 + .../internal/http/ListRunLogsConverter.java | 139 + .../internal/http/ListRunsConverter.java | 200 + .../http/UpdateApplicationConverter.java | 113 + .../internal/http/UpdateRunConverter.java | 105 + .../bmc/dataflow/model/Application.java | 493 + .../dataflow/model/ApplicationLanguage.java | 55 + .../model/ApplicationLifecycleState.java | 54 + .../dataflow/model/ApplicationParameter.java | 90 + .../dataflow/model/ApplicationSummary.java | 261 + .../model/CreateApplicationDetails.java | 384 + .../bmc/dataflow/model/CreateRunDetails.java | 324 + .../com/oracle/bmc/dataflow/model/Run.java | 602 ++ .../bmc/dataflow/model/RunLifecycleState.java | 57 + .../bmc/dataflow/model/RunLogSummary.java | 249 + .../oracle/bmc/dataflow/model/RunSummary.java | 386 + .../model/UpdateApplicationDetails.java | 293 + .../bmc/dataflow/model/UpdateRunDetails.java | 90 + .../requests/CreateApplicationRequest.java | 93 + .../dataflow/requests/CreateRunRequest.java | 93 + .../requests/DeleteApplicationRequest.java | 92 + .../dataflow/requests/DeleteRunRequest.java | 92 + .../requests/GetApplicationRequest.java | 83 + .../dataflow/requests/GetRunLogRequest.java | 90 + .../bmc/dataflow/requests/GetRunRequest.java | 83 + .../requests/ListApplicationsRequest.java | 208 + .../dataflow/requests/ListRunLogsRequest.java | 98 + .../dataflow/requests/ListRunsRequest.java | 234 + .../requests/UpdateApplicationRequest.java | 99 + .../dataflow/requests/UpdateRunRequest.java | 99 + .../responses/CreateApplicationResponse.java | 45 + .../dataflow/responses/CreateRunResponse.java | 45 + .../responses/DeleteApplicationResponse.java | 31 + .../dataflow/responses/DeleteRunResponse.java | 31 + .../responses/GetApplicationResponse.java | 45 + .../dataflow/responses/GetRunLogResponse.java | 73 + .../dataflow/responses/GetRunResponse.java | 45 + .../responses/ListApplicationsResponse.java | 54 + .../responses/ListRunLogsResponse.java | 54 + .../dataflow/responses/ListRunsResponse.java | 54 + .../responses/UpdateApplicationResponse.java | 45 + .../dataflow/responses/UpdateRunResponse.java | 45 + bmc-dns/pom.xml | 4 +- bmc-dts/pom.xml | 4 +- .../oracle/bmc/dts/ApplianceExportJob.java | 106 + .../bmc/dts/ApplianceExportJobAsync.java | 136 + .../dts/ApplianceExportJobAsyncClient.java | 813 ++ .../bmc/dts/ApplianceExportJobClient.java | 578 ++ .../bmc/dts/ApplianceExportJobPaginators.java | 147 + .../bmc/dts/ApplianceExportJobWaiters.java | 125 + .../com/oracle/bmc/dts/ShippingVendors.java | 2 +- .../oracle/bmc/dts/ShippingVendorsAsync.java | 2 +- .../bmc/dts/ShippingVendorsAsyncClient.java | 2 +- .../oracle/bmc/dts/ShippingVendorsClient.java | 2 +- .../com/oracle/bmc/dts/TransferAppliance.java | 2 +- .../bmc/dts/TransferApplianceAsync.java | 2 +- .../bmc/dts/TransferApplianceAsyncClient.java | 2 +- .../bmc/dts/TransferApplianceClient.java | 2 +- .../bmc/dts/TransferApplianceEntitlement.java | 2 +- .../TransferApplianceEntitlementAsync.java | 2 +- ...ansferApplianceEntitlementAsyncClient.java | 2 +- .../TransferApplianceEntitlementClient.java | 2 +- .../TransferApplianceEntitlementWaiters.java | 2 +- .../bmc/dts/TransferApplianceWaiters.java | 2 +- .../com/oracle/bmc/dts/TransferDevice.java | 2 +- .../oracle/bmc/dts/TransferDeviceAsync.java | 2 +- .../bmc/dts/TransferDeviceAsyncClient.java | 2 +- .../oracle/bmc/dts/TransferDeviceClient.java | 2 +- .../oracle/bmc/dts/TransferDeviceWaiters.java | 2 +- .../java/com/oracle/bmc/dts/TransferJob.java | 11 +- .../com/oracle/bmc/dts/TransferJobAsync.java | 2 +- .../bmc/dts/TransferJobAsyncClient.java | 2 +- .../com/oracle/bmc/dts/TransferJobClient.java | 11 +- .../oracle/bmc/dts/TransferJobPaginators.java | 143 + .../oracle/bmc/dts/TransferJobWaiters.java | 2 +- .../com/oracle/bmc/dts/TransferPackage.java | 2 +- .../oracle/bmc/dts/TransferPackageAsync.java | 2 +- .../bmc/dts/TransferPackageAsyncClient.java | 2 +- .../oracle/bmc/dts/TransferPackageClient.java | 2 +- .../bmc/dts/TransferPackageWaiters.java | 2 +- ...tachDevicesToTransferPackageConverter.java | 2 +- ...pplianceExportJobCompartmentConverter.java | 112 + ...ChangeTransferJobCompartmentConverter.java | 2 +- .../CreateApplianceExportJobConverter.java | 111 + ...ferApplianceAdminCredentialsConverter.java | 2 +- .../CreateTransferApplianceConverter.java | 2 +- ...TransferApplianceEntitlementConverter.java | 2 +- .../http/CreateTransferDeviceConverter.java | 2 +- .../http/CreateTransferJobConverter.java | 6 +- .../http/CreateTransferPackageConverter.java | 2 +- .../DeleteApplianceExportJobConverter.java | 101 + .../DeleteTransferApplianceConverter.java | 2 +- .../http/DeleteTransferDeviceConverter.java | 2 +- .../http/DeleteTransferJobConverter.java | 6 +- .../http/DeleteTransferPackageConverter.java | 2 +- ...chDevicesFromTransferPackageConverter.java | 2 +- .../http/GetApplianceExportJobConverter.java | 110 + ...tificateAuthorityCertificateConverter.java | 2 +- .../http/GetTransferApplianceConverter.java | 2 +- ...pplianceEncryptionPassphraseConverter.java | 2 +- ...TransferApplianceEntitlementConverter.java | 2 +- .../http/GetTransferDeviceConverter.java | 2 +- .../http/GetTransferJobConverter.java | 6 +- .../http/GetTransferPackageConverter.java | 2 +- .../ListApplianceExportJobsConverter.java | 149 + .../http/ListShippingVendorsConverter.java | 2 +- ...TransferApplianceEntitlementConverter.java | 2 +- .../http/ListTransferAppliancesConverter.java | 2 +- .../http/ListTransferDevicesConverter.java | 2 +- .../http/ListTransferJobsConverter.java | 22 +- .../http/ListTransferPackagesConverter.java | 2 +- .../UpdateApplianceExportJobConverter.java | 118 + .../UpdateTransferApplianceConverter.java | 2 +- .../http/UpdateTransferDeviceConverter.java | 2 +- .../http/UpdateTransferJobConverter.java | 6 +- .../http/UpdateTransferPackageConverter.java | 2 +- .../bmc/dts/model/ApplianceExportJob.java | 571 ++ .../dts/model/ApplianceExportJobSummary.java | 235 + .../bmc/dts/model/AttachDevicesDetails.java | 2 +- ...eApplianceExportJobCompartmentDetails.java | 71 + .../ChangeTransferJobCompartmentDetails.java | 2 +- .../CreateApplianceExportJobDetails.java | 205 + .../model/CreateTransferApplianceDetails.java | 2 +- ...teTransferApplianceEntitlementDetails.java | 14 +- .../model/CreateTransferDeviceDetails.java | 2 +- .../dts/model/CreateTransferJobDetails.java | 14 +- .../model/CreateTransferPackageDetails.java | 2 +- .../bmc/dts/model/DetachDevicesDetails.java | 2 +- .../dts/model/MultipleTransferAppliances.java | 2 +- .../dts/model/MultipleTransferDevices.java | 2 +- .../dts/model/MultipleTransferPackages.java | 2 +- .../bmc/dts/model/NewTransferDevice.java | 2 +- .../oracle/bmc/dts/model/ShippingAddress.java | 2 +- .../oracle/bmc/dts/model/ShippingVendors.java | 2 +- .../bmc/dts/model/TransferAppliance.java | 2 +- .../model/TransferApplianceCertificate.java | 2 +- ...TransferApplianceEncryptionPassphrase.java | 2 +- .../model/TransferApplianceEntitlement.java | 14 +- .../TransferApplianceEntitlementSummary.java | 14 +- .../dts/model/TransferAppliancePublicKey.java | 2 +- .../dts/model/TransferApplianceSummary.java | 2 +- .../oracle/bmc/dts/model/TransferDevice.java | 2 +- .../bmc/dts/model/TransferDeviceSummary.java | 2 +- .../com/oracle/bmc/dts/model/TransferJob.java | 14 +- .../bmc/dts/model/TransferJobSummary.java | 14 +- .../oracle/bmc/dts/model/TransferPackage.java | 2 +- .../bmc/dts/model/TransferPackageSummary.java | 2 +- .../UpdateApplianceExportJobDetails.java | 380 + .../model/UpdateTransferApplianceDetails.java | 2 +- .../model/UpdateTransferDeviceDetails.java | 2 +- .../dts/model/UpdateTransferJobDetails.java | 14 +- .../model/UpdateTransferPackageDetails.java | 2 +- ...AttachDevicesToTransferPackageRequest.java | 2 +- ...eApplianceExportJobCompartmentRequest.java | 108 + .../ChangeTransferJobCompartmentRequest.java | 2 +- .../CreateApplianceExportJobRequest.java | 93 + ...nsferApplianceAdminCredentialsRequest.java | 2 +- ...teTransferApplianceEntitlementRequest.java | 2 +- .../CreateTransferApplianceRequest.java | 2 +- .../requests/CreateTransferDeviceRequest.java | 2 +- .../requests/CreateTransferJobRequest.java | 10 +- .../CreateTransferPackageRequest.java | 2 +- .../DeleteApplianceExportJobRequest.java | 90 + .../DeleteTransferApplianceRequest.java | 2 +- .../requests/DeleteTransferDeviceRequest.java | 2 +- .../requests/DeleteTransferJobRequest.java | 10 +- .../DeleteTransferPackageRequest.java | 2 +- ...tachDevicesFromTransferPackageRequest.java | 2 +- .../GetApplianceExportJobRequest.java | 82 + ...ertificateAuthorityCertificateRequest.java | 2 +- ...rApplianceEncryptionPassphraseRequest.java | 2 +- ...etTransferApplianceEntitlementRequest.java | 2 +- .../requests/GetTransferApplianceRequest.java | 2 +- .../requests/GetTransferDeviceRequest.java | 2 +- .../dts/requests/GetTransferJobRequest.java | 10 +- .../requests/GetTransferPackageRequest.java | 2 +- .../ListApplianceExportJobsRequest.java | 155 + .../requests/ListShippingVendorsRequest.java | 2 +- ...stTransferApplianceEntitlementRequest.java | 2 +- .../ListTransferAppliancesRequest.java | 2 +- .../requests/ListTransferDevicesRequest.java | 2 +- .../dts/requests/ListTransferJobsRequest.java | 30 +- .../requests/ListTransferPackagesRequest.java | 2 +- .../UpdateApplianceExportJobRequest.java | 96 + .../UpdateTransferApplianceRequest.java | 2 +- .../requests/UpdateTransferDeviceRequest.java | 2 +- .../requests/UpdateTransferJobRequest.java | 10 +- .../UpdateTransferPackageRequest.java | 2 +- ...ttachDevicesToTransferPackageResponse.java | 2 +- ...ApplianceExportJobCompartmentResponse.java | 29 + .../ChangeTransferJobCompartmentResponse.java | 2 +- .../CreateApplianceExportJobResponse.java | 41 + ...sferApplianceAdminCredentialsResponse.java | 2 +- ...eTransferApplianceEntitlementResponse.java | 2 +- .../CreateTransferApplianceResponse.java | 2 +- .../CreateTransferDeviceResponse.java | 2 +- .../responses/CreateTransferJobResponse.java | 2 +- .../CreateTransferPackageResponse.java | 2 +- .../DeleteApplianceExportJobResponse.java | 29 + .../DeleteTransferApplianceResponse.java | 2 +- .../DeleteTransferDeviceResponse.java | 2 +- .../responses/DeleteTransferJobResponse.java | 2 +- .../DeleteTransferPackageResponse.java | 2 +- ...achDevicesFromTransferPackageResponse.java | 2 +- .../GetApplianceExportJobResponse.java | 41 + ...rtificateAuthorityCertificateResponse.java | 2 +- ...ApplianceEncryptionPassphraseResponse.java | 2 +- ...tTransferApplianceEntitlementResponse.java | 2 +- .../GetTransferApplianceResponse.java | 2 +- .../responses/GetTransferDeviceResponse.java | 2 +- .../dts/responses/GetTransferJobResponse.java | 2 +- .../responses/GetTransferPackageResponse.java | 2 +- .../ListApplianceExportJobsResponse.java | 46 + .../ListShippingVendorsResponse.java | 2 +- ...tTransferApplianceEntitlementResponse.java | 2 +- .../ListTransferAppliancesResponse.java | 2 +- .../ListTransferDevicesResponse.java | 2 +- .../responses/ListTransferJobsResponse.java | 2 +- .../ListTransferPackagesResponse.java | 2 +- .../UpdateApplianceExportJobResponse.java | 41 + .../UpdateTransferApplianceResponse.java | 2 +- .../UpdateTransferDeviceResponse.java | 2 +- .../responses/UpdateTransferJobResponse.java | 2 +- .../UpdateTransferPackageResponse.java | 2 +- bmc-email/pom.xml | 4 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 16 +- .../CreateLoadBalancerRuleSetExample.java | 27 + bmc-filestorage/pom.xml | 4 +- bmc-full/pom.xml | 16 +- bmc-functions/pom.xml | 4 +- bmc-healthchecks/pom.xml | 4 +- bmc-identity/pom.xml | 4 +- bmc-integration/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-limits/pom.xml | 4 +- bmc-loadbalancer/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 6 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-osmanagement/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-shaded/bmc-shaded-full/pom.xml | 2 +- bmc-shaded/pom.xml | 2 +- bmc-streaming/pom.xml | 4 +- bmc-waas/pom.xml | 4 +- bmc-workrequests/pom.xml | 4 +- pom.xml | 5 +- 801 files changed, 97653 insertions(+), 303 deletions(-) create mode 100644 bmc-applicationmigration/pom.xml create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigration.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigrationAsync.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigrationAsyncClient.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigrationClient.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigrationPaginators.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/ApplicationMigrationWaiters.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/CancelWorkRequestConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ChangeMigrationCompartmentConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ChangeSourceCompartmentConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/CreateMigrationConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/CreateSourceConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/DeleteMigrationConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/DeleteSourceConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/GetMigrationConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/GetSourceConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/GetWorkRequestConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListMigrationsConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListSourceApplicationsConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListSourcesConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListWorkRequestErrorsConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListWorkRequestLogsConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/ListWorkRequestsConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/MigrateApplicationConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/UpdateMigrationConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/internal/http/UpdateSourceConverter.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/AuthorizationDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/ChangeCompartmentDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/ConfigurationField.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/CreateMigrationDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/CreateSourceDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/DiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/IcsDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/InternalAuthorizationDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/InternalSourceDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/JcsDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/Migration.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/MigrationLifecycleStates.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/MigrationStates.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/MigrationSummary.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/MigrationTypes.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OacDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OcicAuthorizationDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OcicSourceDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OicDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OperationStatus.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/OperationTypes.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/PcsDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SoacsDiscoveryDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SortOrders.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/Source.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceApplication.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceApplicationSummary.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceLifecycleStates.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceSummary.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/SourceTypes.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/UpdateMigrationDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/UpdateSourceDetails.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/WorkRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/WorkRequestError.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/WorkRequestLogEntry.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/WorkRequestResource.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/model/WorkRequestSummary.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/CancelWorkRequestRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ChangeMigrationCompartmentRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ChangeSourceCompartmentRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/CreateMigrationRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/CreateSourceRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/DeleteMigrationRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/DeleteSourceRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/GetMigrationRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/GetSourceRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/GetWorkRequestRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListMigrationsRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListSourceApplicationsRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListSourcesRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/ListWorkRequestsRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/MigrateApplicationRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/UpdateMigrationRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/requests/UpdateSourceRequest.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/CancelWorkRequestResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ChangeMigrationCompartmentResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ChangeSourceCompartmentResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/CreateMigrationResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/CreateSourceResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/DeleteMigrationResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/DeleteSourceResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/GetMigrationResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/GetSourceResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/GetWorkRequestResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListMigrationsResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListSourceApplicationsResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListSourcesResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/ListWorkRequestsResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/MigrateApplicationResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/UpdateMigrationResponse.java create mode 100644 bmc-applicationmigration/src/main/java/com/oracle/bmc/applicationmigration/responses/UpdateSourceResponse.java create mode 100644 bmc-datacatalog/pom.xml create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogPaginators.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogWaiters.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ChangeCatalogCompartmentConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateCatalogConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobDefinitionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobExecutionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermRelationshipConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteCatalogConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobDefinitionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermRelationshipConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExpandTreeForGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExportGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetCatalogConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderTagConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobDefinitionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobExecutionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobLogConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobMetricsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermRelationshipConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTypeConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetWorkRequestConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributeTagsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributesConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListCatalogsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListConnectionsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetTagsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntitiesConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntityTagsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFolderTagsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFoldersConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListGlossariesConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobDefinitionsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobExecutionsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobLogsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobMetricsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTagsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermRelationshipsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTypesConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestErrorsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestLogsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ObjectStatsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ParseConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/SearchCriteriaConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/TestConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateAttributeConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateCatalogConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateDataAssetConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateEntityConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateFolderConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateGlossaryConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobDefinitionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermRelationshipConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UploadCredentialsConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UsersConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ValidateConnectionConverter.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTag.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BasePermissionsSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTag.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Catalog.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogPermissionsSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ChangeCatalogCompartmentDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Connection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionAliasSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionResult.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateAttributeDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateCatalogDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateConnectionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateDataAssetDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateEntityDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateFolderDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateGlossaryDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobExecutionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTagDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermRelationshipDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetPermissionsSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTag.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTag.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTag.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Glossary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryPermissionsSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossarySummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryTreeElement.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/HarvestStatus.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportConnectionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportGlossaryDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionPermissionsSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionScope.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecution.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionState.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLifecycleState.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLog.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetric.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobScheduleType.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LifecycleState.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ParseConnectionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/PropertyDefinition.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchCriteria.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResult.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResultCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTagSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTermSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Term.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermAssociatedObject.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationship.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermWorkflowStatus.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Type.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeCollection.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeSummary.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateAttributeDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateCatalogDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateConnectionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateDataAssetDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateEntityDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateFolderDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateGlossaryDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermRelationshipDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UploadCredentialsDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionResult.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestError.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestLog.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestResource.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ChangeCatalogCompartmentRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateCatalogRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobDefinitionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobExecutionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRelationshipRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteCatalogRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobDefinitionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRelationshipRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExpandTreeForGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExportGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetCatalogRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderTagRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobDefinitionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobExecutionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobLogRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobMetricsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRelationshipRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTypeRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetWorkRequestRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributeTagsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListCatalogsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListConnectionsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetTagsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntityTagsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFolderTagsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListGlossariesRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobExecutionsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobLogsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobMetricsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTagsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermRelationshipsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTypesRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ObjectStatsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ParseConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/SearchCriteriaRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/TestConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateAttributeRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateCatalogRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateDataAssetRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateEntityRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateFolderRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateGlossaryRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobDefinitionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRelationshipRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UploadCredentialsRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UsersRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ValidateConnectionRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ChangeCatalogCompartmentResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateCatalogResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobDefinitionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobExecutionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermRelationshipResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteCatalogResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobDefinitionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermRelationshipResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExpandTreeForGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExportGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetCatalogResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderTagResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobDefinitionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobExecutionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobLogResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobMetricsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermRelationshipResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTypeResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetWorkRequestResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributeTagsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributesResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListCatalogsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListConnectionsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetTagsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntitiesResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntityTagsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFolderTagsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFoldersResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListGlossariesResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobDefinitionsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobExecutionsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobLogsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobMetricsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTagsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermRelationshipsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTypesResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ObjectStatsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ParseConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/SearchCriteriaResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/TestConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateAttributeResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateCatalogResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateConnectionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateDataAssetResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateEntityResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateFolderResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateGlossaryResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobDefinitionResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermRelationshipResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UploadCredentialsResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UsersResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ValidateConnectionResponse.java create mode 100644 bmc-dataflow/pom.xml create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlow.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsync.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowClient.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowPaginators.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowWaiters.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateApplicationConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateRunConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteApplicationConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteRunConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetApplicationConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunLogConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListApplicationsConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunLogsConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunsConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateApplicationConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateRunConverter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Application.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLanguage.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLifecycleState.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationParameter.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationSummary.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateApplicationDetails.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateRunDetails.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Run.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLifecycleState.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLogSummary.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunSummary.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateApplicationDetails.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateRunDetails.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateApplicationRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateRunRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteApplicationRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteRunRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetApplicationRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunLogRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListApplicationsRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunLogsRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunsRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateApplicationRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateRunRequest.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateApplicationResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateRunResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteApplicationResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteRunResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetApplicationResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunLogResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListApplicationsResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunLogsResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunsResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateApplicationResponse.java create mode 100644 bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateRunResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJob.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsync.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobClient.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobPaginators.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobWaiters.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobPaginators.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeApplianceExportJobCompartmentConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateApplianceExportJobConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteApplianceExportJobConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetApplianceExportJobConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListApplianceExportJobsConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateApplianceExportJobConverter.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJob.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJobSummary.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeApplianceExportJobCompartmentDetails.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateApplianceExportJobDetails.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateApplianceExportJobDetails.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeApplianceExportJobCompartmentRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateApplianceExportJobRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteApplianceExportJobRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetApplianceExportJobRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListApplianceExportJobsRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateApplianceExportJobRequest.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeApplianceExportJobCompartmentResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateApplianceExportJobResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteApplianceExportJobResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetApplianceExportJobResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListApplianceExportJobsResponse.java create mode 100644 bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateApplianceExportJobResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d7c86cf435..c8e6f4aef9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). + +## 1.12.4 - 2020-01-28 +### Added +- Support for the Application Migration service +- Support for the Data Flow service +- Support for the Data Catalog service +- Support for cross-shape Data Guard in the Database service +- Support for offline data export in the Data Transfer service + ## 1.12.3 - 2020-01-21 ### Added - Support for getting DRG redundancy status in the Networking service diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 5a355486c46..1475fdaeab2 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 - 1.12.3 + 1.12.4 ../pom.xml @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 com.oracle.oci.sdk oci-java-sdk-audit - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-containerengine - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-core - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-database - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-dns - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-email - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-filestorage - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-identity - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-resourcesearch - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-waas - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-streaming - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-monitoring - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-ons - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-budget - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-limits - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-functions - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-events - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-dts - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-oce - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-oda - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-analytics - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-integration - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-marketplace - 1.12.3 + 1.12.4 false com.oracle.oci.sdk oci-java-sdk-apigateway - 1.12.3 + 1.12.4 + false + + + com.oracle.oci.sdk + oci-java-sdk-applicationmigration + 1.12.4 + false + + + com.oracle.oci.sdk + oci-java-sdk-datacatalog + 1.12.4 + false + + + com.oracle.oci.sdk + oci-java-sdk-dataflow + 1.12.4 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 286746063d9..04913646183 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 3d9b4ee79a9..9c82b56acbf 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 42c6afdc999..c049af24e32 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index e4b08ab1e90..b560e01e1ec 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.3 + 1.12.4 diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 995a25f337a..be8566689ba 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.3 + 1.12.4 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java index fd31d69dea9..39349e8371e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDataGuardAssociationWithNewDbSystemDetails.java @@ -79,6 +79,15 @@ public Builder availabilityDomain(String availabilityDomain) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; @@ -126,6 +135,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails build() { transportType, displayName, availabilityDomain, + shape, subnetId, nsgIds, backupNetworkNsgIds, @@ -142,6 +152,7 @@ public Builder copy(CreateDataGuardAssociationWithNewDbSystemDetails o) { .transportType(o.getTransportType()) .displayName(o.getDisplayName()) .availabilityDomain(o.getAvailabilityDomain()) + .shape(o.getShape()) .subnetId(o.getSubnetId()) .nsgIds(o.getNsgIds()) .backupNetworkNsgIds(o.getBackupNetworkNsgIds()) @@ -166,6 +177,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails( TransportType transportType, String displayName, String availabilityDomain, + String shape, String subnetId, java.util.List nsgIds, java.util.List backupNetworkNsgIds, @@ -173,6 +185,7 @@ public CreateDataGuardAssociationWithNewDbSystemDetails( super(databaseAdminPassword, protectionMode, transportType); this.displayName = displayName; this.availabilityDomain = availabilityDomain; + this.shape = shape; this.subnetId = subnetId; this.nsgIds = nsgIds; this.backupNetworkNsgIds = backupNetworkNsgIds; @@ -191,6 +204,16 @@ public CreateDataGuardAssociationWithNewDbSystemDetails( @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") String availabilityDomain; + /** + * The shape of the DB system to launch to set up the Data Guard association. The shape determines the number of CPU cores and the amount of memory available for the DB system. + * Only virtual machine shapes are valid shapes. If you do not supply this parameter, the default shape is the shape of the primary DB system. + *

+ * To get a list of all shapes, use the {@link #listDbSystemShapes(ListDbSystemShapesRequest) listDbSystemShapes} operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + String shape; + /** * The OCID of the subnet the DB system is associated with. * **Subnet Restrictions:** diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml new file mode 100644 index 00000000000..9826175fa5a --- /dev/null +++ b/bmc-datacatalog/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 1.12.4 + ../pom.xml + + oci-java-sdk-datacatalog + Oracle Cloud Infrastructure SDK - Data Catalog + This project contains the SDK used for Oracle Cloud Infrastructure Data Catalog + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 1.12.4 + + + \ No newline at end of file diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java new file mode 100644 index 00000000000..e4dadc2267e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java @@ -0,0 +1,837 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public interface DataCatalog extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Moves a resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ChangeCatalogCompartmentResponse changeCatalogCompartment( + ChangeCatalogCompartmentRequest request); + + /** + * Creates a new entity attribute. + * @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. + */ + CreateAttributeResponse createAttribute(CreateAttributeRequest request); + + /** + * Creates a new entity attribute tag. + * @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. + */ + CreateAttributeTagResponse createAttributeTag(CreateAttributeTagRequest request); + + /** + * Creates a new data catalog instance that includes a console and an API URL for managing metadata operations. + * For more information, please see the documentation. + * + * @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. + */ + CreateCatalogResponse createCatalog(CreateCatalogRequest request); + + /** + * Creates a new connection. + * @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. + */ + CreateConnectionResponse createConnection(CreateConnectionRequest request); + + /** + * Create a new data asset. + * @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. + */ + CreateDataAssetResponse createDataAsset(CreateDataAssetRequest request); + + /** + * Creates a new data asset tag. + * @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. + */ + CreateDataAssetTagResponse createDataAssetTag(CreateDataAssetTagRequest request); + + /** + * Creates a new data entity. + * @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. + */ + CreateEntityResponse createEntity(CreateEntityRequest request); + + /** + * Creates a new entity tag. + * @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. + */ + CreateEntityTagResponse createEntityTag(CreateEntityTagRequest request); + + /** + * Creates a new folder. + * @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. + */ + CreateFolderResponse createFolder(CreateFolderRequest request); + + /** + * Creates a new folder tag. + * @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. + */ + CreateFolderTagResponse createFolderTag(CreateFolderTagRequest request); + + /** + * Creates a new glossary. + * @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. + */ + CreateGlossaryResponse createGlossary(CreateGlossaryRequest request); + + /** + * Creates a new job. + * @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. + */ + CreateJobResponse createJob(CreateJobRequest request); + + /** + * Creates a new job definition. + * @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. + */ + CreateJobDefinitionResponse createJobDefinition(CreateJobDefinitionRequest request); + + /** + * Creates a new job execution. + * @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. + */ + CreateJobExecutionResponse createJobExecution(CreateJobExecutionRequest request); + + /** + * Create a new term within a glossary. + * @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. + */ + CreateTermResponse createTerm(CreateTermRequest request); + + /** + * Creates a new term relationship for this term within a glossary. + * @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. + */ + CreateTermRelationshipResponse createTermRelationship(CreateTermRelationshipRequest request); + + /** + * Deletes a specific entity attribute. + * @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. + */ + DeleteAttributeResponse deleteAttribute(DeleteAttributeRequest request); + + /** + * Deletes a specific entity attribute tag. + * @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. + */ + DeleteAttributeTagResponse deleteAttributeTag(DeleteAttributeTagRequest request); + + /** + * Deletes a data catalog resource by identifier. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + DeleteCatalogResponse deleteCatalog(DeleteCatalogRequest request); + + /** + * Deletes a specific connection of a data asset. + * @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. + */ + DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request); + + /** + * Deletes a specific data asset identified by it's key. + * @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. + */ + DeleteDataAssetResponse deleteDataAsset(DeleteDataAssetRequest request); + + /** + * Deletes a specific data asset tag. + * @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. + */ + DeleteDataAssetTagResponse deleteDataAssetTag(DeleteDataAssetTagRequest request); + + /** + * Deletes a specific data entity. + * @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. + */ + DeleteEntityResponse deleteEntity(DeleteEntityRequest request); + + /** + * Deletes a specific entity tag. + * @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. + */ + DeleteEntityTagResponse deleteEntityTag(DeleteEntityTagRequest request); + + /** + * Deletes a specific folder of a data asset identified by it's key. + * @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. + */ + DeleteFolderResponse deleteFolder(DeleteFolderRequest request); + + /** + * Deletes a specific folder tag. + * @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. + */ + DeleteFolderTagResponse deleteFolderTag(DeleteFolderTagRequest request); + + /** + * Deletes a specific glossary identified by it's key. + * @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. + */ + DeleteGlossaryResponse deleteGlossary(DeleteGlossaryRequest request); + + /** + * Deletes a specific job identified by it's key. + * @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. + */ + DeleteJobResponse deleteJob(DeleteJobRequest request); + + /** + * Deletes a specific job definition identified by it's key. + * @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. + */ + DeleteJobDefinitionResponse deleteJobDefinition(DeleteJobDefinitionRequest request); + + /** + * Deletes a specific glossary term. + * @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. + */ + DeleteTermResponse deleteTerm(DeleteTermRequest request); + + /** + * Deletes a specific glossary term relationship. + * @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. + */ + DeleteTermRelationshipResponse deleteTermRelationship(DeleteTermRelationshipRequest request); + + /** + * Returns the fully expanded tree hierarchy of parent and child terms in this glossary. + * @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. + */ + ExpandTreeForGlossaryResponse expandTreeForGlossary(ExpandTreeForGlossaryRequest request); + + /** + * Export the glossary and the terms and return the exported glossary as csv or json. + * @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. + */ + ExportGlossaryResponse exportGlossary(ExportGlossaryRequest request); + + /** + * Gets a specific entity attribute by key. + * @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. + */ + GetAttributeResponse getAttribute(GetAttributeRequest request); + + /** + * Gets a specific entity attribute tag by key. + * @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. + */ + GetAttributeTagResponse getAttributeTag(GetAttributeTagRequest request); + + /** + * Gets a data catalog by identifier. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + GetCatalogResponse getCatalog(GetCatalogRequest request); + + /** + * Gets a specific data asset connection by key. + * @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. + */ + GetConnectionResponse getConnection(GetConnectionRequest request); + + /** + * Gets a specific data asset for the given key within a data catalog. + * @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. + */ + GetDataAssetResponse getDataAsset(GetDataAssetRequest request); + + /** + * Gets a specific data asset tag by key. + * @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. + */ + GetDataAssetTagResponse getDataAssetTag(GetDataAssetTagRequest request); + + /** + * Gets a specific data entity by key for a data asset. + * @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. + */ + GetEntityResponse getEntity(GetEntityRequest request); + + /** + * Gets a specific entity tag by key. + * @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. + */ + GetEntityTagResponse getEntityTag(GetEntityTagRequest request); + + /** + * Gets a specific data asset folder by key. + * @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. + */ + GetFolderResponse getFolder(GetFolderRequest request); + + /** + * Gets a specific folder tag by key. + * @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. + */ + GetFolderTagResponse getFolderTag(GetFolderTagRequest request); + + /** + * Gets a specific glossary by key within a data catalog. + * @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. + */ + GetGlossaryResponse getGlossary(GetGlossaryRequest request); + + /** + * Gets a specific job by key within a data catalog. + * @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. + */ + GetJobResponse getJob(GetJobRequest request); + + /** + * Gets a specific job definition by key within a data catalog. + * @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. + */ + GetJobDefinitionResponse getJobDefinition(GetJobDefinitionRequest request); + + /** + * Gets a specific job execution by key. + * @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. + */ + GetJobExecutionResponse getJobExecution(GetJobExecutionRequest request); + + /** + * Gets a specific job log by key. + * @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. + */ + GetJobLogResponse getJobLog(GetJobLogRequest request); + + /** + * Gets a specific job metric by key. + * @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. + */ + GetJobMetricsResponse getJobMetrics(GetJobMetricsRequest request); + + /** + * Gets a specific glossary term by key. + * @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. + */ + GetTermResponse getTerm(GetTermRequest request); + + /** + * Gets a specific glossary term relationship by key. + * @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. + */ + GetTermRelationshipResponse getTermRelationship(GetTermRelationshipRequest request); + + /** + * Gets a specific type by key within a data catalog. + * @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. + */ + GetTypeResponse getType(GetTypeRequest request); + + /** + * Gets the status of the work request with the given OCID. + * @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. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Import new connection for this data asset. + * @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. + */ + ImportConnectionResponse importConnection(ImportConnectionRequest request); + + /** + * Import the glossary and the terms from csv or json files and return the imported glossary resource. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ImportGlossaryResponse importGlossary(ImportGlossaryRequest request); + + /** + * Returns a list of all tags for an entity attribute. + * @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. + */ + ListAttributeTagsResponse listAttributeTags(ListAttributeTagsRequest request); + + /** + * Returns a list of all attributes of an data entity. + * @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. + */ + ListAttributesResponse listAttributes(ListAttributesRequest request); + + /** + * Returns a list of all the data catalogs in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListCatalogsResponse listCatalogs(ListCatalogsRequest request); + + /** + * Returns a list of all Connections for a data asset. + * @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. + */ + ListConnectionsResponse listConnections(ListConnectionsRequest request); + + /** + * Returns a list of all tags for a data asset. + * @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. + */ + ListDataAssetTagsResponse listDataAssetTags(ListDataAssetTagsRequest request); + + /** + * Returns a list of data assets within a data catalog. + * @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. + */ + ListDataAssetsResponse listDataAssets(ListDataAssetsRequest request); + + /** + * Returns a list of all entities of a data asset. + * @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. + */ + ListEntitiesResponse listEntities(ListEntitiesRequest request); + + /** + * Returns a list of all tags for a data entity. + * @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. + */ + ListEntityTagsResponse listEntityTags(ListEntityTagsRequest request); + + /** + * Returns a list of all tags for a folder. + * @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. + */ + ListFolderTagsResponse listFolderTags(ListFolderTagsRequest request); + + /** + * Returns a list of all folders. + * @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. + */ + ListFoldersResponse listFolders(ListFoldersRequest request); + + /** + * Returns a list of all glossaries within a data catalog. + * @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. + */ + ListGlossariesResponse listGlossaries(ListGlossariesRequest request); + + /** + * Returns a list of job definitions within a data catalog. + * @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. + */ + ListJobDefinitionsResponse listJobDefinitions(ListJobDefinitionsRequest request); + + /** + * Returns a list of job executions for a job. + * @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. + */ + ListJobExecutionsResponse listJobExecutions(ListJobExecutionsRequest request); + + /** + * Returns a list of job logs. + * @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. + */ + ListJobLogsResponse listJobLogs(ListJobLogsRequest request); + + /** + * Returns a list of job metrics. + * @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. + */ + ListJobMetricsResponse listJobMetrics(ListJobMetricsRequest request); + + /** + * Returns a list of jobs within a data catalog. + * @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. + */ + ListJobsResponse listJobs(ListJobsRequest request); + + /** + * Returns a list of all user created tags in the system. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListTagsResponse listTags(ListTagsRequest request); + + /** + * Returns a list of all term relationships within a glossary. + * @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. + */ + ListTermRelationshipsResponse listTermRelationships(ListTermRelationshipsRequest request); + + /** + * Returns a list of all terms within a glossary. + * @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. + */ + ListTermsResponse listTerms(ListTermsRequest request); + + /** + * Returns a list of all types within a data catalog. + * @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. + */ + ListTypesResponse listTypes(ListTypesRequest request); + + /** + * Returns a (paginated) list of errors for a given work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Returns a (paginated) list of logs for a given work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + 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. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Returns stats on objects by type in the repository. + * @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. + */ + ObjectStatsResponse objectStats(ObjectStatsRequest request); + + /** + * Parse data asset references through connections from this data asset. + * @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. + */ + ParseConnectionResponse parseConnection(ParseConnectionRequest request); + + /** + * Returns a list of search results within a data catalog. + * @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. + */ + SearchCriteriaResponse searchCriteria(SearchCriteriaRequest request); + + /** + * Test the connection by connecting to the data asset using credentials in the metadata. + * @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. + */ + TestConnectionResponse testConnection(TestConnectionRequest request); + + /** + * Updates a specific data asset attribute. + * @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. + */ + UpdateAttributeResponse updateAttribute(UpdateAttributeRequest request); + + /** + * Updates the data catalog. + * @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. + */ + UpdateCatalogResponse updateCatalog(UpdateCatalogRequest request); + + /** + * Updates a specific connection of a data asset. + * @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. + */ + UpdateConnectionResponse updateConnection(UpdateConnectionRequest request); + + /** + * Updates a specific data asset identified by the given key. + * @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. + */ + UpdateDataAssetResponse updateDataAsset(UpdateDataAssetRequest request); + + /** + * Updates a specific data entity. + * @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. + */ + UpdateEntityResponse updateEntity(UpdateEntityRequest request); + + /** + * Updates a specific folder of a data asset. + * @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. + */ + UpdateFolderResponse updateFolder(UpdateFolderRequest request); + + /** + * Updates a specific glossary identified by the given key. + * @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. + */ + UpdateGlossaryResponse updateGlossary(UpdateGlossaryRequest request); + + /** + * Updates a specific job identified by the given key. + * @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. + */ + UpdateJobResponse updateJob(UpdateJobRequest request); + + /** + * Update a specific job definition identified by the given key. + * @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. + */ + UpdateJobDefinitionResponse updateJobDefinition(UpdateJobDefinitionRequest request); + + /** + * Updates a specific glossary term. + * @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. + */ + UpdateTermResponse updateTerm(UpdateTermRequest request); + + /** + * Updates a specific glossary term relationship. + * @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. + */ + UpdateTermRelationshipResponse updateTermRelationship(UpdateTermRelationshipRequest request); + + /** + * Upload connection credentails and metadata for this connection. + * @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. + */ + UploadCredentialsResponse uploadCredentials(UploadCredentialsRequest request); + + /** + * Returns active users in the system. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + UsersResponse users(UsersRequest request); + + /** + * Validate connection by connecting to the data asset using credentials in metadata. + * @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. + */ + ValidateConnectionResponse validateConnection(ValidateConnectionRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DataCatalogWaiters 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. + */ + DataCatalogPaginators getPaginators(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java new file mode 100644 index 00000000000..3cbd57b11af --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java @@ -0,0 +1,1500 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public interface DataCatalogAsync extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Moves a resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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 changeCatalogCompartment( + ChangeCatalogCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeCatalogCompartmentRequest, ChangeCatalogCompartmentResponse> + handler); + + /** + * Creates a new entity attribute. + * + * @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 createAttribute( + CreateAttributeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new entity attribute tag. + * + * @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 createAttributeTag( + CreateAttributeTagRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateAttributeTagRequest, CreateAttributeTagResponse> + handler); + + /** + * Creates a new data catalog instance that includes a console and an API URL for managing metadata operations. + * For more information, please see the documentation. + * + * + * @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 createCatalog( + CreateCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new connection. + * + * @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 createConnection( + CreateConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Create a new data asset. + * + * @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 createDataAsset( + CreateDataAssetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new data asset tag. + * + * @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 createDataAssetTag( + CreateDataAssetTagRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDataAssetTagRequest, CreateDataAssetTagResponse> + handler); + + /** + * Creates a new data entity. + * + * @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 createEntity( + CreateEntityRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new entity tag. + * + * @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 createEntityTag( + CreateEntityTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new folder. + * + * @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 createFolder( + CreateFolderRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new folder tag. + * + * @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 createFolderTag( + CreateFolderTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new glossary. + * + * @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 createGlossary( + CreateGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new job. + * + * @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 createJob( + CreateJobRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Creates a new job definition. + * + * @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 createJobDefinition( + CreateJobDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateJobDefinitionRequest, CreateJobDefinitionResponse> + handler); + + /** + * Creates a new job execution. + * + * @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 createJobExecution( + CreateJobExecutionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateJobExecutionRequest, CreateJobExecutionResponse> + handler); + + /** + * Create a new term within a glossary. + * + * @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 createTerm( + CreateTermRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Creates a new term relationship for this term within a glossary. + * + * @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 createTermRelationship( + CreateTermRelationshipRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateTermRelationshipRequest, CreateTermRelationshipResponse> + handler); + + /** + * Deletes a specific entity attribute. + * + * @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 deleteAttribute( + DeleteAttributeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific entity attribute tag. + * + * @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 deleteAttributeTag( + DeleteAttributeTagRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteAttributeTagRequest, DeleteAttributeTagResponse> + handler); + + /** + * Deletes a data catalog resource by identifier. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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 deleteCatalog( + DeleteCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific connection of a data asset. + * + * @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 deleteConnection( + DeleteConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific data asset identified by it's key. + * + * @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 deleteDataAsset( + DeleteDataAssetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific data asset tag. + * + * @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 deleteDataAssetTag( + DeleteDataAssetTagRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDataAssetTagRequest, DeleteDataAssetTagResponse> + handler); + + /** + * Deletes a specific data entity. + * + * @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 deleteEntity( + DeleteEntityRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific entity tag. + * + * @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 deleteEntityTag( + DeleteEntityTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific folder of a data asset identified by it's key. + * + * @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 deleteFolder( + DeleteFolderRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific folder tag. + * + * @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 deleteFolderTag( + DeleteFolderTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific glossary identified by it's key. + * + * @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 deleteGlossary( + DeleteGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Deletes a specific job identified by it's key. + * + * @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 deleteJob( + DeleteJobRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes a specific job definition identified by it's key. + * + * @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 deleteJobDefinition( + DeleteJobDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteJobDefinitionRequest, DeleteJobDefinitionResponse> + handler); + + /** + * Deletes a specific glossary term. + * + * @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 deleteTerm( + DeleteTermRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes a specific glossary term relationship. + * + * @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 deleteTermRelationship( + DeleteTermRelationshipRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteTermRelationshipRequest, DeleteTermRelationshipResponse> + handler); + + /** + * Returns the fully expanded tree hierarchy of parent and child terms in this glossary. + * + * @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 expandTreeForGlossary( + ExpandTreeForGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler< + ExpandTreeForGlossaryRequest, ExpandTreeForGlossaryResponse> + handler); + + /** + * Export the glossary and the terms and return the exported glossary as csv or json. + * + * @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 exportGlossary( + ExportGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific entity attribute by key. + * + * @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 getAttribute( + GetAttributeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific entity attribute tag by key. + * + * @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 getAttributeTag( + GetAttributeTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a data catalog by identifier. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getCatalog( + GetCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific data asset connection by key. + * + * @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 getConnection( + GetConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific data asset for the given key within a data catalog. + * + * @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 getDataAsset( + GetDataAssetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific data asset tag by key. + * + * @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 getDataAssetTag( + GetDataAssetTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific data entity by key for a data asset. + * + * @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 getEntity( + GetEntityRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific entity tag by key. + * + * @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 getEntityTag( + GetEntityTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific data asset folder by key. + * + * @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 getFolder( + GetFolderRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific folder tag by key. + * + * @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 getFolderTag( + GetFolderTagRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific glossary by key within a data catalog. + * + * @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 getGlossary( + GetGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific job by key within a data catalog. + * + * @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 getJob( + GetJobRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific job definition by key within a data catalog. + * + * @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 getJobDefinition( + GetJobDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific job execution by key. + * + * @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 getJobExecution( + GetJobExecutionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific job log by key. + * + * @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 getJobLog( + GetJobLogRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific job metric by key. + * + * @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 getJobMetrics( + GetJobMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a specific glossary term by key. + * + * @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 getTerm( + GetTermRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets a specific glossary term relationship by key. + * + * @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 getTermRelationship( + GetTermRelationshipRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetTermRelationshipRequest, GetTermRelationshipResponse> + handler); + + /** + * Gets a specific type by key within a data catalog. + * + * @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 getType( + GetTypeRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Gets the status of the work request with the given OCID. + * + * @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); + + /** + * Import new connection for this data asset. + * + * @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 importConnection( + ImportConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Import the glossary and the terms from csv or json files and return the imported glossary resource. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future importGlossary( + ImportGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all tags for an entity attribute. + * + * @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 listAttributeTags( + ListAttributeTagsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAttributeTagsRequest, ListAttributeTagsResponse> + handler); + + /** + * Returns a list of all attributes of an data entity. + * + * @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 listAttributes( + ListAttributesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all the data catalogs in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listCatalogs( + ListCatalogsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all Connections for a data asset. + * + * @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 listConnections( + ListConnectionsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all tags for a data asset. + * + * @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 listDataAssetTags( + ListDataAssetTagsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataAssetTagsRequest, ListDataAssetTagsResponse> + handler); + + /** + * Returns a list of data assets within a data catalog. + * + * @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 listDataAssets( + ListDataAssetsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all entities of a data asset. + * + * @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 listEntities( + ListEntitiesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all tags for a data entity. + * + * @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 listEntityTags( + ListEntityTagsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all tags for a folder. + * + * @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 listFolderTags( + ListFolderTagsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of all folders. + * + * @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 listFolders( + ListFoldersRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of all glossaries within a data catalog. + * + * @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 listGlossaries( + ListGlossariesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of job definitions within a data catalog. + * + * @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 listJobDefinitions( + ListJobDefinitionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListJobDefinitionsRequest, ListJobDefinitionsResponse> + handler); + + /** + * Returns a list of job executions for a job. + * + * @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 listJobExecutions( + ListJobExecutionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListJobExecutionsRequest, ListJobExecutionsResponse> + handler); + + /** + * Returns a list of job logs. + * + * @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 listJobLogs( + ListJobLogsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of job metrics. + * + * @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 listJobMetrics( + ListJobMetricsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of jobs within a data catalog. + * + * @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 listJobs( + ListJobsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of all user created tags in the system. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listTags( + ListTagsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of all term relationships within a glossary. + * + * @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 listTermRelationships( + ListTermRelationshipsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListTermRelationshipsRequest, ListTermRelationshipsResponse> + handler); + + /** + * Returns a list of all terms within a glossary. + * + * @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 listTerms( + ListTermsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a list of all types within a data catalog. + * + * @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 listTypes( + ListTypesRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns a (paginated) list of errors for a given work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Returns a (paginated) list of logs for a given work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future 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); + + /** + * Returns stats on objects by type in the repository. + * + * @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 objectStats( + ObjectStatsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Parse data asset references through connections from this data asset. + * + * @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 parseConnection( + ParseConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns a list of search results within a data catalog. + * + * @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 searchCriteria( + SearchCriteriaRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Test the connection by connecting to the data asset using credentials in the metadata. + * + * @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 testConnection( + TestConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific data asset attribute. + * + * @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 updateAttribute( + UpdateAttributeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates the data catalog. + * + * @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 updateCatalog( + UpdateCatalogRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific connection of a data asset. + * + * @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 updateConnection( + UpdateConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific data asset identified by the given key. + * + * @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 updateDataAsset( + UpdateDataAssetRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific data entity. + * + * @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 updateEntity( + UpdateEntityRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific folder of a data asset. + * + * @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 updateFolder( + UpdateFolderRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific glossary identified by the given key. + * + * @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 updateGlossary( + UpdateGlossaryRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a specific job identified by the given key. + * + * @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 updateJob( + UpdateJobRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Update a specific job definition identified by the given key. + * + * @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 updateJobDefinition( + UpdateJobDefinitionRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateJobDefinitionRequest, UpdateJobDefinitionResponse> + handler); + + /** + * Updates a specific glossary term. + * + * @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 updateTerm( + UpdateTermRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates a specific glossary term relationship. + * + * @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 updateTermRelationship( + UpdateTermRelationshipRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateTermRelationshipRequest, UpdateTermRelationshipResponse> + handler); + + /** + * Upload connection credentails and metadata for this connection. + * + * @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 uploadCredentials( + UploadCredentialsRequest request, + com.oracle.bmc.responses.AsyncHandler< + UploadCredentialsRequest, UploadCredentialsResponse> + handler); + + /** + * Returns active users in the system. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future users( + UsersRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Validate connection by connecting to the data asset using credentials in metadata. + * + * @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 validateConnection( + ValidateConnectionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ValidateConnectionRequest, ValidateConnectionResponse> + handler); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java new file mode 100644 index 00000000000..0211d2f4b47 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java @@ -0,0 +1,7953 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import java.util.Locale; +import com.oracle.bmc.datacatalog.internal.http.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +/** + * Async client implementation for DataCatalog service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DataCatalogAsyncClient implements DataCatalogAsync { + /** + * Service instance for DataCatalog. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DATACATALOG") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacatalog.{region}.oci.{secondLevelDomain}") + .build(); + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DataCatalogAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public DataCatalogAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public DataCatalogAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public DataCatalogAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + this.client = restClientFactory.create(defaultRequestSigner, requestSigners, configuration); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DataCatalogAsyncClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DataCatalogAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + additionalClientConfigurators, + endpoint); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future changeCatalogCompartment( + final ChangeCatalogCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeCatalogCompartmentRequest, ChangeCatalogCompartmentResponse> + handler) { + LOG.trace("Called async changeCatalogCompartment"); + final ChangeCatalogCompartmentRequest interceptedRequest = + ChangeCatalogCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeCatalogCompartmentConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeCatalogCompartmentResponse> + transformer = ChangeCatalogCompartmentConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ChangeCatalogCompartmentRequest, ChangeCatalogCompartmentResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ChangeCatalogCompartmentRequest, ChangeCatalogCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getChangeCatalogCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getChangeCatalogCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ChangeCatalogCompartmentResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getChangeCatalogCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createAttribute( + final CreateAttributeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateAttributeRequest, CreateAttributeResponse> + handler) { + LOG.trace("Called async createAttribute"); + final CreateAttributeRequest interceptedRequest = + CreateAttributeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateAttributeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateAttributeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateAttributeRequest, CreateAttributeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateAttributeResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createAttributeTag( + final CreateAttributeTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateAttributeTagRequest, CreateAttributeTagResponse> + handler) { + LOG.trace("Called async createAttributeTag"); + final CreateAttributeTagRequest interceptedRequest = + CreateAttributeTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateAttributeTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateAttributeTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateAttributeTagRequest, CreateAttributeTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateAttributeTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateAttributeTagDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateAttributeTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateAttributeTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createCatalog( + final CreateCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createCatalog"); + final CreateCatalogRequest interceptedRequest = + CreateCatalogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCatalogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateCatalogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateCatalogRequest, CreateCatalogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateCatalogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createConnection( + final CreateConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateConnectionRequest, CreateConnectionResponse> + handler) { + LOG.trace("Called async createConnection"); + final CreateConnectionRequest interceptedRequest = + CreateConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateConnectionRequest, CreateConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createDataAsset( + final CreateDataAssetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDataAssetRequest, CreateDataAssetResponse> + handler) { + LOG.trace("Called async createDataAsset"); + final CreateDataAssetRequest interceptedRequest = + CreateDataAssetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDataAssetConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateDataAssetConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateDataAssetRequest, CreateDataAssetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateDataAssetResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createDataAssetTag( + final CreateDataAssetTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDataAssetTagRequest, CreateDataAssetTagResponse> + handler) { + LOG.trace("Called async createDataAssetTag"); + final CreateDataAssetTagRequest interceptedRequest = + CreateDataAssetTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDataAssetTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateDataAssetTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateDataAssetTagRequest, CreateDataAssetTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateDataAssetTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateDataAssetTagDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateDataAssetTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateDataAssetTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createEntity( + final CreateEntityRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createEntity"); + final CreateEntityRequest interceptedRequest = + CreateEntityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEntityConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateEntityConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateEntityRequest, CreateEntityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateEntityResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createEntityTag( + final CreateEntityTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateEntityTagRequest, CreateEntityTagResponse> + handler) { + LOG.trace("Called async createEntityTag"); + final CreateEntityTagRequest interceptedRequest = + CreateEntityTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEntityTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateEntityTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateEntityTagRequest, CreateEntityTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateEntityTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateEntityTagDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateEntityTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateEntityTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createFolder( + final CreateFolderRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createFolder"); + final CreateFolderRequest interceptedRequest = + CreateFolderConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateFolderConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateFolderConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateFolderRequest, CreateFolderResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateFolderResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createFolderTag( + final CreateFolderTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateFolderTagRequest, CreateFolderTagResponse> + handler) { + LOG.trace("Called async createFolderTag"); + final CreateFolderTagRequest interceptedRequest = + CreateFolderTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateFolderTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateFolderTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateFolderTagRequest, CreateFolderTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateFolderTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateFolderTagDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateFolderTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateFolderTagDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createGlossary( + final CreateGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateGlossaryRequest, CreateGlossaryResponse> + handler) { + LOG.trace("Called async createGlossary"); + final CreateGlossaryRequest interceptedRequest = + CreateGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateGlossaryRequest, CreateGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createJob( + final CreateJobRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createJob"); + final CreateJobRequest interceptedRequest = CreateJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateJobRequest, CreateJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateJobDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createJobDefinition( + final CreateJobDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateJobDefinitionRequest, CreateJobDefinitionResponse> + handler) { + LOG.trace("Called async createJobDefinition"); + final CreateJobDefinitionRequest interceptedRequest = + CreateJobDefinitionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobDefinitionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobDefinitionResponse> + transformer = CreateJobDefinitionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + CreateJobDefinitionRequest, CreateJobDefinitionResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateJobDefinitionRequest, CreateJobDefinitionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateJobDefinitionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createJobExecution( + final CreateJobExecutionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateJobExecutionRequest, CreateJobExecutionResponse> + handler) { + LOG.trace("Called async createJobExecution"); + final CreateJobExecutionRequest interceptedRequest = + CreateJobExecutionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobExecutionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateJobExecutionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateJobExecutionRequest, CreateJobExecutionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateJobExecutionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateJobExecutionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateJobExecutionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateJobExecutionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createTerm( + final CreateTermRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createTerm"); + final CreateTermRequest interceptedRequest = CreateTermConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTermConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateTermConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateTermRequest, CreateTermResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateTermDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateTermDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateTermResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateTermDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createTermRelationship( + final CreateTermRelationshipRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateTermRelationshipRequest, CreateTermRelationshipResponse> + handler) { + LOG.trace("Called async createTermRelationship"); + final CreateTermRelationshipRequest interceptedRequest = + CreateTermRelationshipConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTermRelationshipConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateTermRelationshipResponse> + transformer = CreateTermRelationshipConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + CreateTermRelationshipRequest, CreateTermRelationshipResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateTermRelationshipRequest, CreateTermRelationshipResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateTermRelationshipResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteAttribute( + final DeleteAttributeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteAttributeRequest, DeleteAttributeResponse> + handler) { + LOG.trace("Called async deleteAttribute"); + final DeleteAttributeRequest interceptedRequest = + DeleteAttributeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteAttributeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteAttributeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteAttributeRequest, DeleteAttributeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteAttributeResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteAttributeTag( + final DeleteAttributeTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteAttributeTagRequest, DeleteAttributeTagResponse> + handler) { + LOG.trace("Called async deleteAttributeTag"); + final DeleteAttributeTagRequest interceptedRequest = + DeleteAttributeTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteAttributeTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteAttributeTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteAttributeTagRequest, DeleteAttributeTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteAttributeTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteCatalog( + final DeleteCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteCatalog"); + final DeleteCatalogRequest interceptedRequest = + DeleteCatalogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCatalogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteCatalogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteCatalogRequest, DeleteCatalogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteCatalogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteConnection( + final DeleteConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteConnectionRequest, DeleteConnectionResponse> + handler) { + LOG.trace("Called async deleteConnection"); + final DeleteConnectionRequest interceptedRequest = + DeleteConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteConnectionRequest, DeleteConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteDataAsset( + final DeleteDataAssetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDataAssetRequest, DeleteDataAssetResponse> + handler) { + LOG.trace("Called async deleteDataAsset"); + final DeleteDataAssetRequest interceptedRequest = + DeleteDataAssetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataAssetConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteDataAssetConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteDataAssetRequest, DeleteDataAssetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteDataAssetResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteDataAssetTag( + final DeleteDataAssetTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDataAssetTagRequest, DeleteDataAssetTagResponse> + handler) { + LOG.trace("Called async deleteDataAssetTag"); + final DeleteDataAssetTagRequest interceptedRequest = + DeleteDataAssetTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataAssetTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteDataAssetTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteDataAssetTagRequest, DeleteDataAssetTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteDataAssetTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteEntity( + final DeleteEntityRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteEntity"); + final DeleteEntityRequest interceptedRequest = + DeleteEntityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteEntityConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteEntityConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteEntityRequest, DeleteEntityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteEntityResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteEntityTag( + final DeleteEntityTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteEntityTagRequest, DeleteEntityTagResponse> + handler) { + LOG.trace("Called async deleteEntityTag"); + final DeleteEntityTagRequest interceptedRequest = + DeleteEntityTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteEntityTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteEntityTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteEntityTagRequest, DeleteEntityTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteEntityTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteFolder( + final DeleteFolderRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteFolder"); + final DeleteFolderRequest interceptedRequest = + DeleteFolderConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteFolderConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteFolderConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteFolderRequest, DeleteFolderResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteFolderResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteFolderTag( + final DeleteFolderTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteFolderTagRequest, DeleteFolderTagResponse> + handler) { + LOG.trace("Called async deleteFolderTag"); + final DeleteFolderTagRequest interceptedRequest = + DeleteFolderTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteFolderTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteFolderTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteFolderTagRequest, DeleteFolderTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteFolderTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteGlossary( + final DeleteGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteGlossaryRequest, DeleteGlossaryResponse> + handler) { + LOG.trace("Called async deleteGlossary"); + final DeleteGlossaryRequest interceptedRequest = + DeleteGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteGlossaryRequest, DeleteGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteJob( + final DeleteJobRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteJob"); + final DeleteJobRequest interceptedRequest = DeleteJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteJobRequest, DeleteJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteJobDefinition( + final DeleteJobDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteJobDefinitionRequest, DeleteJobDefinitionResponse> + handler) { + LOG.trace("Called async deleteJobDefinition"); + final DeleteJobDefinitionRequest interceptedRequest = + DeleteJobDefinitionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteJobDefinitionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteJobDefinitionResponse> + transformer = DeleteJobDefinitionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeleteJobDefinitionRequest, DeleteJobDefinitionResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteJobDefinitionRequest, DeleteJobDefinitionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteJobDefinitionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteTerm( + final DeleteTermRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteTerm"); + final DeleteTermRequest interceptedRequest = DeleteTermConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTermConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteTermConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteTermRequest, DeleteTermResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteTermResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteTermRelationship( + final DeleteTermRelationshipRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteTermRelationshipRequest, DeleteTermRelationshipResponse> + handler) { + LOG.trace("Called async deleteTermRelationship"); + final DeleteTermRelationshipRequest interceptedRequest = + DeleteTermRelationshipConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTermRelationshipConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteTermRelationshipResponse> + transformer = DeleteTermRelationshipConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeleteTermRelationshipRequest, DeleteTermRelationshipResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteTermRelationshipRequest, DeleteTermRelationshipResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteTermRelationshipResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future expandTreeForGlossary( + final ExpandTreeForGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExpandTreeForGlossaryRequest, ExpandTreeForGlossaryResponse> + handler) { + LOG.trace("Called async expandTreeForGlossary"); + final ExpandTreeForGlossaryRequest interceptedRequest = + ExpandTreeForGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExpandTreeForGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ExpandTreeForGlossaryResponse> + transformer = ExpandTreeForGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ExpandTreeForGlossaryRequest, ExpandTreeForGlossaryResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ExpandTreeForGlossaryRequest, ExpandTreeForGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ExpandTreeForGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future exportGlossary( + final ExportGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ExportGlossaryRequest, ExportGlossaryResponse> + handler) { + LOG.trace("Called async exportGlossary"); + final ExportGlossaryRequest interceptedRequest = + ExportGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExportGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ExportGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ExportGlossaryRequest, ExportGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ExportGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getAttribute( + final GetAttributeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getAttribute"); + final GetAttributeRequest interceptedRequest = + GetAttributeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAttributeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetAttributeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetAttributeRequest, GetAttributeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetAttributeResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getAttributeTag( + final GetAttributeTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAttributeTagRequest, GetAttributeTagResponse> + handler) { + LOG.trace("Called async getAttributeTag"); + final GetAttributeTagRequest interceptedRequest = + GetAttributeTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAttributeTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetAttributeTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetAttributeTagRequest, GetAttributeTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetAttributeTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getCatalog( + final GetCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getCatalog"); + final GetCatalogRequest interceptedRequest = GetCatalogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCatalogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetCatalogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetCatalogRequest, GetCatalogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetCatalogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getConnection( + final GetConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getConnection"); + final GetConnectionRequest interceptedRequest = + GetConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetConnectionRequest, GetConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getDataAsset( + final GetDataAssetRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getDataAsset"); + final GetDataAssetRequest interceptedRequest = + GetDataAssetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataAssetConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetDataAssetConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetDataAssetRequest, GetDataAssetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetDataAssetResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getDataAssetTag( + final GetDataAssetTagRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDataAssetTagRequest, GetDataAssetTagResponse> + handler) { + LOG.trace("Called async getDataAssetTag"); + final GetDataAssetTagRequest interceptedRequest = + GetDataAssetTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataAssetTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetDataAssetTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetDataAssetTagRequest, GetDataAssetTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetDataAssetTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getEntity( + final GetEntityRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getEntity"); + final GetEntityRequest interceptedRequest = GetEntityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEntityConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetEntityConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetEntityRequest, GetEntityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetEntityResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getEntityTag( + final GetEntityTagRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getEntityTag"); + final GetEntityTagRequest interceptedRequest = + GetEntityTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEntityTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetEntityTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetEntityTagRequest, GetEntityTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetEntityTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getFolder( + final GetFolderRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getFolder"); + final GetFolderRequest interceptedRequest = GetFolderConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFolderConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetFolderConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetFolderRequest, GetFolderResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetFolderResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getFolderTag( + final GetFolderTagRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getFolderTag"); + final GetFolderTagRequest interceptedRequest = + GetFolderTagConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFolderTagConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetFolderTagConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetFolderTagRequest, GetFolderTagResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetFolderTagResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getGlossary( + final GetGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getGlossary"); + final GetGlossaryRequest interceptedRequest = + GetGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetGlossaryRequest, GetGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getJob( + final GetJobRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async getJob"); + final GetJobRequest interceptedRequest = GetJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetJobRequest, GetJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getJobDefinition( + final GetJobDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetJobDefinitionRequest, GetJobDefinitionResponse> + handler) { + LOG.trace("Called async getJobDefinition"); + final GetJobDefinitionRequest interceptedRequest = + GetJobDefinitionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobDefinitionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetJobDefinitionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetJobDefinitionRequest, GetJobDefinitionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetJobDefinitionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getJobExecution( + final GetJobExecutionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetJobExecutionRequest, GetJobExecutionResponse> + handler) { + LOG.trace("Called async getJobExecution"); + final GetJobExecutionRequest interceptedRequest = + GetJobExecutionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobExecutionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetJobExecutionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetJobExecutionRequest, GetJobExecutionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetJobExecutionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getJobLog( + final GetJobLogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getJobLog"); + final GetJobLogRequest interceptedRequest = GetJobLogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobLogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetJobLogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetJobLogRequest, GetJobLogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetJobLogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getJobMetrics( + final GetJobMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getJobMetrics"); + final GetJobMetricsRequest interceptedRequest = + GetJobMetricsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobMetricsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetJobMetricsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetJobMetricsRequest, GetJobMetricsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetJobMetricsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getTerm( + final GetTermRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async getTerm"); + final GetTermRequest interceptedRequest = GetTermConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTermConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetTermConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetTermRequest, GetTermResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetTermResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getTermRelationship( + final GetTermRelationshipRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetTermRelationshipRequest, GetTermRelationshipResponse> + handler) { + LOG.trace("Called async getTermRelationship"); + final GetTermRelationshipRequest interceptedRequest = + GetTermRelationshipConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTermRelationshipConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetTermRelationshipResponse> + transformer = GetTermRelationshipConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetTermRelationshipRequest, GetTermRelationshipResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetTermRelationshipRequest, GetTermRelationshipResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetTermRelationshipResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getType( + final GetTypeRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async getType"); + final GetTypeRequest interceptedRequest = GetTypeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTypeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetTypeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetTypeRequest, GetTypeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetTypeResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getWorkRequest( + final GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetWorkRequestConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetWorkRequestResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future importConnection( + final ImportConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ImportConnectionRequest, ImportConnectionResponse> + handler) { + LOG.trace("Called async importConnection"); + final ImportConnectionRequest interceptedRequest = + ImportConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ImportConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ImportConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ImportConnectionRequest, ImportConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getImportConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getImportConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ImportConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getImportConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future importGlossary( + final ImportGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ImportGlossaryRequest, ImportGlossaryResponse> + handler) { + LOG.trace("Called async importGlossary"); + final ImportGlossaryRequest interceptedRequest = + ImportGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ImportGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ImportGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ImportGlossaryRequest, ImportGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getImportGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getImportGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ImportGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getImportGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listAttributeTags( + final ListAttributeTagsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAttributeTagsRequest, ListAttributeTagsResponse> + handler) { + LOG.trace("Called async listAttributeTags"); + final ListAttributeTagsRequest interceptedRequest = + ListAttributeTagsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAttributeTagsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListAttributeTagsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListAttributeTagsRequest, ListAttributeTagsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListAttributeTagsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listAttributes( + final ListAttributesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAttributesRequest, ListAttributesResponse> + handler) { + LOG.trace("Called async listAttributes"); + final ListAttributesRequest interceptedRequest = + ListAttributesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAttributesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListAttributesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListAttributesRequest, ListAttributesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListAttributesResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listCatalogs( + final ListCatalogsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listCatalogs"); + final ListCatalogsRequest interceptedRequest = + ListCatalogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCatalogsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListCatalogsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListCatalogsRequest, ListCatalogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListCatalogsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listConnections( + final ListConnectionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListConnectionsRequest, ListConnectionsResponse> + handler) { + LOG.trace("Called async listConnections"); + final ListConnectionsRequest interceptedRequest = + ListConnectionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListConnectionsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListConnectionsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListConnectionsRequest, ListConnectionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListConnectionsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listDataAssetTags( + final ListDataAssetTagsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataAssetTagsRequest, ListDataAssetTagsResponse> + handler) { + LOG.trace("Called async listDataAssetTags"); + final ListDataAssetTagsRequest interceptedRequest = + ListDataAssetTagsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataAssetTagsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListDataAssetTagsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListDataAssetTagsRequest, ListDataAssetTagsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListDataAssetTagsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listDataAssets( + final ListDataAssetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataAssetsRequest, ListDataAssetsResponse> + handler) { + LOG.trace("Called async listDataAssets"); + final ListDataAssetsRequest interceptedRequest = + ListDataAssetsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataAssetsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListDataAssetsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListDataAssetsRequest, ListDataAssetsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListDataAssetsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listEntities( + final ListEntitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listEntities"); + final ListEntitiesRequest interceptedRequest = + ListEntitiesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEntitiesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListEntitiesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListEntitiesRequest, ListEntitiesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListEntitiesResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listEntityTags( + final ListEntityTagsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListEntityTagsRequest, ListEntityTagsResponse> + handler) { + LOG.trace("Called async listEntityTags"); + final ListEntityTagsRequest interceptedRequest = + ListEntityTagsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEntityTagsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListEntityTagsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListEntityTagsRequest, ListEntityTagsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListEntityTagsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listFolderTags( + final ListFolderTagsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFolderTagsRequest, ListFolderTagsResponse> + handler) { + LOG.trace("Called async listFolderTags"); + final ListFolderTagsRequest interceptedRequest = + ListFolderTagsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFolderTagsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListFolderTagsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListFolderTagsRequest, ListFolderTagsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListFolderTagsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listFolders( + final ListFoldersRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listFolders"); + final ListFoldersRequest interceptedRequest = + ListFoldersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFoldersConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListFoldersConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListFoldersRequest, ListFoldersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListFoldersResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listGlossaries( + final ListGlossariesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListGlossariesRequest, ListGlossariesResponse> + handler) { + LOG.trace("Called async listGlossaries"); + final ListGlossariesRequest interceptedRequest = + ListGlossariesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGlossariesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListGlossariesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListGlossariesRequest, ListGlossariesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListGlossariesResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listJobDefinitions( + final ListJobDefinitionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListJobDefinitionsRequest, ListJobDefinitionsResponse> + handler) { + LOG.trace("Called async listJobDefinitions"); + final ListJobDefinitionsRequest interceptedRequest = + ListJobDefinitionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobDefinitionsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListJobDefinitionsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListJobDefinitionsRequest, ListJobDefinitionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListJobDefinitionsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listJobExecutions( + final ListJobExecutionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListJobExecutionsRequest, ListJobExecutionsResponse> + handler) { + LOG.trace("Called async listJobExecutions"); + final ListJobExecutionsRequest interceptedRequest = + ListJobExecutionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobExecutionsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListJobExecutionsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListJobExecutionsRequest, ListJobExecutionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListJobExecutionsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listJobLogs( + final ListJobLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listJobLogs"); + final ListJobLogsRequest interceptedRequest = + ListJobLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobLogsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListJobLogsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListJobLogsRequest, ListJobLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListJobLogsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listJobMetrics( + final ListJobMetricsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListJobMetricsRequest, ListJobMetricsResponse> + handler) { + LOG.trace("Called async listJobMetrics"); + final ListJobMetricsRequest interceptedRequest = + ListJobMetricsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobMetricsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListJobMetricsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListJobMetricsRequest, ListJobMetricsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListJobMetricsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listJobs( + final ListJobsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listJobs"); + final ListJobsRequest interceptedRequest = ListJobsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListJobsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListJobsRequest, ListJobsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListJobsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listTags( + final ListTagsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listTags"); + final ListTagsRequest interceptedRequest = ListTagsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTagsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListTagsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListTagsRequest, ListTagsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListTagsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listTermRelationships( + final ListTermRelationshipsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListTermRelationshipsRequest, ListTermRelationshipsResponse> + handler) { + LOG.trace("Called async listTermRelationships"); + final ListTermRelationshipsRequest interceptedRequest = + ListTermRelationshipsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTermRelationshipsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListTermRelationshipsResponse> + transformer = ListTermRelationshipsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListTermRelationshipsRequest, ListTermRelationshipsResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListTermRelationshipsRequest, ListTermRelationshipsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListTermRelationshipsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listTerms( + final ListTermsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listTerms"); + final ListTermsRequest interceptedRequest = ListTermsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTermsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListTermsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListTermsRequest, ListTermsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListTermsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listTypes( + final ListTypesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listTypes"); + final ListTypesRequest interceptedRequest = ListTypesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTypesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListTypesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListTypesRequest, ListTypesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListTypesResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + final ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + LOG.trace("Called async listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestErrorsResponse> + transformer = ListWorkRequestErrorsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListWorkRequestErrorsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + final ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + LOG.trace("Called async listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestLogsResponse> + transformer = ListWorkRequestLogsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListWorkRequestLogsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listWorkRequests( + final ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + LOG.trace("Called async listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListWorkRequestsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListWorkRequestsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future objectStats( + final ObjectStatsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async objectStats"); + final ObjectStatsRequest interceptedRequest = + ObjectStatsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ObjectStatsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ObjectStatsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ObjectStatsRequest, ObjectStatsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ObjectStatsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future parseConnection( + final ParseConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ParseConnectionRequest, ParseConnectionResponse> + handler) { + LOG.trace("Called async parseConnection"); + final ParseConnectionRequest interceptedRequest = + ParseConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ParseConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ParseConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ParseConnectionRequest, ParseConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getParseConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getParseConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ParseConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getParseConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future searchCriteria( + final SearchCriteriaRequest request, + final com.oracle.bmc.responses.AsyncHandler< + SearchCriteriaRequest, SearchCriteriaResponse> + handler) { + LOG.trace("Called async searchCriteria"); + final SearchCriteriaRequest interceptedRequest = + SearchCriteriaConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SearchCriteriaConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = SearchCriteriaConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + SearchCriteriaRequest, SearchCriteriaResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getSearchCriteriaDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getSearchCriteriaDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, SearchCriteriaResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getSearchCriteriaDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future testConnection( + final TestConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + TestConnectionRequest, TestConnectionResponse> + handler) { + LOG.trace("Called async testConnection"); + final TestConnectionRequest interceptedRequest = + TestConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + TestConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = TestConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + TestConnectionRequest, TestConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, TestConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateAttribute( + final UpdateAttributeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateAttributeRequest, UpdateAttributeResponse> + handler) { + LOG.trace("Called async updateAttribute"); + final UpdateAttributeRequest interceptedRequest = + UpdateAttributeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAttributeConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateAttributeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateAttributeRequest, UpdateAttributeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateAttributeResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateAttributeDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateCatalog( + final UpdateCatalogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateCatalog"); + final UpdateCatalogRequest interceptedRequest = + UpdateCatalogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCatalogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateCatalogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateCatalogRequest, UpdateCatalogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateCatalogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateCatalogDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateConnection( + final UpdateConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateConnectionRequest, UpdateConnectionResponse> + handler) { + LOG.trace("Called async updateConnection"); + final UpdateConnectionRequest interceptedRequest = + UpdateConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateConnectionRequest, UpdateConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateDataAsset( + final UpdateDataAssetRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDataAssetRequest, UpdateDataAssetResponse> + handler) { + LOG.trace("Called async updateDataAsset"); + final UpdateDataAssetRequest interceptedRequest = + UpdateDataAssetConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDataAssetConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateDataAssetConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateDataAssetRequest, UpdateDataAssetResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateDataAssetResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateDataAssetDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateEntity( + final UpdateEntityRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateEntity"); + final UpdateEntityRequest interceptedRequest = + UpdateEntityConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateEntityConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateEntityConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateEntityRequest, UpdateEntityResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateEntityResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateEntityDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateFolder( + final UpdateFolderRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateFolder"); + final UpdateFolderRequest interceptedRequest = + UpdateFolderConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateFolderConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateFolderConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateFolderRequest, UpdateFolderResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateFolderResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateFolderDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateGlossary( + final UpdateGlossaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateGlossaryRequest, UpdateGlossaryResponse> + handler) { + LOG.trace("Called async updateGlossary"); + final UpdateGlossaryRequest interceptedRequest = + UpdateGlossaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateGlossaryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateGlossaryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateGlossaryRequest, UpdateGlossaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateGlossaryResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateGlossaryDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateJob( + final UpdateJobRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateJob"); + final UpdateJobRequest interceptedRequest = UpdateJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateJobRequest, UpdateJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateJobDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateJobDefinition( + final UpdateJobDefinitionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateJobDefinitionRequest, UpdateJobDefinitionResponse> + handler) { + LOG.trace("Called async updateJobDefinition"); + final UpdateJobDefinitionRequest interceptedRequest = + UpdateJobDefinitionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateJobDefinitionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateJobDefinitionResponse> + transformer = UpdateJobDefinitionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateJobDefinitionRequest, UpdateJobDefinitionResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateJobDefinitionRequest, UpdateJobDefinitionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateJobDefinitionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateJobDefinitionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateTerm( + final UpdateTermRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateTerm"); + final UpdateTermRequest interceptedRequest = UpdateTermConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTermConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateTermConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateTermRequest, UpdateTermResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateTermDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateTermDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateTermResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateTermDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateTermRelationship( + final UpdateTermRelationshipRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateTermRelationshipRequest, UpdateTermRelationshipResponse> + handler) { + LOG.trace("Called async updateTermRelationship"); + final UpdateTermRelationshipRequest interceptedRequest = + UpdateTermRelationshipConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTermRelationshipConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateTermRelationshipResponse> + transformer = UpdateTermRelationshipConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateTermRelationshipRequest, UpdateTermRelationshipResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateTermRelationshipRequest, UpdateTermRelationshipResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateTermRelationshipResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateTermRelationshipDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future uploadCredentials( + final UploadCredentialsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UploadCredentialsRequest, UploadCredentialsResponse> + handler) { + LOG.trace("Called async uploadCredentials"); + final UploadCredentialsRequest interceptedRequest = + UploadCredentialsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UploadCredentialsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UploadCredentialsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UploadCredentialsRequest, UploadCredentialsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getUploadCredentialsDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getUploadCredentialsDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UploadCredentialsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getUploadCredentialsDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future users( + final UsersRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async users"); + final UsersRequest interceptedRequest = UsersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UsersConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UsersConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UsersRequest, UsersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UsersResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future validateConnection( + final ValidateConnectionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ValidateConnectionRequest, ValidateConnectionResponse> + handler) { + LOG.trace("Called async validateConnection"); + final ValidateConnectionRequest interceptedRequest = + ValidateConnectionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateConnectionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ValidateConnectionConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ValidateConnectionRequest, ValidateConnectionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getValidateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getValidateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ValidateConnectionResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getValidateConnectionDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java new file mode 100644 index 00000000000..4afc2c494a4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java @@ -0,0 +1,3249 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import java.util.Locale; +import com.oracle.bmc.datacatalog.internal.http.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DataCatalogClient implements DataCatalog { + /** + * Service instance for DataCatalog. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DATACATALOG") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datacatalog.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private final DataCatalogWaiters waiters; + + private final DataCatalogPaginators paginators; + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DataCatalogClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public DataCatalogClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public DataCatalogClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + */ + public DataCatalogClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + final com.oracle.bmc.ClientConfiguration clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + this.client = + restClientFactory.create( + defaultRequestSigner, requestSigners, clientConfigurationToUse); + + 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(), + new com.google.common.util.concurrent.ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("DataCatalog-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DataCatalogWaiters(executorService, this); + + this.paginators = new DataCatalogPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DataCatalogClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DataCatalogClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeCatalogCompartmentResponse changeCatalogCompartment( + ChangeCatalogCompartmentRequest request) { + LOG.trace("Called changeCatalogCompartment"); + final ChangeCatalogCompartmentRequest interceptedRequest = + ChangeCatalogCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeCatalogCompartmentConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ChangeCatalogCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getChangeCatalogCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateAttributeResponse createAttribute(CreateAttributeRequest request) { + LOG.trace("Called createAttribute"); + final CreateAttributeRequest interceptedRequest = + CreateAttributeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateAttributeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateAttributeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateAttributeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateAttributeTagResponse createAttributeTag(CreateAttributeTagRequest request) { + LOG.trace("Called createAttributeTag"); + final CreateAttributeTagRequest interceptedRequest = + CreateAttributeTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateAttributeTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateAttributeTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateAttributeTagDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateCatalogResponse createCatalog(CreateCatalogRequest request) { + LOG.trace("Called createCatalog"); + final CreateCatalogRequest interceptedRequest = + CreateCatalogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateCatalogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateCatalogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateCatalogDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateConnectionResponse createConnection(CreateConnectionRequest request) { + LOG.trace("Called createConnection"); + final CreateConnectionRequest interceptedRequest = + CreateConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDataAssetResponse createDataAsset(CreateDataAssetRequest request) { + LOG.trace("Called createDataAsset"); + final CreateDataAssetRequest interceptedRequest = + CreateDataAssetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDataAssetConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateDataAssetConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateDataAssetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateDataAssetTagResponse createDataAssetTag(CreateDataAssetTagRequest request) { + LOG.trace("Called createDataAssetTag"); + final CreateDataAssetTagRequest interceptedRequest = + CreateDataAssetTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDataAssetTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateDataAssetTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateDataAssetTagDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateEntityResponse createEntity(CreateEntityRequest request) { + LOG.trace("Called createEntity"); + final CreateEntityRequest interceptedRequest = + CreateEntityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEntityConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateEntityConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateEntityDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateEntityTagResponse createEntityTag(CreateEntityTagRequest request) { + LOG.trace("Called createEntityTag"); + final CreateEntityTagRequest interceptedRequest = + CreateEntityTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateEntityTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateEntityTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateEntityTagDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateFolderResponse createFolder(CreateFolderRequest request) { + LOG.trace("Called createFolder"); + final CreateFolderRequest interceptedRequest = + CreateFolderConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateFolderConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateFolderConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateFolderDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateFolderTagResponse createFolderTag(CreateFolderTagRequest request) { + LOG.trace("Called createFolderTag"); + final CreateFolderTagRequest interceptedRequest = + CreateFolderTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateFolderTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateFolderTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateFolderTagDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateGlossaryResponse createGlossary(CreateGlossaryRequest request) { + LOG.trace("Called createGlossary"); + final CreateGlossaryRequest interceptedRequest = + CreateGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateGlossaryDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateJobResponse createJob(CreateJobRequest request) { + LOG.trace("Called createJob"); + final CreateJobRequest interceptedRequest = CreateJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + CreateJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateJobDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateJobDefinitionResponse createJobDefinition(CreateJobDefinitionRequest request) { + LOG.trace("Called createJobDefinition"); + final CreateJobDefinitionRequest interceptedRequest = + CreateJobDefinitionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobDefinitionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateJobDefinitionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateJobDefinitionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateJobExecutionResponse createJobExecution(CreateJobExecutionRequest request) { + LOG.trace("Called createJobExecution"); + final CreateJobExecutionRequest interceptedRequest = + CreateJobExecutionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateJobExecutionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateJobExecutionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateJobExecutionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateTermResponse createTerm(CreateTermRequest request) { + LOG.trace("Called createTerm"); + final CreateTermRequest interceptedRequest = CreateTermConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTermConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + CreateTermConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateTermDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateTermRelationshipResponse createTermRelationship( + CreateTermRelationshipRequest request) { + LOG.trace("Called createTermRelationship"); + final CreateTermRelationshipRequest interceptedRequest = + CreateTermRelationshipConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTermRelationshipConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateTermRelationshipConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateTermRelationshipDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteAttributeResponse deleteAttribute(DeleteAttributeRequest request) { + LOG.trace("Called deleteAttribute"); + final DeleteAttributeRequest interceptedRequest = + DeleteAttributeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteAttributeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteAttributeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteAttributeTagResponse deleteAttributeTag(DeleteAttributeTagRequest request) { + LOG.trace("Called deleteAttributeTag"); + final DeleteAttributeTagRequest interceptedRequest = + DeleteAttributeTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteAttributeTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteAttributeTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteCatalogResponse deleteCatalog(DeleteCatalogRequest request) { + LOG.trace("Called deleteCatalog"); + final DeleteCatalogRequest interceptedRequest = + DeleteCatalogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCatalogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteCatalogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) { + LOG.trace("Called deleteConnection"); + final DeleteConnectionRequest interceptedRequest = + DeleteConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteDataAssetResponse deleteDataAsset(DeleteDataAssetRequest request) { + LOG.trace("Called deleteDataAsset"); + final DeleteDataAssetRequest interceptedRequest = + DeleteDataAssetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataAssetConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteDataAssetConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteDataAssetTagResponse deleteDataAssetTag(DeleteDataAssetTagRequest request) { + LOG.trace("Called deleteDataAssetTag"); + final DeleteDataAssetTagRequest interceptedRequest = + DeleteDataAssetTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDataAssetTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteDataAssetTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteEntityResponse deleteEntity(DeleteEntityRequest request) { + LOG.trace("Called deleteEntity"); + final DeleteEntityRequest interceptedRequest = + DeleteEntityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteEntityConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteEntityConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteEntityTagResponse deleteEntityTag(DeleteEntityTagRequest request) { + LOG.trace("Called deleteEntityTag"); + final DeleteEntityTagRequest interceptedRequest = + DeleteEntityTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteEntityTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteEntityTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteFolderResponse deleteFolder(DeleteFolderRequest request) { + LOG.trace("Called deleteFolder"); + final DeleteFolderRequest interceptedRequest = + DeleteFolderConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteFolderConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteFolderConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteFolderTagResponse deleteFolderTag(DeleteFolderTagRequest request) { + LOG.trace("Called deleteFolderTag"); + final DeleteFolderTagRequest interceptedRequest = + DeleteFolderTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteFolderTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteFolderTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteGlossaryResponse deleteGlossary(DeleteGlossaryRequest request) { + LOG.trace("Called deleteGlossary"); + final DeleteGlossaryRequest interceptedRequest = + DeleteGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteJobResponse deleteJob(DeleteJobRequest request) { + LOG.trace("Called deleteJob"); + final DeleteJobRequest interceptedRequest = DeleteJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + DeleteJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteJobDefinitionResponse deleteJobDefinition(DeleteJobDefinitionRequest request) { + LOG.trace("Called deleteJobDefinition"); + final DeleteJobDefinitionRequest interceptedRequest = + DeleteJobDefinitionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteJobDefinitionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteJobDefinitionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteTermResponse deleteTerm(DeleteTermRequest request) { + LOG.trace("Called deleteTerm"); + final DeleteTermRequest interceptedRequest = DeleteTermConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTermConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + DeleteTermConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteTermRelationshipResponse deleteTermRelationship( + DeleteTermRelationshipRequest request) { + LOG.trace("Called deleteTermRelationship"); + final DeleteTermRelationshipRequest interceptedRequest = + DeleteTermRelationshipConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTermRelationshipConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteTermRelationshipConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ExpandTreeForGlossaryResponse expandTreeForGlossary( + ExpandTreeForGlossaryRequest request) { + LOG.trace("Called expandTreeForGlossary"); + final ExpandTreeForGlossaryRequest interceptedRequest = + ExpandTreeForGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExpandTreeForGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ExpandTreeForGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ExportGlossaryResponse exportGlossary(ExportGlossaryRequest request) { + LOG.trace("Called exportGlossary"); + final ExportGlossaryRequest interceptedRequest = + ExportGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ExportGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ExportGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAttributeResponse getAttribute(GetAttributeRequest request) { + LOG.trace("Called getAttribute"); + final GetAttributeRequest interceptedRequest = + GetAttributeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAttributeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetAttributeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAttributeTagResponse getAttributeTag(GetAttributeTagRequest request) { + LOG.trace("Called getAttributeTag"); + final GetAttributeTagRequest interceptedRequest = + GetAttributeTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAttributeTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetAttributeTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetCatalogResponse getCatalog(GetCatalogRequest request) { + LOG.trace("Called getCatalog"); + final GetCatalogRequest interceptedRequest = GetCatalogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCatalogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetCatalogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetConnectionResponse getConnection(GetConnectionRequest request) { + LOG.trace("Called getConnection"); + final GetConnectionRequest interceptedRequest = + GetConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetDataAssetResponse getDataAsset(GetDataAssetRequest request) { + LOG.trace("Called getDataAsset"); + final GetDataAssetRequest interceptedRequest = + GetDataAssetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataAssetConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetDataAssetConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetDataAssetTagResponse getDataAssetTag(GetDataAssetTagRequest request) { + LOG.trace("Called getDataAssetTag"); + final GetDataAssetTagRequest interceptedRequest = + GetDataAssetTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataAssetTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetDataAssetTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetEntityResponse getEntity(GetEntityRequest request) { + LOG.trace("Called getEntity"); + final GetEntityRequest interceptedRequest = GetEntityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEntityConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetEntityConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetEntityTagResponse getEntityTag(GetEntityTagRequest request) { + LOG.trace("Called getEntityTag"); + final GetEntityTagRequest interceptedRequest = + GetEntityTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEntityTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetEntityTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetFolderResponse getFolder(GetFolderRequest request) { + LOG.trace("Called getFolder"); + final GetFolderRequest interceptedRequest = GetFolderConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFolderConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetFolderConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetFolderTagResponse getFolderTag(GetFolderTagRequest request) { + LOG.trace("Called getFolderTag"); + final GetFolderTagRequest interceptedRequest = + GetFolderTagConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFolderTagConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetFolderTagConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetGlossaryResponse getGlossary(GetGlossaryRequest request) { + LOG.trace("Called getGlossary"); + final GetGlossaryRequest interceptedRequest = + GetGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetJobResponse getJob(GetJobRequest request) { + LOG.trace("Called getJob"); + final GetJobRequest interceptedRequest = GetJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetJobDefinitionResponse getJobDefinition(GetJobDefinitionRequest request) { + LOG.trace("Called getJobDefinition"); + final GetJobDefinitionRequest interceptedRequest = + GetJobDefinitionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobDefinitionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetJobDefinitionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetJobExecutionResponse getJobExecution(GetJobExecutionRequest request) { + LOG.trace("Called getJobExecution"); + final GetJobExecutionRequest interceptedRequest = + GetJobExecutionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobExecutionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetJobExecutionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetJobLogResponse getJobLog(GetJobLogRequest request) { + LOG.trace("Called getJobLog"); + final GetJobLogRequest interceptedRequest = GetJobLogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobLogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetJobLogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetJobMetricsResponse getJobMetrics(GetJobMetricsRequest request) { + LOG.trace("Called getJobMetrics"); + final GetJobMetricsRequest interceptedRequest = + GetJobMetricsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetJobMetricsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetJobMetricsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetTermResponse getTerm(GetTermRequest request) { + LOG.trace("Called getTerm"); + final GetTermRequest interceptedRequest = GetTermConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTermConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetTermConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetTermRelationshipResponse getTermRelationship(GetTermRelationshipRequest request) { + LOG.trace("Called getTermRelationship"); + final GetTermRelationshipRequest interceptedRequest = + GetTermRelationshipConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTermRelationshipConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetTermRelationshipConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetTypeResponse getType(GetTypeRequest request) { + LOG.trace("Called getType"); + final GetTypeRequest interceptedRequest = GetTypeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTypeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetTypeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetWorkRequestConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ImportConnectionResponse importConnection(ImportConnectionRequest request) { + LOG.trace("Called importConnection"); + final ImportConnectionRequest interceptedRequest = + ImportConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ImportConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ImportConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getImportConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ImportGlossaryResponse importGlossary(ImportGlossaryRequest request) { + LOG.trace("Called importGlossary"); + final ImportGlossaryRequest interceptedRequest = + ImportGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ImportGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ImportGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getImportGlossaryDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAttributeTagsResponse listAttributeTags(ListAttributeTagsRequest request) { + LOG.trace("Called listAttributeTags"); + final ListAttributeTagsRequest interceptedRequest = + ListAttributeTagsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAttributeTagsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListAttributeTagsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAttributesResponse listAttributes(ListAttributesRequest request) { + LOG.trace("Called listAttributes"); + final ListAttributesRequest interceptedRequest = + ListAttributesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAttributesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListAttributesConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListCatalogsResponse listCatalogs(ListCatalogsRequest request) { + LOG.trace("Called listCatalogs"); + final ListCatalogsRequest interceptedRequest = + ListCatalogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCatalogsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListCatalogsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListConnectionsResponse listConnections(ListConnectionsRequest request) { + LOG.trace("Called listConnections"); + final ListConnectionsRequest interceptedRequest = + ListConnectionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListConnectionsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListConnectionsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDataAssetTagsResponse listDataAssetTags(ListDataAssetTagsRequest request) { + LOG.trace("Called listDataAssetTags"); + final ListDataAssetTagsRequest interceptedRequest = + ListDataAssetTagsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataAssetTagsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListDataAssetTagsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDataAssetsResponse listDataAssets(ListDataAssetsRequest request) { + LOG.trace("Called listDataAssets"); + final ListDataAssetsRequest interceptedRequest = + ListDataAssetsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataAssetsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListDataAssetsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListEntitiesResponse listEntities(ListEntitiesRequest request) { + LOG.trace("Called listEntities"); + final ListEntitiesRequest interceptedRequest = + ListEntitiesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEntitiesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListEntitiesConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListEntityTagsResponse listEntityTags(ListEntityTagsRequest request) { + LOG.trace("Called listEntityTags"); + final ListEntityTagsRequest interceptedRequest = + ListEntityTagsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEntityTagsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListEntityTagsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListFolderTagsResponse listFolderTags(ListFolderTagsRequest request) { + LOG.trace("Called listFolderTags"); + final ListFolderTagsRequest interceptedRequest = + ListFolderTagsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFolderTagsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListFolderTagsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListFoldersResponse listFolders(ListFoldersRequest request) { + LOG.trace("Called listFolders"); + final ListFoldersRequest interceptedRequest = + ListFoldersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFoldersConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListFoldersConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListGlossariesResponse listGlossaries(ListGlossariesRequest request) { + LOG.trace("Called listGlossaries"); + final ListGlossariesRequest interceptedRequest = + ListGlossariesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGlossariesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListGlossariesConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListJobDefinitionsResponse listJobDefinitions(ListJobDefinitionsRequest request) { + LOG.trace("Called listJobDefinitions"); + final ListJobDefinitionsRequest interceptedRequest = + ListJobDefinitionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobDefinitionsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListJobDefinitionsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListJobExecutionsResponse listJobExecutions(ListJobExecutionsRequest request) { + LOG.trace("Called listJobExecutions"); + final ListJobExecutionsRequest interceptedRequest = + ListJobExecutionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobExecutionsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListJobExecutionsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListJobLogsResponse listJobLogs(ListJobLogsRequest request) { + LOG.trace("Called listJobLogs"); + final ListJobLogsRequest interceptedRequest = + ListJobLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobLogsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListJobLogsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListJobMetricsResponse listJobMetrics(ListJobMetricsRequest request) { + LOG.trace("Called listJobMetrics"); + final ListJobMetricsRequest interceptedRequest = + ListJobMetricsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobMetricsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListJobMetricsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListJobsResponse listJobs(ListJobsRequest request) { + LOG.trace("Called listJobs"); + final ListJobsRequest interceptedRequest = ListJobsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListJobsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + ListJobsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListTagsResponse listTags(ListTagsRequest request) { + LOG.trace("Called listTags"); + final ListTagsRequest interceptedRequest = ListTagsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTagsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + ListTagsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListTermRelationshipsResponse listTermRelationships( + ListTermRelationshipsRequest request) { + LOG.trace("Called listTermRelationships"); + final ListTermRelationshipsRequest interceptedRequest = + ListTermRelationshipsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTermRelationshipsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListTermRelationshipsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListTermsResponse listTerms(ListTermsRequest request) { + LOG.trace("Called listTerms"); + final ListTermsRequest interceptedRequest = ListTermsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTermsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + ListTermsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListTypesResponse listTypes(ListTypesRequest request) { + LOG.trace("Called listTypes"); + final ListTypesRequest interceptedRequest = ListTypesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTypesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + ListTypesConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListWorkRequestErrorsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListWorkRequestLogsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListWorkRequestsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ObjectStatsResponse objectStats(ObjectStatsRequest request) { + LOG.trace("Called objectStats"); + final ObjectStatsRequest interceptedRequest = + ObjectStatsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ObjectStatsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ObjectStatsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ParseConnectionResponse parseConnection(ParseConnectionRequest request) { + LOG.trace("Called parseConnection"); + final ParseConnectionRequest interceptedRequest = + ParseConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ParseConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ParseConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getParseConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public SearchCriteriaResponse searchCriteria(SearchCriteriaRequest request) { + LOG.trace("Called searchCriteria"); + final SearchCriteriaRequest interceptedRequest = + SearchCriteriaConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SearchCriteriaConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = SearchCriteriaConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getSearchCriteriaDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public TestConnectionResponse testConnection(TestConnectionRequest request) { + LOG.trace("Called testConnection"); + final TestConnectionRequest interceptedRequest = + TestConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + TestConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = TestConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateAttributeResponse updateAttribute(UpdateAttributeRequest request) { + LOG.trace("Called updateAttribute"); + final UpdateAttributeRequest interceptedRequest = + UpdateAttributeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateAttributeConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateAttributeConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateAttributeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateCatalogResponse updateCatalog(UpdateCatalogRequest request) { + LOG.trace("Called updateCatalog"); + final UpdateCatalogRequest interceptedRequest = + UpdateCatalogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCatalogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateCatalogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateCatalogDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) { + LOG.trace("Called updateConnection"); + final UpdateConnectionRequest interceptedRequest = + UpdateConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateDataAssetResponse updateDataAsset(UpdateDataAssetRequest request) { + LOG.trace("Called updateDataAsset"); + final UpdateDataAssetRequest interceptedRequest = + UpdateDataAssetConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDataAssetConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateDataAssetConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateDataAssetDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateEntityResponse updateEntity(UpdateEntityRequest request) { + LOG.trace("Called updateEntity"); + final UpdateEntityRequest interceptedRequest = + UpdateEntityConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateEntityConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateEntityConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateEntityDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateFolderResponse updateFolder(UpdateFolderRequest request) { + LOG.trace("Called updateFolder"); + final UpdateFolderRequest interceptedRequest = + UpdateFolderConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateFolderConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateFolderConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateFolderDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateGlossaryResponse updateGlossary(UpdateGlossaryRequest request) { + LOG.trace("Called updateGlossary"); + final UpdateGlossaryRequest interceptedRequest = + UpdateGlossaryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateGlossaryConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateGlossaryConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateGlossaryDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateJobResponse updateJob(UpdateJobRequest request) { + LOG.trace("Called updateJob"); + final UpdateJobRequest interceptedRequest = UpdateJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + UpdateJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateJobDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateJobDefinitionResponse updateJobDefinition(UpdateJobDefinitionRequest request) { + LOG.trace("Called updateJobDefinition"); + final UpdateJobDefinitionRequest interceptedRequest = + UpdateJobDefinitionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateJobDefinitionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateJobDefinitionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateJobDefinitionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateTermResponse updateTerm(UpdateTermRequest request) { + LOG.trace("Called updateTerm"); + final UpdateTermRequest interceptedRequest = UpdateTermConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTermConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + UpdateTermConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateTermDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateTermRelationshipResponse updateTermRelationship( + UpdateTermRelationshipRequest request) { + LOG.trace("Called updateTermRelationship"); + final UpdateTermRelationshipRequest interceptedRequest = + UpdateTermRelationshipConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTermRelationshipConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateTermRelationshipConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateTermRelationshipDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UploadCredentialsResponse uploadCredentials(UploadCredentialsRequest request) { + LOG.trace("Called uploadCredentials"); + final UploadCredentialsRequest interceptedRequest = + UploadCredentialsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UploadCredentialsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UploadCredentialsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getUploadCredentialsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UsersResponse users(UsersRequest request) { + LOG.trace("Called users"); + final UsersRequest interceptedRequest = UsersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UsersConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + UsersConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ValidateConnectionResponse validateConnection(ValidateConnectionRequest request) { + LOG.trace("Called validateConnection"); + final ValidateConnectionRequest interceptedRequest = + ValidateConnectionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ValidateConnectionConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ValidateConnectionConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getValidateConnectionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DataCatalogWaiters getWaiters() { + return waiters; + } + + @Override + public DataCatalogPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogPaginators.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogPaginators.java new file mode 100644 index 00000000000..4b60d3f8053 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogPaginators.java @@ -0,0 +1,2600 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DataCatalog where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.RequiredArgsConstructor +public class DataCatalogPaginators { + private final DataCatalog client; + + /** + * Creates a new iterable which will iterate over the responses received from the listAttributeTags 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 listAttributeTagsResponseIterator( + final ListAttributeTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAttributeTagsRequest.Builder, ListAttributeTagsRequest, + ListAttributeTagsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListAttributeTagsRequest.Builder get() { + return ListAttributeTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAttributeTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributeTagsRequest.Builder>, + ListAttributeTagsRequest>() { + @Override + public ListAttributeTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributeTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAttributeTagsRequest, ListAttributeTagsResponse>() { + @Override + public ListAttributeTagsResponse apply(ListAttributeTagsRequest request) { + return client.listAttributeTags(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.AttributeTagSummary} objects + * contained in responses from the listAttributeTags 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.datacatalog.model.AttributeTagSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAttributeTagsRecordIterator(final ListAttributeTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAttributeTagsRequest.Builder, ListAttributeTagsRequest, + ListAttributeTagsResponse, com.oracle.bmc.datacatalog.model.AttributeTagSummary>( + new com.google.common.base.Supplier() { + @Override + public ListAttributeTagsRequest.Builder get() { + return ListAttributeTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAttributeTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributeTagsRequest.Builder>, + ListAttributeTagsRequest>() { + @Override + public ListAttributeTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributeTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAttributeTagsRequest, ListAttributeTagsResponse>() { + @Override + public ListAttributeTagsResponse apply(ListAttributeTagsRequest request) { + return client.listAttributeTags(request); + } + }, + new com.google.common.base.Function< + ListAttributeTagsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListAttributeTagsResponse response) { + return response.getAttributeTagCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listAttributes 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 listAttributesResponseIterator( + final ListAttributesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAttributesRequest.Builder, ListAttributesRequest, ListAttributesResponse>( + new com.google.common.base.Supplier() { + @Override + public ListAttributesRequest.Builder get() { + return ListAttributesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAttributesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributesRequest.Builder>, + ListAttributesRequest>() { + @Override + public ListAttributesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAttributesRequest, ListAttributesResponse>() { + @Override + public ListAttributesResponse apply(ListAttributesRequest request) { + return client.listAttributes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.AttributeSummary} objects + * contained in responses from the listAttributes 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.datacatalog.model.AttributeSummary} objects + * contained in responses received from the service. + */ + public Iterable listAttributesRecordIterator( + final ListAttributesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAttributesRequest.Builder, ListAttributesRequest, ListAttributesResponse, + com.oracle.bmc.datacatalog.model.AttributeSummary>( + new com.google.common.base.Supplier() { + @Override + public ListAttributesRequest.Builder get() { + return ListAttributesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAttributesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributesRequest.Builder>, + ListAttributesRequest>() { + @Override + public ListAttributesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAttributesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAttributesRequest, ListAttributesResponse>() { + @Override + public ListAttributesResponse apply(ListAttributesRequest request) { + return client.listAttributes(request); + } + }, + new com.google.common.base.Function< + ListAttributesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListAttributesResponse response) { + return response.getAttributeCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listCatalogs 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 listCatalogsResponseIterator( + final ListCatalogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListCatalogsRequest.Builder, ListCatalogsRequest, ListCatalogsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListCatalogsRequest.Builder get() { + return ListCatalogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListCatalogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCatalogsRequest.Builder>, + ListCatalogsRequest>() { + @Override + public ListCatalogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCatalogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListCatalogsResponse apply(ListCatalogsRequest request) { + return client.listCatalogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.CatalogSummary} objects + * contained in responses from the listCatalogs 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.datacatalog.model.CatalogSummary} objects + * contained in responses received from the service. + */ + public Iterable listCatalogsRecordIterator( + final ListCatalogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListCatalogsRequest.Builder, ListCatalogsRequest, ListCatalogsResponse, + com.oracle.bmc.datacatalog.model.CatalogSummary>( + new com.google.common.base.Supplier() { + @Override + public ListCatalogsRequest.Builder get() { + return ListCatalogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListCatalogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCatalogsRequest.Builder>, + ListCatalogsRequest>() { + @Override + public ListCatalogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListCatalogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListCatalogsResponse apply(ListCatalogsRequest request) { + return client.listCatalogs(request); + } + }, + new com.google.common.base.Function< + ListCatalogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListCatalogsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listConnections 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 listConnectionsResponseIterator( + final ListConnectionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListConnectionsRequest.Builder, ListConnectionsRequest, ListConnectionsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListConnectionsRequest.Builder get() { + return ListConnectionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListConnectionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListConnectionsRequest.Builder>, + ListConnectionsRequest>() { + @Override + public ListConnectionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListConnectionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListConnectionsRequest, ListConnectionsResponse>() { + @Override + public ListConnectionsResponse apply(ListConnectionsRequest request) { + return client.listConnections(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.ConnectionSummary} objects + * contained in responses from the listConnections 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.datacatalog.model.ConnectionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listConnectionsRecordIterator(final ListConnectionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListConnectionsRequest.Builder, ListConnectionsRequest, ListConnectionsResponse, + com.oracle.bmc.datacatalog.model.ConnectionSummary>( + new com.google.common.base.Supplier() { + @Override + public ListConnectionsRequest.Builder get() { + return ListConnectionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListConnectionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListConnectionsRequest.Builder>, + ListConnectionsRequest>() { + @Override + public ListConnectionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListConnectionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListConnectionsRequest, ListConnectionsResponse>() { + @Override + public ListConnectionsResponse apply(ListConnectionsRequest request) { + return client.listConnections(request); + } + }, + new com.google.common.base.Function< + ListConnectionsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListConnectionsResponse response) { + return response.getConnectionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataAssetTags 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 listDataAssetTagsResponseIterator( + final ListDataAssetTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataAssetTagsRequest.Builder, ListDataAssetTagsRequest, + ListDataAssetTagsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListDataAssetTagsRequest.Builder get() { + return ListDataAssetTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListDataAssetTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetTagsRequest.Builder>, + ListDataAssetTagsRequest>() { + @Override + public ListDataAssetTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListDataAssetTagsRequest, ListDataAssetTagsResponse>() { + @Override + public ListDataAssetTagsResponse apply(ListDataAssetTagsRequest request) { + return client.listDataAssetTags(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.DataAssetTagSummary} objects + * contained in responses from the listDataAssetTags 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.datacatalog.model.DataAssetTagSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataAssetTagsRecordIterator(final ListDataAssetTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataAssetTagsRequest.Builder, ListDataAssetTagsRequest, + ListDataAssetTagsResponse, com.oracle.bmc.datacatalog.model.DataAssetTagSummary>( + new com.google.common.base.Supplier() { + @Override + public ListDataAssetTagsRequest.Builder get() { + return ListDataAssetTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListDataAssetTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetTagsRequest.Builder>, + ListDataAssetTagsRequest>() { + @Override + public ListDataAssetTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListDataAssetTagsRequest, ListDataAssetTagsResponse>() { + @Override + public ListDataAssetTagsResponse apply(ListDataAssetTagsRequest request) { + return client.listDataAssetTags(request); + } + }, + new com.google.common.base.Function< + ListDataAssetTagsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListDataAssetTagsResponse response) { + return response.getDataAssetTagCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataAssets 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 listDataAssetsResponseIterator( + final ListDataAssetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataAssetsRequest.Builder, ListDataAssetsRequest, ListDataAssetsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListDataAssetsRequest.Builder get() { + return ListDataAssetsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListDataAssetsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetsRequest.Builder>, + ListDataAssetsRequest>() { + @Override + public ListDataAssetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListDataAssetsRequest, ListDataAssetsResponse>() { + @Override + public ListDataAssetsResponse apply(ListDataAssetsRequest request) { + return client.listDataAssets(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.DataAssetSummary} objects + * contained in responses from the listDataAssets 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.datacatalog.model.DataAssetSummary} objects + * contained in responses received from the service. + */ + public Iterable listDataAssetsRecordIterator( + final ListDataAssetsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataAssetsRequest.Builder, ListDataAssetsRequest, ListDataAssetsResponse, + com.oracle.bmc.datacatalog.model.DataAssetSummary>( + new com.google.common.base.Supplier() { + @Override + public ListDataAssetsRequest.Builder get() { + return ListDataAssetsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListDataAssetsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetsRequest.Builder>, + ListDataAssetsRequest>() { + @Override + public ListDataAssetsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataAssetsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListDataAssetsRequest, ListDataAssetsResponse>() { + @Override + public ListDataAssetsResponse apply(ListDataAssetsRequest request) { + return client.listDataAssets(request); + } + }, + new com.google.common.base.Function< + ListDataAssetsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDataAssetsResponse response) { + return response.getDataAssetCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listEntities 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 listEntitiesResponseIterator( + final ListEntitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListEntitiesRequest.Builder, ListEntitiesRequest, ListEntitiesResponse>( + new com.google.common.base.Supplier() { + @Override + public ListEntitiesRequest.Builder get() { + return ListEntitiesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListEntitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntitiesRequest.Builder>, + ListEntitiesRequest>() { + @Override + public ListEntitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntitiesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListEntitiesResponse apply(ListEntitiesRequest request) { + return client.listEntities(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.EntitySummary} objects + * contained in responses from the listEntities 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.datacatalog.model.EntitySummary} objects + * contained in responses received from the service. + */ + public Iterable listEntitiesRecordIterator( + final ListEntitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListEntitiesRequest.Builder, ListEntitiesRequest, ListEntitiesResponse, + com.oracle.bmc.datacatalog.model.EntitySummary>( + new com.google.common.base.Supplier() { + @Override + public ListEntitiesRequest.Builder get() { + return ListEntitiesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListEntitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntitiesRequest.Builder>, + ListEntitiesRequest>() { + @Override + public ListEntitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntitiesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListEntitiesResponse apply(ListEntitiesRequest request) { + return client.listEntities(request); + } + }, + new com.google.common.base.Function< + ListEntitiesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListEntitiesResponse response) { + return response.getEntityCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listEntityTags 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 listEntityTagsResponseIterator( + final ListEntityTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListEntityTagsRequest.Builder, ListEntityTagsRequest, ListEntityTagsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListEntityTagsRequest.Builder get() { + return ListEntityTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListEntityTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntityTagsRequest.Builder>, + ListEntityTagsRequest>() { + @Override + public ListEntityTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntityTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListEntityTagsRequest, ListEntityTagsResponse>() { + @Override + public ListEntityTagsResponse apply(ListEntityTagsRequest request) { + return client.listEntityTags(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.EntityTagSummary} objects + * contained in responses from the listEntityTags 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.datacatalog.model.EntityTagSummary} objects + * contained in responses received from the service. + */ + public Iterable listEntityTagsRecordIterator( + final ListEntityTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListEntityTagsRequest.Builder, ListEntityTagsRequest, ListEntityTagsResponse, + com.oracle.bmc.datacatalog.model.EntityTagSummary>( + new com.google.common.base.Supplier() { + @Override + public ListEntityTagsRequest.Builder get() { + return ListEntityTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListEntityTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntityTagsRequest.Builder>, + ListEntityTagsRequest>() { + @Override + public ListEntityTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListEntityTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListEntityTagsRequest, ListEntityTagsResponse>() { + @Override + public ListEntityTagsResponse apply(ListEntityTagsRequest request) { + return client.listEntityTags(request); + } + }, + new com.google.common.base.Function< + ListEntityTagsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListEntityTagsResponse response) { + return response.getEntityTagCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listFolderTags 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 listFolderTagsResponseIterator( + final ListFolderTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFolderTagsRequest.Builder, ListFolderTagsRequest, ListFolderTagsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListFolderTagsRequest.Builder get() { + return ListFolderTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListFolderTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFolderTagsRequest.Builder>, + ListFolderTagsRequest>() { + @Override + public ListFolderTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFolderTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListFolderTagsRequest, ListFolderTagsResponse>() { + @Override + public ListFolderTagsResponse apply(ListFolderTagsRequest request) { + return client.listFolderTags(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.FolderTagSummary} objects + * contained in responses from the listFolderTags 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.datacatalog.model.FolderTagSummary} objects + * contained in responses received from the service. + */ + public Iterable listFolderTagsRecordIterator( + final ListFolderTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFolderTagsRequest.Builder, ListFolderTagsRequest, ListFolderTagsResponse, + com.oracle.bmc.datacatalog.model.FolderTagSummary>( + new com.google.common.base.Supplier() { + @Override + public ListFolderTagsRequest.Builder get() { + return ListFolderTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListFolderTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFolderTagsRequest.Builder>, + ListFolderTagsRequest>() { + @Override + public ListFolderTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFolderTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListFolderTagsRequest, ListFolderTagsResponse>() { + @Override + public ListFolderTagsResponse apply(ListFolderTagsRequest request) { + return client.listFolderTags(request); + } + }, + new com.google.common.base.Function< + ListFolderTagsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListFolderTagsResponse response) { + return response.getFolderTagCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listFolders 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 listFoldersResponseIterator( + final ListFoldersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListFoldersRequest.Builder, ListFoldersRequest, ListFoldersResponse>( + new com.google.common.base.Supplier() { + @Override + public ListFoldersRequest.Builder get() { + return ListFoldersRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListFoldersResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFoldersRequest.Builder>, + ListFoldersRequest>() { + @Override + public ListFoldersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFoldersRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListFoldersResponse apply(ListFoldersRequest request) { + return client.listFolders(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.FolderSummary} objects + * contained in responses from the listFolders 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.datacatalog.model.FolderSummary} objects + * contained in responses received from the service. + */ + public Iterable listFoldersRecordIterator( + final ListFoldersRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListFoldersRequest.Builder, ListFoldersRequest, ListFoldersResponse, + com.oracle.bmc.datacatalog.model.FolderSummary>( + new com.google.common.base.Supplier() { + @Override + public ListFoldersRequest.Builder get() { + return ListFoldersRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListFoldersResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFoldersRequest.Builder>, + ListFoldersRequest>() { + @Override + public ListFoldersRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListFoldersRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListFoldersResponse apply(ListFoldersRequest request) { + return client.listFolders(request); + } + }, + new com.google.common.base.Function< + ListFoldersResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListFoldersResponse response) { + return response.getFolderCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listGlossaries 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 listGlossariesResponseIterator( + final ListGlossariesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListGlossariesRequest.Builder, ListGlossariesRequest, ListGlossariesResponse>( + new com.google.common.base.Supplier() { + @Override + public ListGlossariesRequest.Builder get() { + return ListGlossariesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListGlossariesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGlossariesRequest.Builder>, + ListGlossariesRequest>() { + @Override + public ListGlossariesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGlossariesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListGlossariesRequest, ListGlossariesResponse>() { + @Override + public ListGlossariesResponse apply(ListGlossariesRequest request) { + return client.listGlossaries(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.GlossarySummary} objects + * contained in responses from the listGlossaries 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.datacatalog.model.GlossarySummary} objects + * contained in responses received from the service. + */ + public Iterable listGlossariesRecordIterator( + final ListGlossariesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListGlossariesRequest.Builder, ListGlossariesRequest, ListGlossariesResponse, + com.oracle.bmc.datacatalog.model.GlossarySummary>( + new com.google.common.base.Supplier() { + @Override + public ListGlossariesRequest.Builder get() { + return ListGlossariesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListGlossariesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGlossariesRequest.Builder>, + ListGlossariesRequest>() { + @Override + public ListGlossariesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGlossariesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListGlossariesRequest, ListGlossariesResponse>() { + @Override + public ListGlossariesResponse apply(ListGlossariesRequest request) { + return client.listGlossaries(request); + } + }, + new com.google.common.base.Function< + ListGlossariesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListGlossariesResponse response) { + return response.getGlossaryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listJobDefinitions 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 listJobDefinitionsResponseIterator( + final ListJobDefinitionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListJobDefinitionsRequest.Builder, ListJobDefinitionsRequest, + ListJobDefinitionsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListJobDefinitionsRequest.Builder get() { + return ListJobDefinitionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobDefinitionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobDefinitionsRequest.Builder>, + ListJobDefinitionsRequest>() { + @Override + public ListJobDefinitionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobDefinitionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobDefinitionsRequest, ListJobDefinitionsResponse>() { + @Override + public ListJobDefinitionsResponse apply(ListJobDefinitionsRequest request) { + return client.listJobDefinitions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.JobDefinitionSummary} objects + * contained in responses from the listJobDefinitions 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.datacatalog.model.JobDefinitionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listJobDefinitionsRecordIterator(final ListJobDefinitionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListJobDefinitionsRequest.Builder, ListJobDefinitionsRequest, + ListJobDefinitionsResponse, com.oracle.bmc.datacatalog.model.JobDefinitionSummary>( + new com.google.common.base.Supplier() { + @Override + public ListJobDefinitionsRequest.Builder get() { + return ListJobDefinitionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobDefinitionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobDefinitionsRequest.Builder>, + ListJobDefinitionsRequest>() { + @Override + public ListJobDefinitionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobDefinitionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobDefinitionsRequest, ListJobDefinitionsResponse>() { + @Override + public ListJobDefinitionsResponse apply(ListJobDefinitionsRequest request) { + return client.listJobDefinitions(request); + } + }, + new com.google.common.base.Function< + ListJobDefinitionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListJobDefinitionsResponse response) { + return response.getJobDefinitionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listJobExecutions 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 listJobExecutionsResponseIterator( + final ListJobExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListJobExecutionsRequest.Builder, ListJobExecutionsRequest, + ListJobExecutionsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListJobExecutionsRequest.Builder get() { + return ListJobExecutionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobExecutionsRequest.Builder>, + ListJobExecutionsRequest>() { + @Override + public ListJobExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobExecutionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobExecutionsRequest, ListJobExecutionsResponse>() { + @Override + public ListJobExecutionsResponse apply(ListJobExecutionsRequest request) { + return client.listJobExecutions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.JobExecutionSummary} objects + * contained in responses from the listJobExecutions 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.datacatalog.model.JobExecutionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listJobExecutionsRecordIterator(final ListJobExecutionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListJobExecutionsRequest.Builder, ListJobExecutionsRequest, + ListJobExecutionsResponse, com.oracle.bmc.datacatalog.model.JobExecutionSummary>( + new com.google.common.base.Supplier() { + @Override + public ListJobExecutionsRequest.Builder get() { + return ListJobExecutionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobExecutionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobExecutionsRequest.Builder>, + ListJobExecutionsRequest>() { + @Override + public ListJobExecutionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobExecutionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobExecutionsRequest, ListJobExecutionsResponse>() { + @Override + public ListJobExecutionsResponse apply(ListJobExecutionsRequest request) { + return client.listJobExecutions(request); + } + }, + new com.google.common.base.Function< + ListJobExecutionsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListJobExecutionsResponse response) { + return response.getJobExecutionCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listJobLogs 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 listJobLogsResponseIterator( + final ListJobLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListJobLogsRequest.Builder, ListJobLogsRequest, ListJobLogsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListJobLogsRequest.Builder get() { + return ListJobLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobLogsRequest.Builder>, + ListJobLogsRequest>() { + @Override + public ListJobLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobLogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListJobLogsResponse apply(ListJobLogsRequest request) { + return client.listJobLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.JobLogSummary} objects + * contained in responses from the listJobLogs 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.datacatalog.model.JobLogSummary} objects + * contained in responses received from the service. + */ + public Iterable listJobLogsRecordIterator( + final ListJobLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListJobLogsRequest.Builder, ListJobLogsRequest, ListJobLogsResponse, + com.oracle.bmc.datacatalog.model.JobLogSummary>( + new com.google.common.base.Supplier() { + @Override + public ListJobLogsRequest.Builder get() { + return ListJobLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobLogsRequest.Builder>, + ListJobLogsRequest>() { + @Override + public ListJobLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobLogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListJobLogsResponse apply(ListJobLogsRequest request) { + return client.listJobLogs(request); + } + }, + new com.google.common.base.Function< + ListJobLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListJobLogsResponse response) { + return response.getJobLogCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listJobMetrics 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 listJobMetricsResponseIterator( + final ListJobMetricsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListJobMetricsRequest.Builder, ListJobMetricsRequest, ListJobMetricsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListJobMetricsRequest.Builder get() { + return ListJobMetricsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobMetricsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobMetricsRequest.Builder>, + ListJobMetricsRequest>() { + @Override + public ListJobMetricsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobMetricsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobMetricsRequest, ListJobMetricsResponse>() { + @Override + public ListJobMetricsResponse apply(ListJobMetricsRequest request) { + return client.listJobMetrics(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.JobMetricSummary} objects + * contained in responses from the listJobMetrics 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.datacatalog.model.JobMetricSummary} objects + * contained in responses received from the service. + */ + public Iterable listJobMetricsRecordIterator( + final ListJobMetricsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListJobMetricsRequest.Builder, ListJobMetricsRequest, ListJobMetricsResponse, + com.oracle.bmc.datacatalog.model.JobMetricSummary>( + new com.google.common.base.Supplier() { + @Override + public ListJobMetricsRequest.Builder get() { + return ListJobMetricsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobMetricsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobMetricsRequest.Builder>, + ListJobMetricsRequest>() { + @Override + public ListJobMetricsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobMetricsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListJobMetricsRequest, ListJobMetricsResponse>() { + @Override + public ListJobMetricsResponse apply(ListJobMetricsRequest request) { + return client.listJobMetrics(request); + } + }, + new com.google.common.base.Function< + ListJobMetricsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListJobMetricsResponse response) { + return response.getJobMetricCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listJobs 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 listJobsResponseIterator(final ListJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListJobsRequest.Builder, ListJobsRequest, ListJobsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListJobsRequest.Builder get() { + return ListJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobsRequest.Builder>, + ListJobsRequest>() { + @Override + public ListJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListJobsResponse apply(ListJobsRequest request) { + return client.listJobs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.JobSummary} objects + * contained in responses from the listJobs 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.datacatalog.model.JobSummary} objects + * contained in responses received from the service. + */ + public Iterable listJobsRecordIterator( + final ListJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListJobsRequest.Builder, ListJobsRequest, ListJobsResponse, + com.oracle.bmc.datacatalog.model.JobSummary>( + new com.google.common.base.Supplier() { + @Override + public ListJobsRequest.Builder get() { + return ListJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobsRequest.Builder>, + ListJobsRequest>() { + @Override + public ListJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListJobsResponse apply(ListJobsRequest request) { + return client.listJobs(request); + } + }, + new com.google.common.base.Function< + ListJobsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListJobsResponse response) { + return response.getJobCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listTags 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 listTagsResponseIterator(final ListTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTagsRequest.Builder, ListTagsRequest, ListTagsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTagsRequest.Builder get() { + return ListTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTagsRequest.Builder>, + ListTagsRequest>() { + @Override + public ListTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTagsResponse apply(ListTagsRequest request) { + return client.listTags(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.TermSummary} objects + * contained in responses from the listTags 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.datacatalog.model.TermSummary} objects + * contained in responses received from the service. + */ + public Iterable listTagsRecordIterator( + final ListTagsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTagsRequest.Builder, ListTagsRequest, ListTagsResponse, + com.oracle.bmc.datacatalog.model.TermSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTagsRequest.Builder get() { + return ListTagsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTagsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTagsRequest.Builder>, + ListTagsRequest>() { + @Override + public ListTagsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTagsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTagsResponse apply(ListTagsRequest request) { + return client.listTags(request); + } + }, + new com.google.common.base.Function< + ListTagsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListTagsResponse response) { + return response.getTermCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listTermRelationships 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 listTermRelationshipsResponseIterator( + final ListTermRelationshipsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTermRelationshipsRequest.Builder, ListTermRelationshipsRequest, + ListTermRelationshipsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTermRelationshipsRequest.Builder get() { + return ListTermRelationshipsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTermRelationshipsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermRelationshipsRequest.Builder>, + ListTermRelationshipsRequest>() { + @Override + public ListTermRelationshipsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermRelationshipsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListTermRelationshipsRequest, ListTermRelationshipsResponse>() { + @Override + public ListTermRelationshipsResponse apply( + ListTermRelationshipsRequest request) { + return client.listTermRelationships(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.TermRelationshipSummary} objects + * contained in responses from the listTermRelationships 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.datacatalog.model.TermRelationshipSummary} objects + * contained in responses received from the service. + */ + public Iterable + listTermRelationshipsRecordIterator(final ListTermRelationshipsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTermRelationshipsRequest.Builder, ListTermRelationshipsRequest, + ListTermRelationshipsResponse, + com.oracle.bmc.datacatalog.model.TermRelationshipSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTermRelationshipsRequest.Builder get() { + return ListTermRelationshipsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTermRelationshipsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermRelationshipsRequest.Builder>, + ListTermRelationshipsRequest>() { + @Override + public ListTermRelationshipsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermRelationshipsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListTermRelationshipsRequest, ListTermRelationshipsResponse>() { + @Override + public ListTermRelationshipsResponse apply( + ListTermRelationshipsRequest request) { + return client.listTermRelationships(request); + } + }, + new com.google.common.base.Function< + ListTermRelationshipsResponse, + java.util.List< + com.oracle.bmc.datacatalog.model.TermRelationshipSummary>>() { + @Override + public java.util.List + apply(ListTermRelationshipsResponse response) { + return response.getTermRelationshipCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listTerms 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 listTermsResponseIterator(final ListTermsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTermsRequest.Builder, ListTermsRequest, ListTermsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTermsRequest.Builder get() { + return ListTermsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTermsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermsRequest.Builder>, + ListTermsRequest>() { + @Override + public ListTermsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTermsResponse apply(ListTermsRequest request) { + return client.listTerms(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.TermSummary} objects + * contained in responses from the listTerms 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.datacatalog.model.TermSummary} objects + * contained in responses received from the service. + */ + public Iterable listTermsRecordIterator( + final ListTermsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTermsRequest.Builder, ListTermsRequest, ListTermsResponse, + com.oracle.bmc.datacatalog.model.TermSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTermsRequest.Builder get() { + return ListTermsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTermsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermsRequest.Builder>, + ListTermsRequest>() { + @Override + public ListTermsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTermsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTermsResponse apply(ListTermsRequest request) { + return client.listTerms(request); + } + }, + new com.google.common.base.Function< + ListTermsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListTermsResponse response) { + return response.getTermCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listTypes 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 listTypesResponseIterator(final ListTypesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTypesRequest.Builder, ListTypesRequest, ListTypesResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTypesRequest.Builder get() { + return ListTypesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTypesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTypesRequest.Builder>, + ListTypesRequest>() { + @Override + public ListTypesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTypesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTypesResponse apply(ListTypesRequest request) { + return client.listTypes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.datacatalog.model.TypeSummary} objects + * contained in responses from the listTypes 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.datacatalog.model.TypeSummary} objects + * contained in responses received from the service. + */ + public Iterable listTypesRecordIterator( + final ListTypesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTypesRequest.Builder, ListTypesRequest, ListTypesResponse, + com.oracle.bmc.datacatalog.model.TypeSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTypesRequest.Builder get() { + return ListTypesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTypesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTypesRequest.Builder>, + ListTypesRequest>() { + @Override + public ListTypesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTypesRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListTypesResponse apply(ListTypesRequest request) { + return client.listTypes(request); + } + }, + new com.google.common.base.Function< + ListTypesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListTypesResponse response) { + return response.getTypeCollection().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 com.google.common.base.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.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.datacatalog.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.datacatalog.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.datacatalog.model.WorkRequestError>( + new com.google.common.base.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new com.google.common.base.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestErrorsResponse response) { + return response.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 com.google.common.base.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.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.datacatalog.model.WorkRequestLog} 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.datacatalog.model.WorkRequestLog} 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.datacatalog.model.WorkRequestLog>( + new com.google.common.base.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new com.google.common.base.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestLogsResponse response) { + return response.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 com.google.common.base.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.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.datacatalog.model.WorkRequest} objects + * contained in responses from the listWorkRequests operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.datacatalog.model.WorkRequest} objects + * contained in responses received from the service. + */ + public Iterable listWorkRequestsRecordIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, + com.oracle.bmc.datacatalog.model.WorkRequest>( + new com.google.common.base.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.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.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new com.google.common.base.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListWorkRequestsResponse response) { + return response.getItems(); + } + }); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogWaiters.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogWaiters.java new file mode 100644 index 00000000000..e534c8dedb7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogWaiters.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog; + +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DataCatalog. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.RequiredArgsConstructor +public class DataCatalogWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DataCatalog client; + + /** + * 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( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ChangeCatalogCompartmentConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ChangeCatalogCompartmentConverter.java new file mode 100644 index 00000000000..03540f3be26 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ChangeCatalogCompartmentConverter.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ChangeCatalogCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ChangeCatalogCompartmentRequest interceptRequest( + ChangeCatalogCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + ChangeCatalogCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeCatalogCompartmentDetails(), + "changeCatalogCompartmentDetails is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeCatalogCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeCatalogCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeCatalogCompartmentResponse>() { + @Override + public ChangeCatalogCompartmentResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ChangeCatalogCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ChangeCatalogCompartmentResponse.Builder builder = + ChangeCatalogCompartmentResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + ChangeCatalogCompartmentResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeConverter.java new file mode 100644 index 00000000000..979cc66d808 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateAttributeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateAttributeRequest interceptRequest(CreateAttributeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateAttributeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notNull(request.getCreateAttributeDetails(), "createAttributeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateAttributeResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateAttributeResponse>() { + @Override + public CreateAttributeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateAttributeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Attribute.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateAttributeResponse.Builder builder = + CreateAttributeResponse.builder(); + + builder.attribute(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateAttributeResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeTagConverter.java new file mode 100644 index 00000000000..14ebce5ad75 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateAttributeTagConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateAttributeTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateAttributeTagRequest interceptRequest(CreateAttributeTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateAttributeTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + Validate.notNull( + request.getCreateAttributeTagDetails(), "createAttributeTagDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())) + .path("tags"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateAttributeTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateAttributeTagResponse>() { + @Override + public CreateAttributeTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateAttributeTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + AttributeTag>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + AttributeTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateAttributeTagResponse.Builder builder = + CreateAttributeTagResponse.builder(); + + builder.attributeTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateAttributeTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateCatalogConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateCatalogConverter.java new file mode 100644 index 00000000000..d60fcf02378 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateCatalogConverter.java @@ -0,0 +1,102 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateCatalogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateCatalogRequest interceptRequest(CreateCatalogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateCatalogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreateCatalogDetails(), "createCatalogDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190325").path("catalogs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateCatalogResponse>() { + @Override + public CreateCatalogResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateCatalogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateCatalogResponse.Builder builder = + CreateCatalogResponse.builder(); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateCatalogResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateConnectionConverter.java new file mode 100644 index 00000000000..971dcb5a5e0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateConnectionConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateConnectionRequest interceptRequest(CreateConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull( + request.getCreateConnectionDetails(), "createConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateConnectionResponse>() { + @Override + public CreateConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Connection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Connection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateConnectionResponse.Builder builder = + CreateConnectionResponse.builder(); + + builder.connection(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetConverter.java new file mode 100644 index 00000000000..2e60023c2f2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetConverter.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateDataAssetConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateDataAssetRequest interceptRequest(CreateDataAssetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateDataAssetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notNull(request.getCreateDataAssetDetails(), "createDataAssetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateDataAssetResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateDataAssetResponse>() { + @Override + public CreateDataAssetResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateDataAssetResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(DataAsset.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateDataAssetResponse.Builder builder = + CreateDataAssetResponse.builder(); + + builder.dataAsset(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateDataAssetResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetTagConverter.java new file mode 100644 index 00000000000..1170e25a970 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateDataAssetTagConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateDataAssetTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateDataAssetTagRequest interceptRequest(CreateDataAssetTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateDataAssetTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull( + request.getCreateDataAssetTagDetails(), "createDataAssetTagDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("tags"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateDataAssetTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateDataAssetTagResponse>() { + @Override + public CreateDataAssetTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateDataAssetTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + DataAssetTag>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + DataAssetTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateDataAssetTagResponse.Builder builder = + CreateDataAssetTagResponse.builder(); + + builder.dataAssetTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateDataAssetTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityConverter.java new file mode 100644 index 00000000000..1f442a58924 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityConverter.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateEntityConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateEntityRequest interceptRequest(CreateEntityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateEntityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull(request.getCreateEntityDetails(), "createEntityDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateEntityResponse>() { + @Override + public CreateEntityResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateEntityResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Entity.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateEntityResponse.Builder builder = + CreateEntityResponse.builder(); + + builder.entity(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateEntityResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityTagConverter.java new file mode 100644 index 00000000000..a22759ff281 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateEntityTagConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateEntityTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateEntityTagRequest interceptRequest(CreateEntityTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateEntityTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notNull(request.getCreateEntityTagDetails(), "createEntityTagDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("tags"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateEntityTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateEntityTagResponse>() { + @Override + public CreateEntityTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateEntityTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(EntityTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateEntityTagResponse.Builder builder = + CreateEntityTagResponse.builder(); + + builder.entityTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateEntityTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderConverter.java new file mode 100644 index 00000000000..34335afbcf0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderConverter.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateFolderConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateFolderRequest interceptRequest(CreateFolderRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateFolderRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull(request.getCreateFolderDetails(), "createFolderDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateFolderResponse>() { + @Override + public CreateFolderResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateFolderResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Folder.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateFolderResponse.Builder builder = + CreateFolderResponse.builder(); + + builder.folder(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateFolderResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderTagConverter.java new file mode 100644 index 00000000000..cfffb990e4f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateFolderTagConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateFolderTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateFolderTagRequest interceptRequest(CreateFolderTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateFolderTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + Validate.notNull(request.getCreateFolderTagDetails(), "createFolderTagDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())) + .path("tags"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateFolderTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateFolderTagResponse>() { + @Override + public CreateFolderTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateFolderTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(FolderTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateFolderTagResponse.Builder builder = + CreateFolderTagResponse.builder(); + + builder.folderTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateFolderTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateGlossaryConverter.java new file mode 100644 index 00000000000..ad89c7a0175 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateGlossaryConverter.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateGlossaryRequest interceptRequest(CreateGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notNull(request.getCreateGlossaryDetails(), "createGlossaryDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateGlossaryResponse>() { + @Override + public CreateGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Glossary.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateGlossaryResponse.Builder builder = + CreateGlossaryResponse.builder(); + + builder.glossary(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobConverter.java new file mode 100644 index 00000000000..2cfe32d30fc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobConverter.java @@ -0,0 +1,106 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateJobRequest interceptRequest(CreateJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notNull(request.getCreateJobDetails(), "createJobDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobResponse>() { + @Override + public CreateJobResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Job.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateJobResponse.Builder builder = CreateJobResponse.builder(); + + builder.job(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobDefinitionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobDefinitionConverter.java new file mode 100644 index 00000000000..3e77f002a36 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobDefinitionConverter.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateJobDefinitionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateJobDefinitionRequest interceptRequest(CreateJobDefinitionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateJobDefinitionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notNull( + request.getCreateJobDefinitionDetails(), "createJobDefinitionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobDefinitions"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobDefinitionResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobDefinitionResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobDefinitionResponse>() { + @Override + public CreateJobDefinitionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateJobDefinitionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobDefinition>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobDefinition.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateJobDefinitionResponse.Builder builder = + CreateJobDefinitionResponse.builder(); + + builder.jobDefinition(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateJobDefinitionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobExecutionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobExecutionConverter.java new file mode 100644 index 00000000000..c155a93012e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateJobExecutionConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateJobExecutionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateJobExecutionRequest interceptRequest(CreateJobExecutionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateJobExecutionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notNull( + request.getCreateJobExecutionDetails(), "createJobExecutionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobExecutionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateJobExecutionResponse>() { + @Override + public CreateJobExecutionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateJobExecutionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobExecution>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobExecution.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateJobExecutionResponse.Builder builder = + CreateJobExecutionResponse.builder(); + + builder.jobExecution(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateJobExecutionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermConverter.java new file mode 100644 index 00000000000..556015b76f7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermConverter.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateTermConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateTermRequest interceptRequest(CreateTermRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateTermRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notNull(request.getCreateTermDetails(), "createTermDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateTermResponse>() { + @Override + public CreateTermResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateTermResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Term.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateTermResponse.Builder builder = CreateTermResponse.builder(); + + builder.term(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateTermResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermRelationshipConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermRelationshipConverter.java new file mode 100644 index 00000000000..ae76d126bbf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/CreateTermRelationshipConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class CreateTermRelationshipConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateTermRelationshipRequest interceptRequest( + CreateTermRelationshipRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateTermRelationshipRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + Validate.notNull( + request.getCreateTermRelationshipDetails(), + "createTermRelationshipDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())) + .path("termRelationships"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateTermRelationshipResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateTermRelationshipResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateTermRelationshipResponse>() { + @Override + public CreateTermRelationshipResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateTermRelationshipResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermRelationship>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermRelationship.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateTermRelationshipResponse.Builder builder = + CreateTermRelationshipResponse.builder(); + + builder.termRelationship(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateTermRelationshipResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeConverter.java new file mode 100644 index 00000000000..a0dcac2feb7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeConverter.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteAttributeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteAttributeRequest interceptRequest(DeleteAttributeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteAttributeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteAttributeResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteAttributeResponse>() { + @Override + public DeleteAttributeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteAttributeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteAttributeResponse.Builder builder = + DeleteAttributeResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteAttributeResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeTagConverter.java new file mode 100644 index 00000000000..0086a8fc0e1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteAttributeTagConverter.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteAttributeTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteAttributeTagRequest interceptRequest(DeleteAttributeTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteAttributeTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteAttributeTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteAttributeTagResponse>() { + @Override + public DeleteAttributeTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteAttributeTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteAttributeTagResponse.Builder builder = + DeleteAttributeTagResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteAttributeTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteCatalogConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteCatalogConverter.java new file mode 100644 index 00000000000..a8609f10e6b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteCatalogConverter.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteCatalogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteCatalogRequest interceptRequest(DeleteCatalogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteCatalogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteCatalogResponse>() { + @Override + public DeleteCatalogResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteCatalogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteCatalogResponse.Builder builder = + DeleteCatalogResponse.builder(); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteCatalogResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteConnectionConverter.java new file mode 100644 index 00000000000..265d6714670 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteConnectionConverter.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteConnectionRequest interceptRequest(DeleteConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteConnectionResponse>() { + @Override + public DeleteConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteConnectionResponse.Builder builder = + DeleteConnectionResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetConverter.java new file mode 100644 index 00000000000..fe3a142d883 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetConverter.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteDataAssetConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteDataAssetRequest interceptRequest(DeleteDataAssetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteDataAssetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteDataAssetResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteDataAssetResponse>() { + @Override + public DeleteDataAssetResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteDataAssetResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteDataAssetResponse.Builder builder = + DeleteDataAssetResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteDataAssetResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetTagConverter.java new file mode 100644 index 00000000000..8dd57d8a3e3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteDataAssetTagConverter.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteDataAssetTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteDataAssetTagRequest interceptRequest(DeleteDataAssetTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteDataAssetTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteDataAssetTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteDataAssetTagResponse>() { + @Override + public DeleteDataAssetTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteDataAssetTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteDataAssetTagResponse.Builder builder = + DeleteDataAssetTagResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteDataAssetTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityConverter.java new file mode 100644 index 00000000000..d8573de083e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityConverter.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteEntityConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteEntityRequest interceptRequest(DeleteEntityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteEntityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteEntityResponse>() { + @Override + public DeleteEntityResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteEntityResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteEntityResponse.Builder builder = + DeleteEntityResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteEntityResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityTagConverter.java new file mode 100644 index 00000000000..8dfe59f6d5b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteEntityTagConverter.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteEntityTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteEntityTagRequest interceptRequest(DeleteEntityTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteEntityTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteEntityTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteEntityTagResponse>() { + @Override + public DeleteEntityTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteEntityTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteEntityTagResponse.Builder builder = + DeleteEntityTagResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteEntityTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderConverter.java new file mode 100644 index 00000000000..97f3dd78da0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderConverter.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteFolderConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteFolderRequest interceptRequest(DeleteFolderRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteFolderRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteFolderResponse>() { + @Override + public DeleteFolderResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteFolderResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteFolderResponse.Builder builder = + DeleteFolderResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteFolderResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderTagConverter.java new file mode 100644 index 00000000000..8de7770bfe2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteFolderTagConverter.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteFolderTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteFolderTagRequest interceptRequest(DeleteFolderTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteFolderTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteFolderTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteFolderTagResponse>() { + @Override + public DeleteFolderTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteFolderTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteFolderTagResponse.Builder builder = + DeleteFolderTagResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteFolderTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteGlossaryConverter.java new file mode 100644 index 00000000000..97e00425072 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteGlossaryConverter.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteGlossaryRequest interceptRequest(DeleteGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteGlossaryResponse>() { + @Override + public DeleteGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteGlossaryResponse.Builder builder = + DeleteGlossaryResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobConverter.java new file mode 100644 index 00000000000..2b9f92a589c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobConverter.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteJobRequest interceptRequest(DeleteJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteJobResponse>() { + @Override + public DeleteJobResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteJobResponse.Builder builder = DeleteJobResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobDefinitionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobDefinitionConverter.java new file mode 100644 index 00000000000..8b67f585eef --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteJobDefinitionConverter.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteJobDefinitionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteJobDefinitionRequest interceptRequest(DeleteJobDefinitionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteJobDefinitionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobDefinitions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobDefinitionKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteJobDefinitionResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteJobDefinitionResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteJobDefinitionResponse>() { + @Override + public DeleteJobDefinitionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteJobDefinitionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteJobDefinitionResponse.Builder builder = + DeleteJobDefinitionResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteJobDefinitionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermConverter.java new file mode 100644 index 00000000000..4f9d3c425b9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermConverter.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteTermConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteTermRequest interceptRequest(DeleteTermRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteTermRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteTermResponse>() { + @Override + public DeleteTermResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteTermResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteTermResponse.Builder builder = DeleteTermResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteTermResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermRelationshipConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermRelationshipConverter.java new file mode 100644 index 00000000000..880300570ee --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/DeleteTermRelationshipConverter.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class DeleteTermRelationshipConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteTermRelationshipRequest interceptRequest( + DeleteTermRelationshipRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteTermRelationshipRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + Validate.notBlank( + request.getTermRelationshipKey(), "termRelationshipKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())) + .path("termRelationships") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermRelationshipKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteTermRelationshipResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteTermRelationshipResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteTermRelationshipResponse>() { + @Override + public DeleteTermRelationshipResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteTermRelationshipResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteTermRelationshipResponse.Builder builder = + DeleteTermRelationshipResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteTermRelationshipResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExpandTreeForGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExpandTreeForGlossaryConverter.java new file mode 100644 index 00000000000..8b12d84a9ca --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExpandTreeForGlossaryConverter.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ExpandTreeForGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ExpandTreeForGlossaryRequest interceptRequest( + ExpandTreeForGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ExpandTreeForGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("actions") + .path("expandTree"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ExpandTreeForGlossaryResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ExpandTreeForGlossaryResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ExpandTreeForGlossaryResponse>() { + @Override + public ExpandTreeForGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ExpandTreeForGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + GlossaryTreeElement>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ExpandTreeForGlossaryResponse.Builder builder = + ExpandTreeForGlossaryResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ExpandTreeForGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExportGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExportGlossaryConverter.java new file mode 100644 index 00000000000..7ad78ddd3a6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ExportGlossaryConverter.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ExportGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ExportGlossaryRequest interceptRequest(ExportGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ExportGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("actions") + .path("export"); + + if (request.getIsRelationshipExported() != null) { + target = + target.queryParam( + "isRelationshipExported", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsRelationshipExported())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ExportGlossaryResponse>() { + @Override + public ExportGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ExportGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(String.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ExportGlossaryResponse.Builder builder = + ExportGlossaryResponse.builder(); + + builder.value(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ExportGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeConverter.java new file mode 100644 index 00000000000..00a8defe369 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetAttributeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetAttributeRequest interceptRequest(GetAttributeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetAttributeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetAttributeResponse>() { + @Override + public GetAttributeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetAttributeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Attribute.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetAttributeResponse.Builder builder = + GetAttributeResponse.builder(); + + builder.attribute(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetAttributeResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeTagConverter.java new file mode 100644 index 00000000000..d7f34156861 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetAttributeTagConverter.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetAttributeTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetAttributeTagRequest interceptRequest(GetAttributeTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetAttributeTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetAttributeTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetAttributeTagResponse>() { + @Override + public GetAttributeTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetAttributeTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + AttributeTag>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + AttributeTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetAttributeTagResponse.Builder builder = + GetAttributeTagResponse.builder(); + + builder.attributeTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetAttributeTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetCatalogConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetCatalogConverter.java new file mode 100644 index 00000000000..1031758afe0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetCatalogConverter.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetCatalogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetCatalogRequest interceptRequest(GetCatalogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetCatalogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetCatalogResponse>() { + @Override + public GetCatalogResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetCatalogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Catalog.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetCatalogResponse.Builder builder = GetCatalogResponse.builder(); + + builder.catalog(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetCatalogResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetConnectionConverter.java new file mode 100644 index 00000000000..0c51164eb94 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetConnectionConverter.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetConnectionRequest interceptRequest(GetConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetConnectionResponse>() { + @Override + public GetConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Connection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Connection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetConnectionResponse.Builder builder = + GetConnectionResponse.builder(); + + builder.connection(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetConverter.java new file mode 100644 index 00000000000..bbfd65dc6a3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetConverter.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetDataAssetConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetDataAssetRequest interceptRequest(GetDataAssetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetDataAssetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetDataAssetResponse>() { + @Override + public GetDataAssetResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetDataAssetResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(DataAsset.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetDataAssetResponse.Builder builder = + GetDataAssetResponse.builder(); + + builder.dataAsset(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetDataAssetResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetTagConverter.java new file mode 100644 index 00000000000..5005dc41b03 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetDataAssetTagConverter.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetDataAssetTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetDataAssetTagRequest interceptRequest(GetDataAssetTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetDataAssetTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetDataAssetTagResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetDataAssetTagResponse>() { + @Override + public GetDataAssetTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetDataAssetTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + DataAssetTag>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + DataAssetTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetDataAssetTagResponse.Builder builder = + GetDataAssetTagResponse.builder(); + + builder.dataAssetTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetDataAssetTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityConverter.java new file mode 100644 index 00000000000..24f502fddbf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetEntityConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetEntityRequest interceptRequest(GetEntityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetEntityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetEntityResponse>() { + @Override + public GetEntityResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetEntityResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Entity.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetEntityResponse.Builder builder = GetEntityResponse.builder(); + + builder.entity(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetEntityResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityTagConverter.java new file mode 100644 index 00000000000..31f1aea82b8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetEntityTagConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetEntityTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetEntityTagRequest interceptRequest(GetEntityTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetEntityTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetEntityTagResponse>() { + @Override + public GetEntityTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetEntityTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(EntityTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetEntityTagResponse.Builder builder = + GetEntityTagResponse.builder(); + + builder.entityTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetEntityTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderConverter.java new file mode 100644 index 00000000000..da780104567 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetFolderConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetFolderRequest interceptRequest(GetFolderRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetFolderRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetFolderResponse>() { + @Override + public GetFolderResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetFolderResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Folder.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetFolderResponse.Builder builder = GetFolderResponse.builder(); + + builder.folder(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetFolderResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderTagConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderTagConverter.java new file mode 100644 index 00000000000..8cb61f74b11 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetFolderTagConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetFolderTagConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetFolderTagRequest interceptRequest(GetFolderTagRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetFolderTagRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + Validate.notBlank(request.getTagKey(), "tagKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())) + .path("tags") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTagKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetFolderTagResponse>() { + @Override + public GetFolderTagResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetFolderTagResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(FolderTag.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetFolderTagResponse.Builder builder = + GetFolderTagResponse.builder(); + + builder.folderTag(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetFolderTagResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetGlossaryConverter.java new file mode 100644 index 00000000000..a6b98e5c394 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetGlossaryConverter.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetGlossaryRequest interceptRequest(GetGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetGlossaryResponse>() { + @Override + public GetGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Glossary.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetGlossaryResponse.Builder builder = GetGlossaryResponse.builder(); + + builder.glossary(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobConverter.java new file mode 100644 index 00000000000..2394e500c4c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobConverter.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetJobRequest interceptRequest(GetJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobResponse>() { + @Override + public GetJobResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Job.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetJobResponse.Builder builder = GetJobResponse.builder(); + + builder.job(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobDefinitionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobDefinitionConverter.java new file mode 100644 index 00000000000..38695658a35 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobDefinitionConverter.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetJobDefinitionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetJobDefinitionRequest interceptRequest(GetJobDefinitionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetJobDefinitionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobDefinitions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobDefinitionKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobDefinitionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobDefinitionResponse>() { + @Override + public GetJobDefinitionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for GetJobDefinitionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobDefinition>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobDefinition.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetJobDefinitionResponse.Builder builder = + GetJobDefinitionResponse.builder(); + + builder.jobDefinition(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetJobDefinitionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobExecutionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobExecutionConverter.java new file mode 100644 index 00000000000..e81e28c9924 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobExecutionConverter.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetJobExecutionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetJobExecutionRequest interceptRequest(GetJobExecutionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetJobExecutionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobExecutionKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobExecutionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobExecutionResponse>() { + @Override + public GetJobExecutionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetJobExecutionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobExecution>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobExecution.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetJobExecutionResponse.Builder builder = + GetJobExecutionResponse.builder(); + + builder.jobExecution(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetJobExecutionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobLogConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobLogConverter.java new file mode 100644 index 00000000000..63a2f577c4e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobLogConverter.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetJobLogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetJobLogRequest interceptRequest(GetJobLogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetJobLogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank"); + Validate.notBlank(request.getJobLogKey(), "jobLogKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobExecutionKey())) + .path("logs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobLogKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobLogResponse>() { + @Override + public GetJobLogResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetJobLogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(JobLog.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetJobLogResponse.Builder builder = GetJobLogResponse.builder(); + + builder.jobLog(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetJobLogResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobMetricsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobMetricsConverter.java new file mode 100644 index 00000000000..e23a8ea965e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetJobMetricsConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetJobMetricsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetJobMetricsRequest interceptRequest(GetJobMetricsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetJobMetricsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank"); + Validate.notBlank(request.getJobMetricsKey(), "jobMetricsKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobExecutionKey())) + .path("metrics") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobMetricsKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetJobMetricsResponse>() { + @Override + public GetJobMetricsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetJobMetricsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(JobMetric.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetJobMetricsResponse.Builder builder = + GetJobMetricsResponse.builder(); + + builder.jobMetric(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetJobMetricsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermConverter.java new file mode 100644 index 00000000000..6568dcbfe25 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetTermConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetTermRequest interceptRequest(GetTermRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetTermRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetTermResponse>() { + @Override + public GetTermResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetTermResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Term.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetTermResponse.Builder builder = GetTermResponse.builder(); + + builder.term(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetTermResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermRelationshipConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermRelationshipConverter.java new file mode 100644 index 00000000000..44f36b0fe7d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTermRelationshipConverter.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetTermRelationshipConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetTermRelationshipRequest interceptRequest(GetTermRelationshipRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetTermRelationshipRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + Validate.notBlank( + request.getTermRelationshipKey(), "termRelationshipKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())) + .path("termRelationships") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermRelationshipKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetTermRelationshipResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetTermRelationshipResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetTermRelationshipResponse>() { + @Override + public GetTermRelationshipResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for GetTermRelationshipResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermRelationship>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermRelationship.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetTermRelationshipResponse.Builder builder = + GetTermRelationshipResponse.builder(); + + builder.termRelationship(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetTermRelationshipResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTypeConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTypeConverter.java new file mode 100644 index 00000000000..b971a1c2007 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetTypeConverter.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetTypeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetTypeRequest interceptRequest(GetTypeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetTypeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getTypeKey(), "typeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("types") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTypeKey())); + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetTypeResponse>() { + @Override + public GetTypeResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetTypeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Type.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetTypeResponse.Builder builder = GetTypeResponse.builder(); + + builder.type(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetTypeResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetWorkRequestConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetWorkRequestConverter.java new file mode 100644 index 00000000000..65c34f1c8a9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/GetWorkRequestConverter.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class GetWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetWorkRequestRequest interceptRequest(GetWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetWorkRequestResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + WorkRequest>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + WorkRequest.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetWorkRequestResponse.Builder builder = + GetWorkRequestResponse.builder(); + + builder.workRequest(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + GetWorkRequestResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportConnectionConverter.java new file mode 100644 index 00000000000..16984a780b0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportConnectionConverter.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ImportConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ImportConnectionRequest interceptRequest(ImportConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ImportConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull( + request.getImportConnectionDetails(), "importConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("actions") + .path("importConnection"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ImportConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ImportConnectionResponse>() { + @Override + public ImportConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ImportConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Connection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Connection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ImportConnectionResponse.Builder builder = + ImportConnectionResponse.builder(); + + builder.connection(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ImportConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportGlossaryConverter.java new file mode 100644 index 00000000000..804d3be260d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ImportGlossaryConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ImportGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ImportGlossaryRequest interceptRequest(ImportGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ImportGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notNull(request.getImportGlossaryDetails(), "importGlossaryDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("actions") + .path("import"); + + if (request.getIsRelationshipImported() != null) { + target = + target.queryParam( + "isRelationshipImported", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsRelationshipImported())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ImportGlossaryResponse>() { + @Override + public ImportGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ImportGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ImportGlossaryResponse.Builder builder = + ImportGlossaryResponse.builder(); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ImportGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributeTagsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributeTagsConverter.java new file mode 100644 index 00000000000..d0200fbceb8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributeTagsConverter.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListAttributeTagsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListAttributeTagsRequest interceptRequest(ListAttributeTagsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListAttributeTagsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())) + .path("tags"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTermKey() != null) { + target = + target.queryParam( + "termKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermKey())); + } + + if (request.getTermPath() != null) { + target = + target.queryParam( + "termPath", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermPath())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListAttributeTagsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListAttributeTagsResponse>() { + @Override + public ListAttributeTagsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListAttributeTagsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + AttributeTagCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + AttributeTagCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListAttributeTagsResponse.Builder builder = + ListAttributeTagsResponse.builder(); + + builder.attributeTagCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListAttributeTagsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributesConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributesConverter.java new file mode 100644 index 00000000000..add9664085c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListAttributesConverter.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListAttributesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListAttributesRequest interceptRequest(ListAttributesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListAttributesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getExternalKey() != null) { + target = + target.queryParam( + "externalKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalKey())); + } + + if (request.getTimeExternal() != null) { + target = + target.queryParam( + "timeExternal", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeExternal())); + } + + if (request.getExternalTypeName() != null) { + target = + target.queryParam( + "externalTypeName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalTypeName())); + } + + if (request.getIsIncrementalData() != null) { + target = + target.queryParam( + "isIncrementalData", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsIncrementalData())); + } + + if (request.getIsNullable() != null) { + target = + target.queryParam( + "isNullable", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsNullable())); + } + + if (request.getLength() != null) { + target = + target.queryParam( + "length", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLength())); + } + + if (request.getPosition() != null) { + target = + target.queryParam( + "position", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPosition())); + } + + if (request.getPrecision() != null) { + target = + target.queryParam( + "precision", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPrecision())); + } + + if (request.getScale() != null) { + target = + target.queryParam( + "scale", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getScale())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListAttributesResponse>() { + @Override + public ListAttributesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListAttributesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + AttributeCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + AttributeCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListAttributesResponse.Builder builder = + ListAttributesResponse.builder(); + + builder.attributeCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListAttributesResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListCatalogsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListCatalogsConverter.java new file mode 100644 index 00000000000..de300245fb4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListCatalogsConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListCatalogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListCatalogsRequest interceptRequest(ListCatalogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListCatalogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190325").path("catalogs"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListCatalogsResponse>() { + @Override + public ListCatalogsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListCatalogsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + CatalogSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListCatalogsResponse.Builder builder = + ListCatalogsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListCatalogsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListConnectionsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListConnectionsConverter.java new file mode 100644 index 00000000000..277e3af89f4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListConnectionsConverter.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListConnectionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListConnectionsRequest interceptRequest(ListConnectionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListConnectionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getExternalKey() != null) { + target = + target.queryParam( + "externalKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalKey())); + } + + if (request.getTimeStatusUpdated() != null) { + target = + target.queryParam( + "timeStatusUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeStatusUpdated())); + } + + if (request.getIsDefault() != null) { + target = + target.queryParam( + "isDefault", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsDefault())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListConnectionsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListConnectionsResponse>() { + @Override + public ListConnectionsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListConnectionsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ConnectionCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ConnectionCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListConnectionsResponse.Builder builder = + ListConnectionsResponse.builder(); + + builder.connectionCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListConnectionsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetTagsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetTagsConverter.java new file mode 100644 index 00000000000..019bded32d0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetTagsConverter.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListDataAssetTagsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListDataAssetTagsRequest interceptRequest(ListDataAssetTagsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListDataAssetTagsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("tags"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTermKey() != null) { + target = + target.queryParam( + "termKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermKey())); + } + + if (request.getTermPath() != null) { + target = + target.queryParam( + "termPath", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermPath())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListDataAssetTagsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListDataAssetTagsResponse>() { + @Override + public ListDataAssetTagsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListDataAssetTagsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + DataAssetTagCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + DataAssetTagCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListDataAssetTagsResponse.Builder builder = + ListDataAssetTagsResponse.builder(); + + builder.dataAssetTagCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListDataAssetTagsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetsConverter.java new file mode 100644 index 00000000000..3d41c894002 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListDataAssetsConverter.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListDataAssetsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListDataAssetsRequest interceptRequest(ListDataAssetsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListDataAssetsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getExternalKey() != null) { + target = + target.queryParam( + "externalKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalKey())); + } + + if (request.getTypeKey() != null) { + target = + target.queryParam( + "typeKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTypeKey())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListDataAssetsResponse>() { + @Override + public ListDataAssetsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListDataAssetsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + DataAssetCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + DataAssetCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListDataAssetsResponse.Builder builder = + ListDataAssetsResponse.builder(); + + builder.dataAssetCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListDataAssetsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntitiesConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntitiesConverter.java new file mode 100644 index 00000000000..a0d1a0fa1bb --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntitiesConverter.java @@ -0,0 +1,275 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListEntitiesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListEntitiesRequest interceptRequest(ListEntitiesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListEntitiesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getExternalKey() != null) { + target = + target.queryParam( + "externalKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalKey())); + } + + if (request.getTimeExternal() != null) { + target = + target.queryParam( + "timeExternal", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeExternal())); + } + + if (request.getTimeStatusUpdated() != null) { + target = + target.queryParam( + "timeStatusUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeStatusUpdated())); + } + + if (request.getIsLogical() != null) { + target = + target.queryParam( + "isLogical", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsLogical())); + } + + if (request.getIsPartition() != null) { + target = + target.queryParam( + "isPartition", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsPartition())); + } + + if (request.getFolderKey() != null) { + target = + target.queryParam( + "folderKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFolderKey())); + } + + if (request.getPath() != null) { + target = + target.queryParam( + "path", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPath())); + } + + if (request.getHarvestStatus() != null) { + target = + target.queryParam( + "harvestStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getHarvestStatus().getValue())); + } + + if (request.getLastJobKey() != null) { + target = + target.queryParam( + "lastJobKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLastJobKey())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListEntitiesResponse>() { + @Override + public ListEntitiesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListEntitiesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + EntityCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + EntityCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListEntitiesResponse.Builder builder = + ListEntitiesResponse.builder(); + + builder.entityCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListEntitiesResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntityTagsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntityTagsConverter.java new file mode 100644 index 00000000000..42409c73b80 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListEntityTagsConverter.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListEntityTagsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListEntityTagsRequest interceptRequest(ListEntityTagsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListEntityTagsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("tags"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTermKey() != null) { + target = + target.queryParam( + "termKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermKey())); + } + + if (request.getTermPath() != null) { + target = + target.queryParam( + "termPath", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermPath())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListEntityTagsResponse>() { + @Override + public ListEntityTagsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListEntityTagsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + EntityTagCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + EntityTagCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListEntityTagsResponse.Builder builder = + ListEntityTagsResponse.builder(); + + builder.entityTagCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListEntityTagsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFolderTagsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFolderTagsConverter.java new file mode 100644 index 00000000000..4edeb812923 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFolderTagsConverter.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListFolderTagsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListFolderTagsRequest interceptRequest(ListFolderTagsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListFolderTagsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())) + .path("tags"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTermKey() != null) { + target = + target.queryParam( + "termKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermKey())); + } + + if (request.getTermPath() != null) { + target = + target.queryParam( + "termPath", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermPath())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListFolderTagsResponse>() { + @Override + public ListFolderTagsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListFolderTagsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + FolderTagCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + FolderTagCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListFolderTagsResponse.Builder builder = + ListFolderTagsResponse.builder(); + + builder.folderTagCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListFolderTagsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFoldersConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFoldersConverter.java new file mode 100644 index 00000000000..5e9b2b017a3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListFoldersConverter.java @@ -0,0 +1,242 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListFoldersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListFoldersRequest interceptRequest(ListFoldersRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListFoldersRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getParentFolderKey() != null) { + target = + target.queryParam( + "parentFolderKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getParentFolderKey())); + } + + if (request.getPath() != null) { + target = + target.queryParam( + "path", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPath())); + } + + if (request.getExternalKey() != null) { + target = + target.queryParam( + "externalKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalKey())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getHarvestStatus() != null) { + target = + target.queryParam( + "harvestStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getHarvestStatus().getValue())); + } + + if (request.getLastJobKey() != null) { + target = + target.queryParam( + "lastJobKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLastJobKey())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListFoldersResponse>() { + @Override + public ListFoldersResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListFoldersResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + FolderCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + FolderCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListFoldersResponse.Builder builder = ListFoldersResponse.builder(); + + builder.folderCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListFoldersResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListGlossariesConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListGlossariesConverter.java new file mode 100644 index 00000000000..14dca52ff39 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListGlossariesConverter.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListGlossariesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListGlossariesRequest interceptRequest(ListGlossariesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListGlossariesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListGlossariesResponse>() { + @Override + public ListGlossariesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListGlossariesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + GlossaryCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + GlossaryCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListGlossariesResponse.Builder builder = + ListGlossariesResponse.builder(); + + builder.glossaryCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListGlossariesResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobDefinitionsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobDefinitionsConverter.java new file mode 100644 index 00000000000..66b0570a982 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobDefinitionsConverter.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListJobDefinitionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListJobDefinitionsRequest interceptRequest(ListJobDefinitionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListJobDefinitionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobDefinitions"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getJobType() != null) { + target = + target.queryParam( + "jobType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getJobType().getValue())); + } + + if (request.getIsIncremental() != null) { + target = + target.queryParam( + "isIncremental", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsIncremental())); + } + + if (request.getDataAssetKey() != null) { + target = + target.queryParam( + "dataAssetKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDataAssetKey())); + } + + if (request.getConnectionKey() != null) { + target = + target.queryParam( + "connectionKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getConnectionKey())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getSampleDataSizeInMBs() != null) { + target = + target.queryParam( + "sampleDataSizeInMBs", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSampleDataSizeInMBs())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobDefinitionsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobDefinitionsResponse>() { + @Override + public ListJobDefinitionsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListJobDefinitionsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobDefinitionCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobDefinitionCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListJobDefinitionsResponse.Builder builder = + ListJobDefinitionsResponse.builder(); + + builder.jobDefinitionCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListJobDefinitionsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobExecutionsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobExecutionsConverter.java new file mode 100644 index 00000000000..397217950a8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobExecutionsConverter.java @@ -0,0 +1,285 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListJobExecutionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListJobExecutionsRequest interceptRequest(ListJobExecutionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListJobExecutionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions"); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getJobType() != null) { + target = + target.queryParam( + "jobType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getJobType().getValue())); + } + + if (request.getSubType() != null) { + target = + target.queryParam( + "subType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubType())); + } + + if (request.getParentKey() != null) { + target = + target.queryParam( + "parentKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getParentKey())); + } + + if (request.getTimeStart() != null) { + target = + target.queryParam( + "timeStart", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeStart())); + } + + if (request.getTimeEnd() != null) { + target = + target.queryParam( + "timeEnd", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeEnd())); + } + + if (request.getErrorCode() != null) { + target = + target.queryParam( + "errorCode", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getErrorCode())); + } + + if (request.getErrorMessage() != null) { + target = + target.queryParam( + "errorMessage", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getErrorMessage())); + } + + if (request.getProcessKey() != null) { + target = + target.queryParam( + "processKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getProcessKey())); + } + + if (request.getExternalUrl() != null) { + target = + target.queryParam( + "externalUrl", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalUrl())); + } + + if (request.getEventKey() != null) { + target = + target.queryParam( + "eventKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEventKey())); + } + + if (request.getDataEntityKey() != null) { + target = + target.queryParam( + "dataEntityKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDataEntityKey())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobExecutionsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobExecutionsResponse>() { + @Override + public ListJobExecutionsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListJobExecutionsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobExecutionCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobExecutionCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListJobExecutionsResponse.Builder builder = + ListJobExecutionsResponse.builder(); + + builder.jobExecutionCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListJobExecutionsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobLogsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobLogsConverter.java new file mode 100644 index 00000000000..e4f19ffe904 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobLogsConverter.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListJobLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListJobLogsRequest interceptRequest(ListJobLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListJobLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobExecutionKey())) + .path("logs"); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSeverity() != null) { + target = + target.queryParam( + "severity", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSeverity())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobLogsResponse>() { + @Override + public ListJobLogsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListJobLogsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobLogCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobLogCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListJobLogsResponse.Builder builder = ListJobLogsResponse.builder(); + + builder.jobLogCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListJobLogsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobMetricsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobMetricsConverter.java new file mode 100644 index 00000000000..b067098ed1c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobMetricsConverter.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListJobMetricsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListJobMetricsRequest interceptRequest(ListJobMetricsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListJobMetricsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notBlank(request.getJobExecutionKey(), "jobExecutionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())) + .path("executions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobExecutionKey())) + .path("metrics"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getCategory() != null) { + target = + target.queryParam( + "category", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCategory())); + } + + if (request.getSubCategory() != null) { + target = + target.queryParam( + "subCategory", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSubCategory())); + } + + if (request.getUnit() != null) { + target = + target.queryParam( + "unit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUnit())); + } + + if (request.getValue() != null) { + target = + target.queryParam( + "value", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getValue())); + } + + if (request.getBatchKey() != null) { + target = + target.queryParam( + "batchKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBatchKey())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getTimeInserted() != null) { + target = + target.queryParam( + "timeInserted", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInserted())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobMetricsResponse>() { + @Override + public ListJobMetricsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListJobMetricsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobMetricCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobMetricCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListJobMetricsResponse.Builder builder = + ListJobMetricsResponse.builder(); + + builder.jobMetricCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListJobMetricsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobsConverter.java new file mode 100644 index 00000000000..1c4a25e55bd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListJobsConverter.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListJobsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListJobsRequest interceptRequest(ListJobsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListJobsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreated() != null) { + target = + target.queryParam( + "timeCreated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreated())); + } + + if (request.getTimeUpdated() != null) { + target = + target.queryParam( + "timeUpdated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdated())); + } + + if (request.getCreatedById() != null) { + target = + target.queryParam( + "createdById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCreatedById())); + } + + if (request.getUpdatedById() != null) { + target = + target.queryParam( + "updatedById", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getUpdatedById())); + } + + if (request.getJobType() != null) { + target = + target.queryParam( + "jobType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getJobType().getValue())); + } + + if (request.getJobDefinitionKey() != null) { + target = + target.queryParam( + "jobDefinitionKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getJobDefinitionKey())); + } + + if (request.getScheduleCronExpression() != null) { + target = + target.queryParam( + "scheduleCronExpression", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getScheduleCronExpression())); + } + + if (request.getTimeScheduleBegin() != null) { + target = + target.queryParam( + "timeScheduleBegin", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeScheduleBegin())); + } + + if (request.getTimeScheduleEnd() != null) { + target = + target.queryParam( + "timeScheduleEnd", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeScheduleEnd())); + } + + if (request.getScheduleType() != null) { + target = + target.queryParam( + "scheduleType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getScheduleType().getValue())); + } + + if (request.getConnectionKey() != null) { + target = + target.queryParam( + "connectionKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getConnectionKey())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getExecutionCount() != null) { + target = + target.queryParam( + "executionCount", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExecutionCount())); + } + + if (request.getTimeOfLatestExecution() != null) { + target = + target.queryParam( + "timeOfLatestExecution", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeOfLatestExecution())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListJobsResponse>() { + @Override + public ListJobsResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListJobsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobCollection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListJobsResponse.Builder builder = ListJobsResponse.builder(); + + builder.jobCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListJobsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTagsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTagsConverter.java new file mode 100644 index 00000000000..75911fa32fd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTagsConverter.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListTagsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListTagsRequest interceptRequest(ListTagsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListTagsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("tags"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListTagsResponse>() { + @Override + public ListTagsResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListTagsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermCollection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListTagsResponse.Builder builder = ListTagsResponse.builder(); + + builder.termCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListTagsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermRelationshipsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermRelationshipsConverter.java new file mode 100644 index 00000000000..835a6fd3cc8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermRelationshipsConverter.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListTermRelationshipsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListTermRelationshipsRequest interceptRequest( + ListTermRelationshipsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListTermRelationshipsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())) + .path("termRelationships"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListTermRelationshipsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListTermRelationshipsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListTermRelationshipsResponse>() { + @Override + public ListTermRelationshipsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListTermRelationshipsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermRelationshipCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermRelationshipCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListTermRelationshipsResponse.Builder builder = + ListTermRelationshipsResponse.builder(); + + builder.termRelationshipCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListTermRelationshipsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermsConverter.java new file mode 100644 index 00000000000..0c349205ff4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTermsConverter.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListTermsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListTermsRequest interceptRequest(ListTermsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListTermsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getParentTermKey() != null) { + target = + target.queryParam( + "parentTermKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getParentTermKey())); + } + + if (request.getIsAllowedToHaveChildTerms() != null) { + target = + target.queryParam( + "isAllowedToHaveChildTerms", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsAllowedToHaveChildTerms())); + } + + if (request.getWorkflowStatus() != null) { + target = + target.queryParam( + "workflowStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkflowStatus().getValue())); + } + + if (request.getPath() != null) { + target = + target.queryParam( + "path", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPath())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListTermsResponse>() { + @Override + public ListTermsResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListTermsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermCollection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListTermsResponse.Builder builder = ListTermsResponse.builder(); + + builder.termCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListTermsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTypesConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTypesConverter.java new file mode 100644 index 00000000000..867cf68730f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListTypesConverter.java @@ -0,0 +1,204 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListTypesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListTypesRequest interceptRequest(ListTypesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListTypesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("types"); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getIsInternal() != null) { + target = + target.queryParam( + "isInternal", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsInternal())); + } + + if (request.getIsTag() != null) { + target = + target.queryParam( + "isTag", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsTag())); + } + + if (request.getIsApproved() != null) { + target = + target.queryParam( + "isApproved", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsApproved())); + } + + if (request.getExternalTypeName() != null) { + target = + target.queryParam( + "externalTypeName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalTypeName())); + } + + if (request.getTypeCategory() != null) { + target = + target.queryParam( + "typeCategory", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTypeCategory())); + } + + if (request.getFields() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "fields", + request.getFields(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListTypesResponse>() { + @Override + public ListTypesResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListTypesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TypeCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TypeCollection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListTypesResponse.Builder builder = ListTypesResponse.builder(); + + builder.typeCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListTypesResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestErrorsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestErrorsConverter.java new file mode 100644 index 00000000000..3963539ffda --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestErrorsConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListWorkRequestErrorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListWorkRequestErrorsRequest interceptRequest( + ListWorkRequestErrorsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListWorkRequestErrorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("errors"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestErrorsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestErrorsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListWorkRequestErrorsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + WorkRequestError>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListWorkRequestErrorsResponse.Builder builder = + ListWorkRequestErrorsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ListWorkRequestErrorsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestLogsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestLogsConverter.java new file mode 100644 index 00000000000..d1d28c8cf4a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestLogsConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListWorkRequestLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListWorkRequestLogsRequest interceptRequest(ListWorkRequestLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListWorkRequestLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("logs"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestLogsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestLogsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListWorkRequestLogsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + WorkRequestLog>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListWorkRequestLogsResponse.Builder builder = + ListWorkRequestLogsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ListWorkRequestLogsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestsConverter.java new file mode 100644 index 00000000000..edb5474294c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ListWorkRequestsConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ListWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListWorkRequestsRequest interceptRequest(ListWorkRequestsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190325").path("workRequests"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListWorkRequestsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListWorkRequestsResponse.Builder builder = + ListWorkRequestsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListWorkRequestsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ObjectStatsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ObjectStatsConverter.java new file mode 100644 index 00000000000..8f22c06a39b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ObjectStatsConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ObjectStatsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ObjectStatsRequest interceptRequest(ObjectStatsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ObjectStatsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("actions") + .path("objectStats"); + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ObjectStatsResponse>() { + @Override + public ObjectStatsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ObjectStatsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(String.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ObjectStatsResponse.Builder builder = ObjectStatsResponse.builder(); + + builder.value(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ObjectStatsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ParseConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ParseConnectionConverter.java new file mode 100644 index 00000000000..a80df75a5d8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ParseConnectionConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ParseConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ParseConnectionRequest interceptRequest(ParseConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ParseConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull(request.getParseConnectionDetails(), "parseConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("actions") + .path("parseConnection"); + + if (request.getConnectionKey() != null) { + target = + target.queryParam( + "connectionKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getConnectionKey())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ParseConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ParseConnectionResponse>() { + @Override + public ParseConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ParseConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ConnectionAliasSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ParseConnectionResponse.Builder builder = + ParseConnectionResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ParseConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/SearchCriteriaConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/SearchCriteriaConverter.java new file mode 100644 index 00000000000..2838bf2c361 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/SearchCriteriaConverter.java @@ -0,0 +1,173 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class SearchCriteriaConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static SearchCriteriaRequest interceptRequest(SearchCriteriaRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, SearchCriteriaRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("search"); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeout() != null) { + target = + target.queryParam( + "timeout", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeout())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, SearchCriteriaResponse>() { + @Override + public SearchCriteriaResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for SearchCriteriaResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + SearchResultCollection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + SearchResultCollection.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + SearchCriteriaResponse.Builder builder = + SearchCriteriaResponse.builder(); + + builder.searchResultCollection(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + SearchCriteriaResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/TestConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/TestConnectionConverter.java new file mode 100644 index 00000000000..98980019adb --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/TestConnectionConverter.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class TestConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static TestConnectionRequest interceptRequest(TestConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, TestConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionKey())) + .path("actions") + .path("test"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, TestConnectionResponse>() { + @Override + public TestConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for TestConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ValidateConnectionResult>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ValidateConnectionResult.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + TestConnectionResponse.Builder builder = + TestConnectionResponse.builder(); + + builder.validateConnectionResult(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + TestConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateAttributeConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateAttributeConverter.java new file mode 100644 index 00000000000..2ce71293d8f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateAttributeConverter.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateAttributeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateAttributeRequest interceptRequest(UpdateAttributeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateAttributeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notBlank(request.getAttributeKey(), "attributeKey must not be blank"); + Validate.notNull(request.getUpdateAttributeDetails(), "updateAttributeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())) + .path("attributes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getAttributeKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateAttributeResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateAttributeResponse>() { + @Override + public UpdateAttributeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateAttributeResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Attribute.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateAttributeResponse.Builder builder = + UpdateAttributeResponse.builder(); + + builder.attribute(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateAttributeResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateCatalogConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateCatalogConverter.java new file mode 100644 index 00000000000..dba3a11b94a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateCatalogConverter.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateCatalogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateCatalogRequest interceptRequest(UpdateCatalogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateCatalogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notNull(request.getUpdateCatalogDetails(), "updateCatalogDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateCatalogResponse>() { + @Override + public UpdateCatalogResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateCatalogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Catalog.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateCatalogResponse.Builder builder = + UpdateCatalogResponse.builder(); + + builder.catalog(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateCatalogResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateConnectionConverter.java new file mode 100644 index 00000000000..bdbdf7f790a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateConnectionConverter.java @@ -0,0 +1,123 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateConnectionRequest interceptRequest(UpdateConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank"); + Validate.notNull( + request.getUpdateConnectionDetails(), "updateConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateConnectionResponse>() { + @Override + public UpdateConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UpdateConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Connection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Connection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateConnectionResponse.Builder builder = + UpdateConnectionResponse.builder(); + + builder.connection(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateDataAssetConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateDataAssetConverter.java new file mode 100644 index 00000000000..0ac4c514671 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateDataAssetConverter.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateDataAssetConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateDataAssetRequest interceptRequest(UpdateDataAssetRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateDataAssetRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull(request.getUpdateDataAssetDetails(), "updateDataAssetDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateDataAssetResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateDataAssetResponse>() { + @Override + public UpdateDataAssetResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateDataAssetResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(DataAsset.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateDataAssetResponse.Builder builder = + UpdateDataAssetResponse.builder(); + + builder.dataAsset(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateDataAssetResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateEntityConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateEntityConverter.java new file mode 100644 index 00000000000..c3dc6afab8e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateEntityConverter.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateEntityConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateEntityRequest interceptRequest(UpdateEntityRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateEntityRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getEntityKey(), "entityKey must not be blank"); + Validate.notNull(request.getUpdateEntityDetails(), "updateEntityDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("entities") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getEntityKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateEntityResponse>() { + @Override + public UpdateEntityResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateEntityResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Entity.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateEntityResponse.Builder builder = + UpdateEntityResponse.builder(); + + builder.entity(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateEntityResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateFolderConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateFolderConverter.java new file mode 100644 index 00000000000..de40ad36ba5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateFolderConverter.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateFolderConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateFolderRequest interceptRequest(UpdateFolderRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateFolderRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getFolderKey(), "folderKey must not be blank"); + Validate.notNull(request.getUpdateFolderDetails(), "updateFolderDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("folders") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFolderKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateFolderResponse>() { + @Override + public UpdateFolderResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateFolderResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Folder.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateFolderResponse.Builder builder = + UpdateFolderResponse.builder(); + + builder.folder(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateFolderResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateGlossaryConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateGlossaryConverter.java new file mode 100644 index 00000000000..b784f3e67c4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateGlossaryConverter.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateGlossaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateGlossaryRequest interceptRequest(UpdateGlossaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateGlossaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notNull(request.getUpdateGlossaryDetails(), "updateGlossaryDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateGlossaryResponse>() { + @Override + public UpdateGlossaryResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateGlossaryResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(Glossary.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateGlossaryResponse.Builder builder = + UpdateGlossaryResponse.builder(); + + builder.glossary(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateGlossaryResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobConverter.java new file mode 100644 index 00000000000..9de43d5fb3c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobConverter.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateJobRequest interceptRequest(UpdateJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobKey(), "jobKey must not be blank"); + Validate.notNull(request.getUpdateJobDetails(), "updateJobDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateJobResponse>() { + @Override + public UpdateJobResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Job.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateJobResponse.Builder builder = UpdateJobResponse.builder(); + + builder.job(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobDefinitionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobDefinitionConverter.java new file mode 100644 index 00000000000..bbdad3e9c7e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateJobDefinitionConverter.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateJobDefinitionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateJobDefinitionRequest interceptRequest(UpdateJobDefinitionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateJobDefinitionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getJobDefinitionKey(), "jobDefinitionKey must not be blank"); + Validate.notNull( + request.getUpdateJobDefinitionDetails(), "updateJobDefinitionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("jobDefinitions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getJobDefinitionKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateJobDefinitionResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateJobDefinitionResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateJobDefinitionResponse>() { + @Override + public UpdateJobDefinitionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UpdateJobDefinitionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + JobDefinition>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + JobDefinition.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateJobDefinitionResponse.Builder builder = + UpdateJobDefinitionResponse.builder(); + + builder.jobDefinition(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateJobDefinitionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermConverter.java new file mode 100644 index 00000000000..73191bd70f2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermConverter.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateTermConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateTermRequest interceptRequest(UpdateTermRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateTermRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + Validate.notNull(request.getUpdateTermDetails(), "updateTermDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateTermResponse>() { + @Override + public UpdateTermResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateTermResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Term.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateTermResponse.Builder builder = UpdateTermResponse.builder(); + + builder.term(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateTermResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermRelationshipConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermRelationshipConverter.java new file mode 100644 index 00000000000..d1d376b7650 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UpdateTermRelationshipConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UpdateTermRelationshipConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateTermRelationshipRequest interceptRequest( + UpdateTermRelationshipRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateTermRelationshipRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getGlossaryKey(), "glossaryKey must not be blank"); + Validate.notBlank(request.getTermKey(), "termKey must not be blank"); + Validate.notBlank( + request.getTermRelationshipKey(), "termRelationshipKey must not be blank"); + Validate.notNull( + request.getUpdateTermRelationshipDetails(), + "updateTermRelationshipDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("glossaries") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGlossaryKey())) + .path("terms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermKey())) + .path("termRelationships") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermRelationshipKey())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateTermRelationshipResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateTermRelationshipResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateTermRelationshipResponse>() { + @Override + public UpdateTermRelationshipResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UpdateTermRelationshipResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + TermRelationship>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + TermRelationship.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateTermRelationshipResponse.Builder builder = + UpdateTermRelationshipResponse.builder(); + + builder.termRelationship(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateTermRelationshipResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UploadCredentialsConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UploadCredentialsConverter.java new file mode 100644 index 00000000000..b543f58968e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UploadCredentialsConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UploadCredentialsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UploadCredentialsRequest interceptRequest(UploadCredentialsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UploadCredentialsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notBlank(request.getConnectionKey(), "connectionKey must not be blank"); + Validate.notNull( + request.getUploadCredentialsDetails(), "uploadCredentialsDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("connections") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getConnectionKey())) + .path("actions") + .path("uploadCredentials"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UploadCredentialsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UploadCredentialsResponse>() { + @Override + public UploadCredentialsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UploadCredentialsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Connection>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Connection.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UploadCredentialsResponse.Builder builder = + UploadCredentialsResponse.builder(); + + builder.connection(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UploadCredentialsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UsersConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UsersConverter.java new file mode 100644 index 00000000000..e48503f0b13 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/UsersConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class UsersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UsersRequest interceptRequest(UsersRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UsersRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("actions") + .path("users"); + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UsersResponse>() { + @Override + public UsersResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UsersResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = + RESPONSE_CONVERSION_FACTORY.create(String.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UsersResponse.Builder builder = UsersResponse.builder(); + + builder.value(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + UsersResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ValidateConnectionConverter.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ValidateConnectionConverter.java new file mode 100644 index 00000000000..7a78cdfc755 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/internal/http/ValidateConnectionConverter.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datacatalog.model.*; +import com.oracle.bmc.datacatalog.requests.*; +import com.oracle.bmc.datacatalog.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.extern.slf4j.Slf4j +public class ValidateConnectionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ValidateConnectionRequest interceptRequest(ValidateConnectionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ValidateConnectionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Validate.notNull( + request.getValidateConnectionDetails(), "validateConnectionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190325") + .path("catalogs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCatalogId())) + .path("dataAssets") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDataAssetKey())) + .path("actions") + .path("validateConnection"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ValidateConnectionResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ValidateConnectionResponse>() { + @Override + public ValidateConnectionResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ValidateConnectionResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ValidateConnectionResult>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ValidateConnectionResult.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ValidateConnectionResponse.Builder builder = + ValidateConnectionResponse.builder(); + + builder.validateConnectionResult(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ValidateConnectionResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java new file mode 100644 index 00000000000..0464fe7ef61 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Attribute.java @@ -0,0 +1,409 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details of an entity attribute. An attribute of a data entity describing an item of data, + * with a name and data type. Synonymous with 'column' in a database. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Attribute.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Attribute { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("entityKey") + private String entityKey; + + public Builder entityKey(String entityKey) { + this.entityKey = entityKey; + this.__explicitlySet__.add("entityKey"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + private String externalDataType; + + public Builder externalDataType(String externalDataType) { + this.externalDataType = externalDataType; + this.__explicitlySet__.add("externalDataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + private Boolean isIncrementalData; + + public Builder isIncrementalData(Boolean isIncrementalData) { + this.isIncrementalData = isIncrementalData; + this.__explicitlySet__.add("isIncrementalData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private Boolean isNullable; + + public Builder isNullable(Boolean isNullable) { + this.isNullable = isNullable; + this.__explicitlySet__.add("isNullable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("length") + private Long length; + + public Builder length(Long length) { + this.length = length; + this.__explicitlySet__.add("length"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Integer position; + + public Builder position(Integer position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("precision") + private Integer precision; + + public Builder precision(Integer precision) { + this.precision = precision; + this.__explicitlySet__.add("precision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Integer scale; + + public Builder scale(Integer scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Attribute build() { + Attribute __instance__ = + new Attribute( + key, + displayName, + description, + entityKey, + lifecycleState, + timeCreated, + timeUpdated, + createdById, + updatedById, + externalDataType, + externalKey, + isIncrementalData, + isNullable, + length, + position, + precision, + scale, + timeExternal, + uri, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Attribute o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .entityKey(o.getEntityKey()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .externalDataType(o.getExternalDataType()) + .externalKey(o.getExternalKey()) + .isIncrementalData(o.getIsIncrementalData()) + .isNullable(o.getIsNullable()) + .length(o.getLength()) + .position(o.getPosition()) + .precision(o.getPrecision()) + .scale(o.getScale()) + .timeExternal(o.getTimeExternal()) + .uri(o.getUri()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique attribute key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the parent entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + String entityKey; + + /** + * State of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the attribute was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the attribute. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created this attribute in the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who modified this attribute in the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * Data type of the attribute as defined in the external system. Type mapping across systems can be achieved + * through term associations across domains in the ontology. The attribute can also be tagged to the datatype in + * the domain ontology to resolve any ambiguity arising from type name similarity that can occur with user + * defined types. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + String externalDataType; + + /** + * Unique external key of this attribute in the external source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Property that identifies if this attribute can be used as a watermark to extract incremental data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + Boolean isIncrementalData; + + /** + * Property that identifies if this attribute can be assigned null values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + Boolean isNullable; + + /** + * Max allowed length of the attribute value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("length") + Long length; + + /** + * Position of the attribute in the record definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + Integer position; + + /** + * Precision of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precision") + Integer precision; + + /** + * Scale of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + Integer scale; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * URI to the attribute instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * A map of maps that contains the properties which are specific to the attribute type. Each attribute type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * attributes have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeCollection.java new file mode 100644 index 00000000000..4e2621a7f97 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of an attributes listing. Attributes describe an item of data with name and datatype. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttributeCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AttributeCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttributeCollection build() { + AttributeCollection __instance__ = new AttributeCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttributeCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of attributes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java new file mode 100644 index 00000000000..e0de5ce6d4e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeSummary.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of an entity attribute. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AttributeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AttributeSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("entityKey") + private String entityKey; + + public Builder entityKey(String entityKey) { + this.entityKey = entityKey; + this.__explicitlySet__.add("entityKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("length") + private Long length; + + public Builder length(Long length) { + this.length = length; + this.__explicitlySet__.add("length"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private Boolean isNullable; + + public Builder isNullable(Boolean isNullable) { + this.isNullable = isNullable; + this.__explicitlySet__.add("isNullable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("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("externalDataType") + private String externalDataType; + + public Builder externalDataType(String externalDataType) { + this.externalDataType = externalDataType; + this.__explicitlySet__.add("externalDataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttributeSummary build() { + AttributeSummary __instance__ = + new AttributeSummary( + key, + displayName, + description, + entityKey, + externalKey, + length, + isNullable, + uri, + lifecycleState, + timeCreated, + externalDataType); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttributeSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .entityKey(o.getEntityKey()) + .externalKey(o.getExternalKey()) + .length(o.getLength()) + .isNullable(o.getIsNullable()) + .uri(o.getUri()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .externalDataType(o.getExternalDataType()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique attribute key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the parent entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + String entityKey; + + /** + * Unique external key of this attribute in the external source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Max allowed length of the attribute value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("length") + Long length; + + /** + * Property that identifies if this attribute can be assigned null values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + Boolean isNullable; + + /** + * URI to the attribute instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * State of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the attribute was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Data type of the attribute as defined in the external source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + String externalDataType; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTag.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTag.java new file mode 100644 index 00000000000..9f3ffa05f09 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTag.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents an association of an entity attribute to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AttributeTag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AttributeTag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("attributeKey") + private String attributeKey; + + public Builder attributeKey(String attributeKey) { + this.attributeKey = attributeKey; + this.__explicitlySet__.add("attributeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttributeTag build() { + AttributeTag __instance__ = + new AttributeTag( + attributeKey, + key, + name, + termKey, + termPath, + termDescription, + lifecycleState, + timeCreated, + createdById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttributeTag o) { + Builder copiedBuilder = + attributeKey(o.getAttributeKey()) + .key(o.getKey()) + .name(o.getName()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .createdById(o.getCreatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attributeKey") + String attributeKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag which matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * The current state of the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * OCID of the user who created the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagCollection.java new file mode 100644 index 00000000000..6f25e794a21 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of an attribute tags listing. Attribnute tags allow association of business terms with attributes. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttributeTagCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AttributeTagCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttributeTagCollection build() { + AttributeTagCollection __instance__ = new AttributeTagCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttributeTagCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of attribute tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagSummary.java new file mode 100644 index 00000000000..06a98212bcb --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/AttributeTagSummary.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of an entity attribute tag. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AttributeTagSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AttributeTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("attributeKey") + private String attributeKey; + + public Builder attributeKey(String attributeKey) { + this.attributeKey = attributeKey; + this.__explicitlySet__.add("attributeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AttributeTagSummary build() { + AttributeTagSummary __instance__ = + new AttributeTagSummary( + attributeKey, + key, + timeCreated, + name, + uri, + termKey, + termPath, + termDescription, + glossaryKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AttributeTagSummary o) { + Builder copiedBuilder = + attributeKey(o.getAttributeKey()) + .key(o.getKey()) + .timeCreated(o.getTimeCreated()) + .name(o.getName()) + .uri(o.getUri()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .glossaryKey(o.getGlossaryKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("attributeKey") + String attributeKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * Unique id of the parent glossary of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * State of the Tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BasePermissionsSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BasePermissionsSummary.java new file mode 100644 index 00000000000..bd6d339fa76 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BasePermissionsSummary.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Permissions object sent as part of the response. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BasePermissionsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BasePermissionsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + private java.util.List userPermissions; + + public Builder userPermissions(java.util.List userPermissions) { + this.userPermissions = userPermissions; + this.__explicitlySet__.add("userPermissions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BasePermissionsSummary build() { + BasePermissionsSummary __instance__ = new BasePermissionsSummary(userPermissions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BasePermissionsSummary o) { + Builder copiedBuilder = userPermissions(o.getUserPermissions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * An array of permissions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + java.util.List userPermissions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTag.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTag.java new file mode 100644 index 00000000000..38de804a27c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTag.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents the association of an object to a term. Tags are immutable. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BaseTag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BaseTag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseTag build() { + BaseTag __instance__ = + new BaseTag( + key, + name, + termKey, + termPath, + termDescription, + lifecycleState, + timeCreated, + createdById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseTag o) { + Builder copiedBuilder = + key(o.getKey()) + .name(o.getName()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .createdById(o.getCreatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag which matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * The current state of the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * OCID of the user who created the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTagSummary.java new file mode 100644 index 00000000000..360f0f224ea --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/BaseTagSummary.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents the association of an object to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = BaseTagSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class BaseTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BaseTagSummary build() { + BaseTagSummary __instance__ = + new BaseTagSummary( + key, + timeCreated, + name, + uri, + termKey, + termPath, + termDescription, + glossaryKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BaseTagSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .timeCreated(o.getTimeCreated()) + .name(o.getName()) + .uri(o.getUri()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .glossaryKey(o.getGlossaryKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * Unique id of the parent glossary of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * State of the Tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Catalog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Catalog.java new file mode 100644 index 00000000000..fbda2e72ce2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Catalog.java @@ -0,0 +1,266 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A data catalog enables you to collect, organize, find, access, understand, enrich, and activate technical, business, and operational 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Catalog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Catalog { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceApiUrl") + private String serviceApiUrl; + + public Builder serviceApiUrl(String serviceApiUrl) { + this.serviceApiUrl = serviceApiUrl; + this.__explicitlySet__.add("serviceApiUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl") + private String serviceConsoleUrl; + + public Builder serviceConsoleUrl(String serviceConsoleUrl) { + this.serviceConsoleUrl = serviceConsoleUrl; + this.__explicitlySet__.add("serviceConsoleUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + private Integer numberOfObjects; + + public Builder numberOfObjects(Integer numberOfObjects) { + this.numberOfObjects = numberOfObjects; + this.__explicitlySet__.add("numberOfObjects"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Catalog build() { + Catalog __instance__ = + new Catalog( + id, + displayName, + compartmentId, + timeCreated, + timeUpdated, + serviceApiUrl, + serviceConsoleUrl, + numberOfObjects, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Catalog o) { + Builder copiedBuilder = + id(o.getId()) + .displayName(o.getDisplayName()) + .compartmentId(o.getCompartmentId()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .serviceApiUrl(o.getServiceApiUrl()) + .serviceConsoleUrl(o.getServiceConsoleUrl()) + .numberOfObjects(o.getNumberOfObjects()) + .lifecycleState(o.getLifecycleState()) + .lifecycleDetails(o.getLifecycleDetails()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * OCID of the data catalog instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Data catalog identifier, which can be renamed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Compartment identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The time the data catalog was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The time the data catalog was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * The REST front endpoint URL to the data catalog instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceApiUrl") + String serviceApiUrl; + + /** + * The console front endpoint URL to the data catalog instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("serviceConsoleUrl") + String serviceConsoleUrl; + + /** + * The number of data objects added to the data catalog. + * Please see the data catalog documentation for further information on how this is calculated. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + Integer numberOfObjects; + + /** + * The current state of the data catalog resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * An message describing the current state in more detail. + * For example, it can be used to provide actionable information for a resource in 'Failed' state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogPermissionsSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogPermissionsSummary.java new file mode 100644 index 00000000000..035c5ba3776 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogPermissionsSummary.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * General permissions object. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CatalogPermissionsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CatalogPermissionsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + private java.util.List userPermissions; + + public Builder userPermissions(java.util.List userPermissions) { + this.userPermissions = userPermissions; + this.__explicitlySet__.add("userPermissions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CatalogPermissionsSummary build() { + CatalogPermissionsSummary __instance__ = + new CatalogPermissionsSummary(catalogId, userPermissions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CatalogPermissionsSummary o) { + Builder copiedBuilder = + catalogId(o.getCatalogId()).userPermissions(o.getUserPermissions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * An array of permissions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + java.util.List userPermissions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogSummary.java new file mode 100644 index 00000000000..9dd5f8f4a77 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CatalogSummary.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of the data catalog. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CatalogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CatalogSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + private Integer numberOfObjects; + + public Builder numberOfObjects(Integer numberOfObjects) { + this.numberOfObjects = numberOfObjects; + this.__explicitlySet__.add("numberOfObjects"); + 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("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CatalogSummary build() { + CatalogSummary __instance__ = + new CatalogSummary( + id, + displayName, + compartmentId, + timeCreated, + timeUpdated, + numberOfObjects, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CatalogSummary o) { + Builder copiedBuilder = + id(o.getId()) + .displayName(o.getDisplayName()) + .compartmentId(o.getCompartmentId()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .numberOfObjects(o.getNumberOfObjects()) + .lifecycleState(o.getLifecycleState()) + .lifecycleDetails(o.getLifecycleDetails()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique identifier that is immutable on creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Data catalog identifier, that can be renamed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Compartment identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The time the data catalog was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The time the data catalog was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * The number of high level objects added to the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + Integer numberOfObjects; + + /** + * The current state of the data catalog resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ChangeCatalogCompartmentDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ChangeCatalogCompartmentDetails.java new file mode 100644 index 00000000000..8d00587dfb4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ChangeCatalogCompartmentDetails.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeCatalogCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ChangeCatalogCompartmentDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeCatalogCompartmentDetails build() { + ChangeCatalogCompartmentDetails __instance__ = + new ChangeCatalogCompartmentDetails(compartmentId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeCatalogCompartmentDetails o) { + Builder copiedBuilder = compartmentId(o.getCompartmentId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The identifier of the compartment where the resource should be moved. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Connection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Connection.java new file mode 100644 index 00000000000..d2d96bd73bd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Connection.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Detailed representation of a connection to a data asset, minus any sensitive properties. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Connection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Connection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeStatusUpdated") + private java.util.Date timeStatusUpdated; + + public Builder timeStatusUpdated(java.util.Date timeStatusUpdated) { + this.timeStatusUpdated = timeStatusUpdated; + this.__explicitlySet__.add("timeStatusUpdated"); + 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("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Connection build() { + Connection __instance__ = + new Connection( + key, + description, + displayName, + timeCreated, + timeUpdated, + createdById, + updatedById, + properties, + externalKey, + timeStatusUpdated, + lifecycleState, + isDefault, + dataAssetKey, + typeKey, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Connection o) { + Builder copiedBuilder = + key(o.getKey()) + .description(o.getDescription()) + .displayName(o.getDisplayName()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .properties(o.getProperties()) + .externalKey(o.getExternalKey()) + .timeStatusUpdated(o.getTimeStatusUpdated()) + .lifecycleState(o.getLifecycleState()) + .isDefault(o.getIsDefault()) + .dataAssetKey(o.getDataAssetKey()) + .typeKey(o.getTypeKey()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique connection key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A description of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The date and time the connection was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the connection. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who modified the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * A map of maps that contains the properties which are specific to the connection type. Each connection type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * connections have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"username\": \"user1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * Unique external key of this object from the source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Time that the connections status was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStatusUpdated") + java.util.Date timeStatusUpdated; + + /** + * The current state of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Indicates whether this connection is the default connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + Boolean isDefault; + + /** + * Unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * The key of the object type. Type key's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * URI to the connection instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionAliasSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionAliasSummary.java new file mode 100644 index 00000000000..7e69a032ddd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionAliasSummary.java @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary representation of database aliases parsed from the file 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionAliasSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ConnectionAliasSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("aliasName") + private String aliasName; + + public Builder aliasName(String aliasName) { + this.aliasName = aliasName; + this.__explicitlySet__.add("aliasName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("aliasDetails") + private String aliasDetails; + + public Builder aliasDetails(String aliasDetails) { + this.aliasDetails = aliasDetails; + this.__explicitlySet__.add("aliasDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionAliasSummary build() { + ConnectionAliasSummary __instance__ = + new ConnectionAliasSummary(aliasName, aliasDetails); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionAliasSummary o) { + Builder copiedBuilder = aliasName(o.getAliasName()).aliasDetails(o.getAliasDetails()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aliasName") + String aliasName; + + /** + * The description about the database alias parsed from the file metadata. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("aliasDetails") + String aliasDetails; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionCollection.java new file mode 100644 index 00000000000..20dc6af4985 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a connections listing. Each member of the result is a summary representation of a connection to a data asset. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ConnectionCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionCollection build() { + ConnectionCollection __instance__ = new ConnectionCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of connection summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionResult.java new file mode 100644 index 00000000000..ce93a19cee1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionResult.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Result from connection test and validation. + * SUCCEEDED - The connection is valid and tested successfully. + * FAILED - The connection validation failed. This could be due to incorrect or insufficient credentials or invalid connection metadata. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum ConnectionResult { + Succeeded("SUCCEEDED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectionResult v : ConnectionResult.values()) { + map.put(v.getValue(), v); + } + } + + ConnectionResult(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectionResult create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid ConnectionResult: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionSummary.java new file mode 100644 index 00000000000..0633234d0ef --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ConnectionSummary.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary representation of a connection to a data asset. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConnectionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ConnectionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + 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("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConnectionSummary build() { + ConnectionSummary __instance__ = + new ConnectionSummary( + key, + description, + displayName, + dataAssetKey, + typeKey, + uri, + externalKey, + lifecycleState, + isDefault, + timeCreated); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConnectionSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .description(o.getDescription()) + .displayName(o.getDisplayName()) + .dataAssetKey(o.getDataAssetKey()) + .typeKey(o.getTypeKey()) + .uri(o.getUri()) + .externalKey(o.getExternalKey()) + .lifecycleState(o.getLifecycleState()) + .isDefault(o.getIsDefault()) + .timeCreated(o.getTimeCreated()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique connection key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A description of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * The key of the object type. Type key's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * URI to the connection instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique external key for this object as defined in the source systems. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * The current state of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Indicates whether this connection is the default connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + Boolean isDefault; + + /** + * The date and time the connection was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateAttributeDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateAttributeDetails.java new file mode 100644 index 00000000000..a1eaf02a341 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateAttributeDetails.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in attribute create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateAttributeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateAttributeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + private String externalDataType; + + public Builder externalDataType(String externalDataType) { + this.externalDataType = externalDataType; + this.__explicitlySet__.add("externalDataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + private Boolean isIncrementalData; + + public Builder isIncrementalData(Boolean isIncrementalData) { + this.isIncrementalData = isIncrementalData; + this.__explicitlySet__.add("isIncrementalData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private Boolean isNullable; + + public Builder isNullable(Boolean isNullable) { + this.isNullable = isNullable; + this.__explicitlySet__.add("isNullable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("length") + private Long length; + + public Builder length(Long length) { + this.length = length; + this.__explicitlySet__.add("length"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Integer position; + + public Builder position(Integer position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("precision") + private Integer precision; + + public Builder precision(Integer precision) { + this.precision = precision; + this.__explicitlySet__.add("precision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Integer scale; + + public Builder scale(Integer scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateAttributeDetails build() { + CreateAttributeDetails __instance__ = + new CreateAttributeDetails( + displayName, + description, + externalDataType, + isIncrementalData, + isNullable, + length, + position, + precision, + scale, + timeExternal, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateAttributeDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .externalDataType(o.getExternalDataType()) + .isIncrementalData(o.getIsIncrementalData()) + .isNullable(o.getIsNullable()) + .length(o.getLength()) + .position(o.getPosition()) + .precision(o.getPrecision()) + .scale(o.getScale()) + .timeExternal(o.getTimeExternal()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Data type of the attribute as defined in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + String externalDataType; + + /** + * Property that identifies if this attribute can be used as a watermark to extract incremental data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + Boolean isIncrementalData; + + /** + * Property that identifies if this attribute can be assigned null values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + Boolean isNullable; + + /** + * Max allowed length of the attribute value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("length") + Long length; + + /** + * Position of the attribute in the record definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + Integer position; + + /** + * Precision of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precision") + Integer precision; + + /** + * Scale of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + Integer scale; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * A map of maps that contains the properties which are specific to the attribute type. Each attribute type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * attributes have required properties within the \"default\" category. To determine the set of required and + * optional properties for an attribute type, a query can be done on '/types?type=attribute' that returns a + * collection of all attribute types. The appropriate attribute type, which will include definitions of all + * of it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateCatalogDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateCatalogDetails.java new file mode 100644 index 00000000000..143c97c2a65 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateCatalogDetails.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * The information about a new data catalog. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateCatalogDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateCatalogDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateCatalogDetails build() { + CreateCatalogDetails __instance__ = + new CreateCatalogDetails(displayName, compartmentId, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateCatalogDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Data catalog identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Compartment identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateConnectionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateConnectionDetails.java new file mode 100644 index 00000000000..e9c7150cff9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateConnectionDetails.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in connection create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @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("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("encProperties") + private java.util.Map> encProperties; + + public Builder encProperties( + java.util.Map> encProperties) { + this.encProperties = encProperties; + this.__explicitlySet__.add("encProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateConnectionDetails build() { + CreateConnectionDetails __instance__ = + new CreateConnectionDetails( + description, + displayName, + typeKey, + properties, + encProperties, + isDefault); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateConnectionDetails o) { + Builder copiedBuilder = + description(o.getDescription()) + .displayName(o.getDisplayName()) + .typeKey(o.getTypeKey()) + .properties(o.getProperties()) + .encProperties(o.getEncProperties()) + .isDefault(o.getIsDefault()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A description of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The key of the object type. Type key's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * A map of maps that contains the properties which are specific to the connection type. Each connection type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * connections have required properties within the \"default\" category. To determine the set of optional and + * required properties for a connection type, a query can be done on '/types?type=connection' that returns a + * collection of all connection types. The appropriate connection type, which will include definitions of all + * of it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"username\": \"user1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * A map of maps that contains the encrypted values for sensitive properties which are specific to the + * connection type. Each connection type definition defines it's set of required and optional properties. + * The map keys are category names and the values are maps of property name to property value. Every property is + * contained inside of a category. Most connections have required properties within the \"default\" category. + * To determine the set of optional and required properties for a connection type, a query can be done + * on '/types?type=connection' that returns a collection of all connection types. The appropriate connection + * type, which will include definitions of all of it's properties, can be identified from this collection. + * Example: `{\"encProperties\": { \"default\": { \"password\": \"pwd\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("encProperties") + java.util.Map> encProperties; + + /** + * Indicates whether this connection is the default connection. The first connection of a data asset defaults + * to being the default, subsequent connections default to not being the default. If a default connection already + * exists, then trying to create a connection as the default will fail. In this case the default connection would + * need to be updated not to be the default and then the new connection can then be created as the default. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + Boolean isDefault; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateDataAssetDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateDataAssetDetails.java new file mode 100644 index 00000000000..b2128e8ef3b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateDataAssetDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in data asset create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDataAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateDataAssetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateDataAssetDetails build() { + CreateDataAssetDetails __instance__ = + new CreateDataAssetDetails(displayName, description, typeKey, properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateDataAssetDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .typeKey(o.getTypeKey()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The key of the data asset type. This can be obtained via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * A map of maps that contains the properties which are specific to the data asset type. Each data asset type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * data assets have required properties within the \"default\" category. To determine the set of optional and + * required properties for a data asset type, a query can be done on '/types?type=dataAsset' that returns a + * collection of all data asset types. The appropriate data asset type, which includes definitions of all of + * it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateEntityDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateEntityDetails.java new file mode 100644 index 00000000000..2035e98bf2c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateEntityDetails.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in data entity create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateEntityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateEntityDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + private Boolean isLogical; + + public Builder isLogical(Boolean isLogical) { + this.isLogical = isLogical; + this.__explicitlySet__.add("isLogical"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + private Boolean isPartition; + + public Builder isPartition(Boolean isPartition) { + this.isPartition = isPartition; + this.__explicitlySet__.add("isPartition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateEntityDetails build() { + CreateEntityDetails __instance__ = + new CreateEntityDetails( + displayName, + description, + timeExternal, + isLogical, + isPartition, + folderKey, + harvestStatus, + lastJobKey, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateEntityDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .timeExternal(o.getTimeExternal()) + .isLogical(o.getIsLogical()) + .isPartition(o.getIsPartition()) + .folderKey(o.getFolderKey()) + .harvestStatus(o.getHarvestStatus()) + .lastJobKey(o.getLastJobKey()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Last modified timestamp of the object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * Property to indicate if the object is a physical materialized object or virtual. For example, View. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + Boolean isLogical; + + /** + * Property to indicate if the object is a sub object of a parent physical object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + Boolean isPartition; + + /** + * Key of the associated folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Status of the object as updated by the harvest process. When an entity object is created , it's harvest status + * will indicate if the entity's metadata has been fully harvested or not. The harvest process can perform + * shallow harvesting to allow users to browse the metadata and can on-demand deep harvest on any object + * This requires a harvest status indicator for catalog objects. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + /** + * Key of the last harvest process to update this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + /** + * A map of maps that contains the properties which are specific to the entity type. Each entity type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * entities have required properties within the \"default\" category. To determine the set of required and + * optional properties for an entity type, a query can be done on '/types?type=dataEntity' that returns a + * collection of all entity types. The appropriate entity type, which includes definitions of all of + * it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateFolderDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateFolderDetails.java new file mode 100644 index 00000000000..356c21cee9f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateFolderDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in folder create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateFolderDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateFolderDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + private String parentFolderKey; + + public Builder parentFolderKey(String parentFolderKey) { + this.parentFolderKey = parentFolderKey; + this.__explicitlySet__.add("parentFolderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateFolderDetails build() { + CreateFolderDetails __instance__ = + new CreateFolderDetails( + displayName, + description, + properties, + parentFolderKey, + timeExternal, + lastJobKey, + harvestStatus); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateFolderDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .properties(o.getProperties()) + .parentFolderKey(o.getParentFolderKey()) + .timeExternal(o.getTimeExternal()) + .lastJobKey(o.getLastJobKey()) + .harvestStatus(o.getHarvestStatus()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A map of maps that contains the properties which are specific to the folder type. Each folder type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * folders have required properties within the \"default\" category. To determine the set of optional and + * required properties for a folder type, a query can be done on '/types?type=folder' that returns a + * collection of all folder types. The appropriate folder type, which includes definitions of all of + * it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * The key of the containing folder or null if there isn't a parent folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + String parentFolderKey; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * The job key of the harvest process that updated the folder definition from the source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + /** + * Folder harvesting status. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateGlossaryDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateGlossaryDetails.java new file mode 100644 index 00000000000..67f6759672f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateGlossaryDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in glossary create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGlossaryDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateGlossaryDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGlossaryDetails build() { + CreateGlossaryDetails __instance__ = + new CreateGlossaryDetails(displayName, description, workflowStatus, owner); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGlossaryDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .workflowStatus(o.getWorkflowStatus()) + .owner(o.getOwner()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Status of the approval process workflow for this business glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * OCID of the user who is the owner of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java new file mode 100644 index 00000000000..2d9ae4a99b2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDefinitionDetails.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Representation of a job definition Resource. Job definitions define the harvest scope and includes the list of + * objects to be harvested along with a schedule. The list of objects is usually specified through a combination of + * object type, regular expressions, or specific names of objects and a sample size for the data harvested. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateJobDefinitionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateJobDefinitionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + private Boolean isIncremental; + + public Builder isIncremental(Boolean isIncremental) { + this.isIncremental = isIncremental; + this.__explicitlySet__.add("isIncremental"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + private Boolean isSampleDataExtracted; + + public Builder isSampleDataExtracted(Boolean isSampleDataExtracted) { + this.isSampleDataExtracted = isSampleDataExtracted; + this.__explicitlySet__.add("isSampleDataExtracted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + private Integer sampleDataSizeInMBs; + + public Builder sampleDataSizeInMBs(Integer sampleDataSizeInMBs) { + this.sampleDataSizeInMBs = sampleDataSizeInMBs; + this.__explicitlySet__.add("sampleDataSizeInMBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateJobDefinitionDetails build() { + CreateJobDefinitionDetails __instance__ = + new CreateJobDefinitionDetails( + displayName, + description, + jobType, + isIncremental, + dataAssetKey, + connectionKey, + isSampleDataExtracted, + sampleDataSizeInMBs, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateJobDefinitionDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .jobType(o.getJobType()) + .isIncremental(o.getIsIncremental()) + .dataAssetKey(o.getDataAssetKey()) + .connectionKey(o.getConnectionKey()) + .isSampleDataExtracted(o.getIsSampleDataExtracted()) + .sampleDataSizeInMBs(o.getSampleDataSizeInMBs()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Type of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Specifies if the job definition is incremental or full. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + Boolean isIncremental; + + /** + * The key of the data asset for which the job is defined. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * The key of the connection resource to be used for the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + /** + * Specify if sample data to be extracted as part of this harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + Boolean isSampleDataExtracted; + + /** + * Specify the sample data size in MB, specified as number of rows, for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + Integer sampleDataSizeInMBs; + + /** + * A map of maps that contains the properties which are specific to the job type. Each job type + * definition may define it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * job definitions have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java new file mode 100644 index 00000000000..0555fb4b59a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobDetails.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used to create a 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateJobDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateJobDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + private String scheduleCronExpression; + + public Builder scheduleCronExpression(String scheduleCronExpression) { + this.scheduleCronExpression = scheduleCronExpression; + this.__explicitlySet__.add("scheduleCronExpression"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + private java.util.Date timeScheduleBegin; + + public Builder timeScheduleBegin(java.util.Date timeScheduleBegin) { + this.timeScheduleBegin = timeScheduleBegin; + this.__explicitlySet__.add("timeScheduleBegin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + private java.util.Date timeScheduleEnd; + + public Builder timeScheduleEnd(java.util.Date timeScheduleEnd) { + this.timeScheduleEnd = timeScheduleEnd; + this.__explicitlySet__.add("timeScheduleEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateJobDetails build() { + CreateJobDetails __instance__ = + new CreateJobDetails( + displayName, + description, + scheduleCronExpression, + timeScheduleBegin, + timeScheduleEnd, + connectionKey, + jobDefinitionKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateJobDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .scheduleCronExpression(o.getScheduleCronExpression()) + .timeScheduleBegin(o.getTimeScheduleBegin()) + .timeScheduleEnd(o.getTimeScheduleEnd()) + .connectionKey(o.getConnectionKey()) + .jobDefinitionKey(o.getJobDefinitionKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. + * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using + * special strings. For example, @hourly will run the job every hour. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + String scheduleCronExpression; + + /** + * Date that the schedule should be operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + java.util.Date timeScheduleBegin; + + /** + * Date that the schedule should end from being operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + java.util.Date timeScheduleEnd; + + /** + * The key of the connection used by the job. This connection will override the default connection specified in + * the associated job definition. All executions will use this connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + /** + * The unique key of the job definition that defined the scope of this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + String jobDefinitionKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobExecutionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobExecutionDetails.java new file mode 100644 index 00000000000..a667e86e175 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateJobExecutionDetails.java @@ -0,0 +1,304 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties for creating a new job execution. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateJobExecutionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateJobExecutionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("subType") + private String subType; + + public Builder subType(String subType) { + this.subType = subType; + this.__explicitlySet__.add("subType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + private String parentKey; + + public Builder parentKey(String parentKey) { + this.parentKey = parentKey; + this.__explicitlySet__.add("parentKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + private java.util.Date timeEnded; + + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private JobExecutionState lifecycleState; + + public Builder lifecycleState(JobExecutionState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private String errorCode; + + public Builder errorCode(String errorCode) { + this.errorCode = errorCode; + this.__explicitlySet__.add("errorCode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private String errorMessage; + + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.__explicitlySet__.add("errorMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + private String scheduleInstanceKey; + + public Builder scheduleInstanceKey(String scheduleInstanceKey) { + this.scheduleInstanceKey = scheduleInstanceKey; + this.__explicitlySet__.add("scheduleInstanceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processKey") + private String processKey; + + public Builder processKey(String processKey) { + this.processKey = processKey; + this.__explicitlySet__.add("processKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalUrl") + private String externalUrl; + + public Builder externalUrl(String externalUrl) { + this.externalUrl = externalUrl; + this.__explicitlySet__.add("externalUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("eventKey") + private String eventKey; + + public Builder eventKey(String eventKey) { + this.eventKey = eventKey; + this.__explicitlySet__.add("eventKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataEntityKey") + private String dataEntityKey; + + public Builder dataEntityKey(String dataEntityKey) { + this.dataEntityKey = dataEntityKey; + this.__explicitlySet__.add("dataEntityKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateJobExecutionDetails build() { + CreateJobExecutionDetails __instance__ = + new CreateJobExecutionDetails( + subType, + jobType, + parentKey, + timeStarted, + timeEnded, + lifecycleState, + errorCode, + errorMessage, + scheduleInstanceKey, + processKey, + externalUrl, + eventKey, + dataEntityKey, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateJobExecutionDetails o) { + Builder copiedBuilder = + subType(o.getSubType()) + .jobType(o.getJobType()) + .parentKey(o.getParentKey()) + .timeStarted(o.getTimeStarted()) + .timeEnded(o.getTimeEnded()) + .lifecycleState(o.getLifecycleState()) + .errorCode(o.getErrorCode()) + .errorMessage(o.getErrorMessage()) + .scheduleInstanceKey(o.getScheduleInstanceKey()) + .processKey(o.getProcessKey()) + .externalUrl(o.getExternalUrl()) + .eventKey(o.getEventKey()) + .dataEntityKey(o.getDataEntityKey()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Sub-type of this job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subType") + String subType; + + /** + * Type of the job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * The unique key of the parent execution or null if this job execution has no parent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + String parentKey; + + /** + * Time that job execution started. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + java.util.Date timeStarted; + + /** + * Time that the job execution ended or null if it hasn't yet completed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + java.util.Date timeEnded; + + /** + * Status of the job execution, such as running, paused, or completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + JobExecutionState lifecycleState; + + /** + * Error code returned from the job execution or null if job is still running or didn't return an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + String errorCode; + + /** + * Error message returned from the job execution or null if job is still running or didn't return an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + String errorMessage; + + /** + * The unique key of the triggering external scheduler resource or null if this job execution is not externally triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + String scheduleInstanceKey; + + /** + * Process identifier related to the job execution if the job is an external job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processKey") + String processKey; + + /** + * If the job is an external process, then a URL of the job for accessing this resource and its status. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalUrl") + String externalUrl; + + /** + * An identifier used for log message correlation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("eventKey") + String eventKey; + + /** + * The key of the associated data entity resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataEntityKey") + String dataEntityKey; + + /** + * A map of maps that contains the execution context properties which are specific to a job execution. Each job + * execution may define it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * job executions have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTagDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTagDetails.java new file mode 100644 index 00000000000..79838eacd31 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTagDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in tag create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateTagDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateTagDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + 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("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateTagDetails build() { + CreateTagDetails __instance__ = new CreateTagDetails(name, termKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateTagDetails o) { + Builder copiedBuilder = name(o.getName()).termKey(o.getTermKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The name of the tag in the case of a free form tag. + * When linking to a glossary term, this field is not specified. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term or null in the case of a free form tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermDetails.java new file mode 100644 index 00000000000..fd73e97efe0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermDetails.java @@ -0,0 +1,159 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in term create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateTermDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateTermDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + private Boolean isAllowedToHaveChildTerms; + + public Builder isAllowedToHaveChildTerms(Boolean isAllowedToHaveChildTerms) { + this.isAllowedToHaveChildTerms = isAllowedToHaveChildTerms; + this.__explicitlySet__.add("isAllowedToHaveChildTerms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateTermDetails build() { + CreateTermDetails __instance__ = + new CreateTermDetails( + displayName, + description, + isAllowedToHaveChildTerms, + parentTermKey, + owner, + workflowStatus); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateTermDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .isAllowedToHaveChildTerms(o.getIsAllowedToHaveChildTerms()) + .parentTermKey(o.getParentTermKey()) + .owner(o.getOwner()) + .workflowStatus(o.getWorkflowStatus()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Is changeable. The combination of 'displayName' and 'parentTermKey' + * must be unique. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Indicates whether a term may contain child terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + Boolean isAllowedToHaveChildTerms; + + /** + * The terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * OCID of the user who is the owner of this business terminology. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + /** + * Status of the approval process workflow for this business term in the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermRelationshipDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermRelationshipDetails.java new file mode 100644 index 00000000000..84203bcd901 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/CreateTermRelationshipDetails.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in term relationship create operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateTermRelationshipDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateTermRelationshipDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermKey") + private String relatedTermKey; + + public Builder relatedTermKey(String relatedTermKey) { + this.relatedTermKey = relatedTermKey; + this.__explicitlySet__.add("relatedTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateTermRelationshipDetails build() { + CreateTermRelationshipDetails __instance__ = + new CreateTermRelationshipDetails(displayName, description, relatedTermKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateTermRelationshipDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .relatedTermKey(o.getRelatedTermKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Is changeable. The combination of 'displayName' and 'parentTermKey' + * must be unique. Avoid entering confidential information. This is the same as 'relationshipType' for 'termRelationship'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term relationship usually defined at the time of creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermKey") + String relatedTermKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java new file mode 100644 index 00000000000..070adc0fa00 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAsset.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Data asset representation. A physical store, or stream, of data known to the data catalog and containing + * one or many data entities, possibly in an organized structure of folders. A data asset is often synonymous + * with a 'System', such as a database, or may be a file container or a message stream. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataAsset.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAsset { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAsset build() { + DataAsset __instance__ = + new DataAsset( + key, + displayName, + description, + catalogId, + externalKey, + typeKey, + lifecycleState, + timeCreated, + timeUpdated, + createdById, + updatedById, + uri, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAsset o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .externalKey(o.getExternalKey()) + .typeKey(o.getTypeKey()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .uri(o.getUri()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique data asset key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * External URI that can be used to reference the object. Format will differ based on the type of object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * The key of the object type. Type key's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * The current state of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the data asset was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the data asset. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who last modified the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * URI to the data asset instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * A map of maps that contains the properties which are specific to the asset type. Each data asset type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * data assets have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetCollection.java new file mode 100644 index 00000000000..30cb54de314 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a data assets listing. A data asset is often synonymous with a 'System', such as a database, or may be a file container or a message stream. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataAssetCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetCollection build() { + DataAssetCollection __instance__ = new DataAssetCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of data asset summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetPermissionsSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetPermissionsSummary.java new file mode 100644 index 00000000000..01e51328e8f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetPermissionsSummary.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Permissions object for data assets. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataAssetPermissionsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetPermissionsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + private java.util.List userPermissions; + + public Builder userPermissions(java.util.List userPermissions) { + this.userPermissions = userPermissions; + this.__explicitlySet__.add("userPermissions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetPermissionsSummary build() { + DataAssetPermissionsSummary __instance__ = + new DataAssetPermissionsSummary(dataAssetKey, userPermissions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetPermissionsSummary o) { + Builder copiedBuilder = + dataAssetKey(o.getDataAssetKey()).userPermissions(o.getUserPermissions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * An array of permissions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + java.util.List userPermissions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java new file mode 100644 index 00000000000..87935742daa --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetSummary.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a data asset. A physical store, or stream, of data known to the data catalog and containing one or + * many data entities, possibly in an organized structure of folders. A data asset is often synonymous with + * a 'System', such as a database, or may be a file container or a message stream. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataAssetSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetSummary build() { + DataAssetSummary __instance__ = + new DataAssetSummary( + key, + displayName, + description, + catalogId, + externalKey, + uri, + timeCreated, + typeKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .externalKey(o.getExternalKey()) + .uri(o.getUri()) + .timeCreated(o.getTimeCreated()) + .typeKey(o.getTypeKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique data asset key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * External URI that can be used to reference the object. Format will differ based on the type of object. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * URI to the data asset instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * The date and time the data asset was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The key of the object type. Type keys's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * State of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTag.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTag.java new file mode 100644 index 00000000000..ab8d7f4fd08 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTag.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents an association of a data asset to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataAssetTag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetTag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetTag build() { + DataAssetTag __instance__ = + new DataAssetTag( + dataAssetKey, + key, + name, + termKey, + termPath, + termDescription, + lifecycleState, + timeCreated, + createdById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetTag o) { + Builder copiedBuilder = + dataAssetKey(o.getDataAssetKey()) + .key(o.getKey()) + .name(o.getName()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .createdById(o.getCreatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag which matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * The current state of the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * OCID of the user who created the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagCollection.java new file mode 100644 index 00000000000..0b4ec0e1a17 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a data asset tag listing. Data asset tags represent an association of a data asset to a term. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataAssetTagCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetTagCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetTagCollection build() { + DataAssetTagCollection __instance__ = new DataAssetTagCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetTagCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of data asset tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagSummary.java new file mode 100644 index 00000000000..e36b8b29709 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/DataAssetTagSummary.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a data asset tag. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataAssetTagSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DataAssetTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataAssetTagSummary build() { + DataAssetTagSummary __instance__ = + new DataAssetTagSummary( + dataAssetKey, + key, + timeCreated, + name, + uri, + termKey, + termPath, + termDescription, + glossaryKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataAssetTagSummary o) { + Builder copiedBuilder = + dataAssetKey(o.getDataAssetKey()) + .key(o.getKey()) + .timeCreated(o.getTimeCreated()) + .name(o.getName()) + .uri(o.getUri()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .glossaryKey(o.getGlossaryKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * Unique id of the parent glossary of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * State of the Tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java new file mode 100644 index 00000000000..79ff61d4c7d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Entity.java @@ -0,0 +1,425 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Data entity details. A representation of data with a set of attributes, normally representing a single + * business entity. Synonymous with 'table' or 'view' in a database, or a single logical file structure + * that one or many files may match. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Entity.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Entity { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + 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("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeStatusUpdated") + private java.util.Date timeStatusUpdated; + + public Builder timeStatusUpdated(java.util.Date timeStatusUpdated) { + this.timeStatusUpdated = timeStatusUpdated; + this.__explicitlySet__.add("timeStatusUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + private Boolean isLogical; + + public Builder isLogical(Boolean isLogical) { + this.isLogical = isLogical; + this.__explicitlySet__.add("isLogical"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + private Boolean isPartition; + + public Builder isPartition(Boolean isPartition) { + this.isPartition = isPartition; + this.__explicitlySet__.add("isPartition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + private String typeKey; + + public Builder typeKey(String typeKey) { + this.typeKey = typeKey; + this.__explicitlySet__.add("typeKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Entity build() { + Entity __instance__ = + new Entity( + key, + displayName, + description, + timeCreated, + timeUpdated, + createdById, + updatedById, + lifecycleState, + externalKey, + timeExternal, + timeStatusUpdated, + isLogical, + isPartition, + dataAssetKey, + folderKey, + path, + harvestStatus, + lastJobKey, + typeKey, + uri, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Entity o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .lifecycleState(o.getLifecycleState()) + .externalKey(o.getExternalKey()) + .timeExternal(o.getTimeExternal()) + .timeStatusUpdated(o.getTimeStatusUpdated()) + .isLogical(o.getIsLogical()) + .isPartition(o.getIsPartition()) + .dataAssetKey(o.getDataAssetKey()) + .folderKey(o.getFolderKey()) + .path(o.getPath()) + .harvestStatus(o.getHarvestStatus()) + .lastJobKey(o.getLastJobKey()) + .typeKey(o.getTypeKey()) + .uri(o.getUri()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique data entity key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The date and time the data entity was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the data entity. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created this object in the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated this object in the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * The current state of the data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Unique external key of this object in the source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * Time that the data entities status was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStatusUpdated") + java.util.Date timeStatusUpdated; + + /** + * Property that identifies if the object is a physical object (materialized) or virtual/logical object + * defined on other objects. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + Boolean isLogical; + + /** + * Property that identifies if an object is a sub object of a physical or materialized parent object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + Boolean isPartition; + + /** + * Unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Key of the associated folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Full path of the data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * Status of the object as updated by the harvest process. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + /** + * Key of the last harvest process to update this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + /** + * The type of data entity object. Type key's can be found via the '/types' endpoint. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeKey") + String typeKey; + + /** + * URI to the data entity instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * A map of maps that contains the properties which are specific to the entity type. Each entity type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * data entities have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityCollection.java new file mode 100644 index 00000000000..ce879329007 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a data entities listing. Data entities are representation of a dataset with a set of attributes. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EntityCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EntityCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityCollection build() { + EntityCollection __instance__ = new EntityCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of data entities. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java new file mode 100644 index 00000000000..b5ae4b2eda9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntitySummary.java @@ -0,0 +1,265 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of an data entity. A representation of data with a set of attributes, normally representing a single + * business entity. Synonymous with 'table' or 'view' in a database, or a single logical file structure + * that one or many files may match. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EntitySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EntitySummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + 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("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntitySummary build() { + EntitySummary __instance__ = + new EntitySummary( + key, + displayName, + description, + dataAssetKey, + folderKey, + externalKey, + path, + timeCreated, + timeUpdated, + updatedById, + uri, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntitySummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .dataAssetKey(o.getDataAssetKey()) + .folderKey(o.getFolderKey()) + .externalKey(o.getExternalKey()) + .path(o.getPath()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .updatedById(o.getUpdatedById()) + .uri(o.getUri()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique data entity key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Key of the associated folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Unique external key of this object in the source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Full path of the data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * The date and time the data entity was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the data entity. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who updated this object in the data catalog. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * URI to the data entity instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * State of the data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTag.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTag.java new file mode 100644 index 00000000000..99fc0a99b1a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTag.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents an association of an entity to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EntityTag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EntityTag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + private String entityKey; + + public Builder entityKey(String entityKey) { + this.entityKey = entityKey; + this.__explicitlySet__.add("entityKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityTag build() { + EntityTag __instance__ = + new EntityTag( + entityKey, + key, + name, + termKey, + termPath, + termDescription, + lifecycleState, + timeCreated, + createdById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityTag o) { + Builder copiedBuilder = + entityKey(o.getEntityKey()) + .key(o.getKey()) + .name(o.getName()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .createdById(o.getCreatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + String entityKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag which matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * The current state of the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * OCID of the user who created the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagCollection.java new file mode 100644 index 00000000000..e6eeb848fef --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of an entity tags listing. Entity tags allow assciation of business terms with entities. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EntityTagCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EntityTagCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityTagCollection build() { + EntityTagCollection __instance__ = new EntityTagCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityTagCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of entity tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagSummary.java new file mode 100644 index 00000000000..341e77a4dd5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/EntityTagSummary.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of an entity tag. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EntityTagSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class EntityTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + private String entityKey; + + public Builder entityKey(String entityKey) { + this.entityKey = entityKey; + this.__explicitlySet__.add("entityKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EntityTagSummary build() { + EntityTagSummary __instance__ = + new EntityTagSummary( + entityKey, + key, + timeCreated, + name, + uri, + termKey, + termPath, + termDescription, + glossaryKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EntityTagSummary o) { + Builder copiedBuilder = + entityKey(o.getEntityKey()) + .key(o.getKey()) + .timeCreated(o.getTimeCreated()) + .name(o.getName()) + .uri(o.getUri()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .glossaryKey(o.getGlossaryKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityKey") + String entityKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * Unique id of the parent glossary of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * State of the Tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java new file mode 100644 index 00000000000..4b351f40182 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Folder.java @@ -0,0 +1,356 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A generic term used in the data catalog for an external organization concept used for a collection of data entities + * or processes within a data asset. This term is an internal term which models multiple external types of folder, + * such as file directories, database schemas, and so on. Some data assets, such as Object Store containers, may contain + * many levels of folders. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Folder.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Folder { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("parentFolderKey") + private String parentFolderKey; + + public Builder parentFolderKey(String parentFolderKey) { + this.parentFolderKey = parentFolderKey; + this.__explicitlySet__.add("parentFolderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + 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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + 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("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Folder build() { + Folder __instance__ = + new Folder( + key, + displayName, + description, + parentFolderKey, + path, + dataAssetKey, + properties, + externalKey, + timeCreated, + timeUpdated, + createdById, + updatedById, + timeExternal, + lifecycleState, + harvestStatus, + lastJobKey, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Folder o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .parentFolderKey(o.getParentFolderKey()) + .path(o.getPath()) + .dataAssetKey(o.getDataAssetKey()) + .properties(o.getProperties()) + .externalKey(o.getExternalKey()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .timeExternal(o.getTimeExternal()) + .lifecycleState(o.getLifecycleState()) + .harvestStatus(o.getHarvestStatus()) + .lastJobKey(o.getLastJobKey()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique folder key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the containing folder or null if there is no parent folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + String parentFolderKey; + + /** + * Full path of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * The key of the associated data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * A map of maps that contains the properties which are specific to the folder type. Each folder type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * folders have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * Unique external key of this object in the source system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * The date and time the folder was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the folder. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who modified the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * The current state of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Status of the object as updated by the harvest process. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + /** + * The key of the last harvest process to update the metadata of this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + /** + * URI to the folder instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderCollection.java new file mode 100644 index 00000000000..ab17f9e8676 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a folders listing. Folders are external organization concept that groups data entities. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FolderCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FolderCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FolderCollection build() { + FolderCollection __instance__ = new FolderCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FolderCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of folders. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java new file mode 100644 index 00000000000..8c4fdb490dc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderSummary.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a folder. + * A generic term used in the data catalog for an external organization concept used for a collection of data entities + * or processes within a data asset. This term is an internal term which models multiple external types of folder, + * such as file directories, database schemas, and so on. Some data assets, such as Object Store containers, + * may contain many levels of folders. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FolderSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FolderSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + private String parentFolderKey; + + public Builder parentFolderKey(String parentFolderKey) { + this.parentFolderKey = parentFolderKey; + this.__explicitlySet__.add("parentFolderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + private String externalKey; + + public Builder externalKey(String externalKey) { + this.externalKey = externalKey; + this.__explicitlySet__.add("externalKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + 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("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FolderSummary build() { + FolderSummary __instance__ = + new FolderSummary( + key, + displayName, + description, + dataAssetKey, + parentFolderKey, + path, + externalKey, + timeExternal, + timeCreated, + uri, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FolderSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .dataAssetKey(o.getDataAssetKey()) + .parentFolderKey(o.getParentFolderKey()) + .path(o.getPath()) + .externalKey(o.getExternalKey()) + .timeExternal(o.getTimeExternal()) + .timeCreated(o.getTimeCreated()) + .uri(o.getUri()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique folder key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the parent data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * The key of the containing folder or null if there is no parent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + String parentFolderKey; + + /** + * Full path of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * Unique external key of this object from the source systems. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalKey") + String externalKey; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * The date and time the folder was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * URI of the folder resource within the data catalog API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * State of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTag.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTag.java new file mode 100644 index 00000000000..2b537fec2c9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTag.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents an association of a folder to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FolderTag.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FolderTag { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FolderTag build() { + FolderTag __instance__ = + new FolderTag( + folderKey, + key, + name, + termKey, + termPath, + termDescription, + lifecycleState, + timeCreated, + createdById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FolderTag o) { + Builder copiedBuilder = + folderKey(o.getFolderKey()) + .key(o.getKey()) + .name(o.getName()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .createdById(o.getCreatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the folder associated with this tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag which matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * The current state of the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * OCID of the user who created the tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagCollection.java new file mode 100644 index 00000000000..ee4c7303756 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a folders tag listing. Folder tags allow association of folder objects to business terms. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FolderTagCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FolderTagCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FolderTagCollection build() { + FolderTagCollection __instance__ = new FolderTagCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FolderTagCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of folder tags. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagSummary.java new file mode 100644 index 00000000000..7d0276ef527 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/FolderTagSummary.java @@ -0,0 +1,225 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a folder tag. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FolderTagSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class FolderTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + private String termKey; + + public Builder termKey(String termKey) { + this.termKey = termKey; + this.__explicitlySet__.add("termKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + private String termPath; + + public Builder termPath(String termPath) { + this.termPath = termPath; + this.__explicitlySet__.add("termPath"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + private String termDescription; + + public Builder termDescription(String termDescription) { + this.termDescription = termDescription; + this.__explicitlySet__.add("termDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FolderTagSummary build() { + FolderTagSummary __instance__ = + new FolderTagSummary( + folderKey, + key, + timeCreated, + name, + uri, + termKey, + termPath, + termDescription, + glossaryKey, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FolderTagSummary o) { + Builder copiedBuilder = + folderKey(o.getFolderKey()) + .key(o.getKey()) + .timeCreated(o.getTimeCreated()) + .name(o.getName()) + .uri(o.getUri()) + .termKey(o.getTermKey()) + .termPath(o.getTermPath()) + .termDescription(o.getTermDescription()) + .glossaryKey(o.getGlossaryKey()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Unique key of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termKey") + String termKey; + + /** + * Path of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termPath") + String termPath; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termDescription") + String termDescription; + + /** + * Unique id of the parent glossary of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * State of the Tag. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Glossary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Glossary.java new file mode 100644 index 00000000000..12e5020e4dc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Glossary.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Full glossary details. A glossary of business terms, such as 'Customer', 'Account', 'Contact' , 'Address', + * or 'Product', with definitions, used to provide common meaning across disparate data assets. Business glossaries + * may be hierarchical where some terms may contain child terms to allow them to be used as 'taxonomies'. + * By linking data assets, data entities, and attributes to glossaries and glossary terms, the glossary can act as a + * way of organizing data catalog objects in a hierarchy to make a large number of objects more navigable and easier to + * consume. Objects in the data aatalog, such as data assets or data entities, may be linked to any level in the + * glossary, so that the glossary can be used to browse the available data according to the business model of the + * organization. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Glossary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Glossary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Glossary build() { + Glossary __instance__ = + new Glossary( + key, + displayName, + description, + catalogId, + lifecycleState, + timeCreated, + timeUpdated, + createdById, + updatedById, + owner, + workflowStatus, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Glossary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .owner(o.getOwner()) + .workflowStatus(o.getWorkflowStatus()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique glossary key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * The current state of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the glossary was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the glossary. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created this metadata element. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated this metadata element. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * OCID of the user who is the owner of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + /** + * Status of the approval process workflow for this business glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * URI to the tag instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryCollection.java new file mode 100644 index 00000000000..b84262b10c3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a glossaries listing. Glossary is an organizing concept for business terms to provide a unified semantic model across disparate data assets. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GlossaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GlossaryCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GlossaryCollection build() { + GlossaryCollection __instance__ = new GlossaryCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GlossaryCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of glossaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryPermissionsSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryPermissionsSummary.java new file mode 100644 index 00000000000..ad1a47baa27 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryPermissionsSummary.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Permissions object for glosssaries. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GlossaryPermissionsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GlossaryPermissionsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + private java.util.List userPermissions; + + public Builder userPermissions(java.util.List userPermissions) { + this.userPermissions = userPermissions; + this.__explicitlySet__.add("userPermissions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GlossaryPermissionsSummary build() { + GlossaryPermissionsSummary __instance__ = + new GlossaryPermissionsSummary(glossaryKey, userPermissions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GlossaryPermissionsSummary o) { + Builder copiedBuilder = + glossaryKey(o.getGlossaryKey()).userPermissions(o.getUserPermissions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * An array of permissions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + java.util.List userPermissions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossarySummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossarySummary.java new file mode 100644 index 00000000000..90e15af4656 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossarySummary.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a glossary. A glossary of business terms, such as 'Customer', 'Account', 'Contact', 'Address', + * or 'Product', with definitions, used to provide common meaning across disparate data assets. Business glossaries + * may be hierarchical where some terms may contain child terms to allow them to be used as 'taxonomies'. + * By linking data assets, data entities, and attributes to glossaries and glossary terms, the glossary can act as a + * way of organizing data catalog objects in a hierarchy to make a large number of objects more navigable and easier to + * consume. Objects in the data catalog, such as data assets or data entities, may be linked to any level in the + * glossary, so that the glossary can be used to browse the available data according to the business model of the + * organization. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GlossarySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GlossarySummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + 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("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GlossarySummary build() { + GlossarySummary __instance__ = + new GlossarySummary( + key, + displayName, + catalogId, + timeCreated, + description, + uri, + workflowStatus, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GlossarySummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .catalogId(o.getCatalogId()) + .timeCreated(o.getTimeCreated()) + .description(o.getDescription()) + .uri(o.getUri()) + .workflowStatus(o.getWorkflowStatus()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique glossary key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * The date and time the glossary was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Detailed description of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * URI to the glossary instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Status of the approval process workflow for this business glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * State of the Glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryTreeElement.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryTreeElement.java new file mode 100644 index 00000000000..caa9bf8cffb --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/GlossaryTreeElement.java @@ -0,0 +1,280 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Glossary tree element with child terms. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GlossaryTreeElement.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class GlossaryTreeElement { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("childTerms") + private java.util.List childTerms; + + public Builder childTerms(java.util.List childTerms) { + this.childTerms = childTerms; + this.__explicitlySet__.add("childTerms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + private Boolean isAllowedToHaveChildTerms; + + public Builder isAllowedToHaveChildTerms(Boolean isAllowedToHaveChildTerms) { + this.isAllowedToHaveChildTerms = isAllowedToHaveChildTerms; + this.__explicitlySet__.add("isAllowedToHaveChildTerms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + 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("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + private Integer associatedObjectCount; + + public Builder associatedObjectCount(Integer associatedObjectCount) { + this.associatedObjectCount = associatedObjectCount; + this.__explicitlySet__.add("associatedObjectCount"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GlossaryTreeElement build() { + GlossaryTreeElement __instance__ = + new GlossaryTreeElement( + childTerms, + key, + displayName, + description, + glossaryKey, + uri, + parentTermKey, + isAllowedToHaveChildTerms, + path, + timeCreated, + workflowStatus, + associatedObjectCount, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GlossaryTreeElement o) { + Builder copiedBuilder = + childTerms(o.getChildTerms()) + .key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .glossaryKey(o.getGlossaryKey()) + .uri(o.getUri()) + .parentTermKey(o.getParentTermKey()) + .isAllowedToHaveChildTerms(o.getIsAllowedToHaveChildTerms()) + .path(o.getPath()) + .timeCreated(o.getTimeCreated()) + .workflowStatus(o.getWorkflowStatus()) + .associatedObjectCount(o.getAssociatedObjectCount()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * An array of child terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("childTerms") + java.util.List childTerms; + + /** + * Unique term key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * URI to the term instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Indicates whether a term may contain child terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + Boolean isAllowedToHaveChildTerms; + + /** + * Absolute path of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * The date and time the term was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Status of the approval process workflow for this business term in the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * The number of objects tagged with this term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + Integer associatedObjectCount; + + /** + * State of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/HarvestStatus.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/HarvestStatus.java new file mode 100644 index 00000000000..dc7e80c9cd1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/HarvestStatus.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Harvest state of the object indicates the completeness of the metadata definition of the object in the catalog. + * COMPLETE - The object's metadata is harvested successfully including properties, relationships, and its children. + * ERROR - There is an error during the harvest process. This could be due to failure in the harvest process, or + * invalid or currupted data. + * IN-PROGRESS - The harvest is currently in progress. This might imply a successful shallow harvest and a deep harvest + * is currently in progress. + * DEFERRED - The dependencies are incomplete and the resolution of the metadata is deferred until all information + * is available for the object. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum HarvestStatus { + Complete("COMPLETE"), + Error("ERROR"), + InProgress("IN_PROGRESS"), + Deferred("DEFERRED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HarvestStatus v : HarvestStatus.values()) { + map.put(v.getValue(), v); + } + } + + HarvestStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HarvestStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid HarvestStatus: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportConnectionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportConnectionDetails.java new file mode 100644 index 00000000000..6e183e7d2db --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportConnectionDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Import connection from the connection metadata and oracle wallet file. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ImportConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + private CreateConnectionDetails connectionDetail; + + public Builder connectionDetail(CreateConnectionDetails connectionDetail) { + this.connectionDetail = connectionDetail; + this.__explicitlySet__.add("connectionDetail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + private byte[] connectionPayload; + + public Builder connectionPayload(byte[] connectionPayload) { + this.connectionPayload = connectionPayload; + this.__explicitlySet__.add("connectionPayload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportConnectionDetails build() { + ImportConnectionDetails __instance__ = + new ImportConnectionDetails(connectionDetail, connectionPayload); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportConnectionDetails o) { + Builder copiedBuilder = + connectionDetail(o.getConnectionDetail()) + .connectionPayload(o.getConnectionPayload()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + CreateConnectionDetails connectionDetail; + + /** + * The information used to import the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + byte[] connectionPayload; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportGlossaryDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportGlossaryDetails.java new file mode 100644 index 00000000000..d2fe2e67723 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportGlossaryDetails.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Import glossary from the contents of the glossary definition file. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportGlossaryDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ImportGlossaryDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("glossaryFileContents") + private byte[] glossaryFileContents; + + public Builder glossaryFileContents(byte[] glossaryFileContents) { + this.glossaryFileContents = glossaryFileContents; + this.__explicitlySet__.add("glossaryFileContents"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportGlossaryDetails build() { + ImportGlossaryDetails __instance__ = new ImportGlossaryDetails(glossaryFileContents); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportGlossaryDetails o) { + Builder copiedBuilder = glossaryFileContents(o.getGlossaryFileContents()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The file contents used for the import of glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryFileContents") + byte[] glossaryFileContents; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java new file mode 100644 index 00000000000..ed714761313 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Job.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details of a job. Jobs are scheduled instances of a job definition. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Job.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Job { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private JobLifecycleState lifecycleState; + + public Builder lifecycleState(JobLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + private String scheduleCronExpression; + + public Builder scheduleCronExpression(String scheduleCronExpression) { + this.scheduleCronExpression = scheduleCronExpression; + this.__explicitlySet__.add("scheduleCronExpression"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + private java.util.Date timeScheduleBegin; + + public Builder timeScheduleBegin(java.util.Date timeScheduleBegin) { + this.timeScheduleBegin = timeScheduleBegin; + this.__explicitlySet__.add("timeScheduleBegin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + private java.util.Date timeScheduleEnd; + + public Builder timeScheduleEnd(java.util.Date timeScheduleEnd) { + this.timeScheduleEnd = timeScheduleEnd; + this.__explicitlySet__.add("timeScheduleEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + private JobScheduleType scheduleType; + + public Builder scheduleType(JobScheduleType scheduleType) { + this.scheduleType = scheduleType; + this.__explicitlySet__.add("scheduleType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalVersion") + private String internalVersion; + + public Builder internalVersion(String internalVersion) { + this.internalVersion = internalVersion; + this.__explicitlySet__.add("internalVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionCount") + private Integer executionCount; + + public Builder executionCount(Integer executionCount) { + this.executionCount = executionCount; + this.__explicitlySet__.add("executionCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestExecution") + private java.util.Date timeOfLatestExecution; + + public Builder timeOfLatestExecution(java.util.Date timeOfLatestExecution) { + this.timeOfLatestExecution = timeOfLatestExecution; + this.__explicitlySet__.add("timeOfLatestExecution"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Job build() { + Job __instance__ = + new Job( + key, + displayName, + description, + catalogId, + lifecycleState, + timeCreated, + timeUpdated, + jobType, + scheduleCronExpression, + timeScheduleBegin, + timeScheduleEnd, + scheduleType, + connectionKey, + jobDefinitionKey, + internalVersion, + executionCount, + timeOfLatestExecution, + createdById, + updatedById, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Job o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .jobType(o.getJobType()) + .scheduleCronExpression(o.getScheduleCronExpression()) + .timeScheduleBegin(o.getTimeScheduleBegin()) + .timeScheduleEnd(o.getTimeScheduleEnd()) + .scheduleType(o.getScheduleType()) + .connectionKey(o.getConnectionKey()) + .jobDefinitionKey(o.getJobDefinitionKey()) + .internalVersion(o.getInternalVersion()) + .executionCount(o.getExecutionCount()) + .timeOfLatestExecution(o.getTimeOfLatestExecution()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * Lifecycle state for job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + JobLifecycleState lifecycleState; + + /** + * The date and time the job was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Time that this job was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * Type of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. + * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using + * special strings. For example, @hourly will run the job every hour. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + String scheduleCronExpression; + + /** + * Date that the schedule should be operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + java.util.Date timeScheduleBegin; + + /** + * Date that the schedule should end from being operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + java.util.Date timeScheduleEnd; + + /** + * Type of job schedule that is inferred from the scheduling properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + JobScheduleType scheduleType; + + /** + * The key of the connection used by the job. This connection will override the default connection specified in + * the associated job definition. All executions will use this connection. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + /** + * The unique key of the job definition resource that defined the scope of this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + String jobDefinitionKey; + + /** + * Internal version of the job resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("internalVersion") + String internalVersion; + + /** + * The total number of executions for this job schedule. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executionCount") + Integer executionCount; + + /** + * The date and time of the most recent execution for this Job, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestExecution") + java.util.Date timeOfLatestExecution; + + /** + * OCID of the user who created this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * URI to the job instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobCollection.java new file mode 100644 index 00000000000..fcb9f3fdafa --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a jobs listing. Jobs are scheduled instances of a job definition. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobCollection build() { + JobCollection __instance__ = new JobCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of jobs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java new file mode 100644 index 00000000000..e80e58254fe --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinition.java @@ -0,0 +1,373 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Representation of a job definition resource. Job definitions define the harvest scope and includes the list + * of objects to be harvested along with a schedule. The list of objects is usually specified through a combination + * of object type, regular expressions, or specific names of objects and a sample size for the data harvested. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobDefinition.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobDefinition { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + private Boolean isIncremental; + + public Builder isIncremental(Boolean isIncremental) { + this.isIncremental = isIncremental; + this.__explicitlySet__.add("isIncremental"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + 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("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("internalVersion") + private String internalVersion; + + public Builder internalVersion(String internalVersion) { + this.internalVersion = internalVersion; + this.__explicitlySet__.add("internalVersion"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + private Boolean isSampleDataExtracted; + + public Builder isSampleDataExtracted(Boolean isSampleDataExtracted) { + this.isSampleDataExtracted = isSampleDataExtracted; + this.__explicitlySet__.add("isSampleDataExtracted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + private Integer sampleDataSizeInMBs; + + public Builder sampleDataSizeInMBs(Integer sampleDataSizeInMBs) { + this.sampleDataSizeInMBs = sampleDataSizeInMBs; + this.__explicitlySet__.add("sampleDataSizeInMBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobDefinition build() { + JobDefinition __instance__ = + new JobDefinition( + key, + displayName, + catalogId, + jobType, + isIncremental, + dataAssetKey, + description, + connectionKey, + internalVersion, + lifecycleState, + timeCreated, + timeUpdated, + createdById, + updatedById, + uri, + isSampleDataExtracted, + sampleDataSizeInMBs, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobDefinition o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .catalogId(o.getCatalogId()) + .jobType(o.getJobType()) + .isIncremental(o.getIsIncremental()) + .dataAssetKey(o.getDataAssetKey()) + .description(o.getDescription()) + .connectionKey(o.getConnectionKey()) + .internalVersion(o.getInternalVersion()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .uri(o.getUri()) + .isSampleDataExtracted(o.getIsSampleDataExtracted()) + .sampleDataSizeInMBs(o.getSampleDataSizeInMBs()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job definition resource that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * Type of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Specifies if the job definition is incremental or full. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + Boolean isIncremental; + + /** + * The key of the data asset for which the job is defined. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Detailed description of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The key of the default connection resource to be used for harvest, sampling, profiling jobs. + * This may be overridden in each job instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + /** + * Version of the job definition object. Used internally but can be visible to users. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("internalVersion") + String internalVersion; + + /** + * Lifecycle state of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the job definition was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the data asset. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created this job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated this job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * URI to the job definition instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Specify if sample data to be extracted as part of this harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + Boolean isSampleDataExtracted; + + /** + * Specify the sample data size in MB, specified as number of rows, for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + Integer sampleDataSizeInMBs; + + /** + * A map of maps that contains the properties which are specific to the job type. Each job type + * definition may define it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * job definitions have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionCollection.java new file mode 100644 index 00000000000..bc6bace4c38 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a job definition listing. Job definitions are resources that describe the scope and type of jobs (eg: harvest, profiling, sampling) that are defined by users in the system. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobDefinitionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobDefinitionCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobDefinitionCollection build() { + JobDefinitionCollection __instance__ = new JobDefinitionCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobDefinitionCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of job definitions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionPermissionsSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionPermissionsSummary.java new file mode 100644 index 00000000000..c691509b910 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionPermissionsSummary.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Permissions object for job definitions. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobDefinitionPermissionsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobDefinitionPermissionsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + private java.util.List userPermissions; + + public Builder userPermissions(java.util.List userPermissions) { + this.userPermissions = userPermissions; + this.__explicitlySet__.add("userPermissions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobDefinitionPermissionsSummary build() { + JobDefinitionPermissionsSummary __instance__ = + new JobDefinitionPermissionsSummary(jobDefinitionKey, userPermissions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobDefinitionPermissionsSummary o) { + Builder copiedBuilder = + jobDefinitionKey(o.getJobDefinitionKey()) + .userPermissions(o.getUserPermissions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The unique key of the parent job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + String jobDefinitionKey; + + /** + * An array of permissions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("userPermissions") + java.util.List userPermissions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionScope.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionScope.java new file mode 100644 index 00000000000..58d1dc0f79b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionScope.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Defines the rules or criteria based on which the scope for job definition is circumscribed. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobDefinitionScope.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobDefinitionScope { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("folderName") + private String folderName; + + public Builder folderName(String folderName) { + this.folderName = folderName; + this.__explicitlySet__.add("folderName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + private String entityName; + + public Builder entityName(String entityName) { + this.entityName = entityName; + this.__explicitlySet__.add("entityName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderNameFilter") + private String folderNameFilter; + + public Builder folderNameFilter(String folderNameFilter) { + this.folderNameFilter = folderNameFilter; + this.__explicitlySet__.add("folderNameFilter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityNameFilter") + private String entityNameFilter; + + public Builder entityNameFilter(String entityNameFilter) { + this.entityNameFilter = entityNameFilter; + this.__explicitlySet__.add("entityNameFilter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + private Boolean isSampleDataExtracted; + + public Builder isSampleDataExtracted(Boolean isSampleDataExtracted) { + this.isSampleDataExtracted = isSampleDataExtracted; + this.__explicitlySet__.add("isSampleDataExtracted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + private Integer sampleDataSizeInMBs; + + public Builder sampleDataSizeInMBs(Integer sampleDataSizeInMBs) { + this.sampleDataSizeInMBs = sampleDataSizeInMBs; + this.__explicitlySet__.add("sampleDataSizeInMBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobDefinitionScope build() { + JobDefinitionScope __instance__ = + new JobDefinitionScope( + folderName, + entityName, + folderNameFilter, + entityNameFilter, + isSampleDataExtracted, + sampleDataSizeInMBs); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobDefinitionScope o) { + Builder copiedBuilder = + folderName(o.getFolderName()) + .entityName(o.getEntityName()) + .folderNameFilter(o.getFolderNameFilter()) + .entityNameFilter(o.getEntityNameFilter()) + .isSampleDataExtracted(o.getIsSampleDataExtracted()) + .sampleDataSizeInMBs(o.getSampleDataSizeInMBs()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Name of the folder or schema for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderName") + String folderName; + + /** + * Name of the entity for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + String entityName; + + /** + * Filter rules with regular expression to specify folder names for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderNameFilter") + String folderNameFilter; + + /** + * Filter rules with regular expression to specify entity names for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityNameFilter") + String entityNameFilter; + + /** + * Specify if sample data to be extracted as part of this harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + Boolean isSampleDataExtracted; + + /** + * Specify the sample data size in MB, specified as number of rows, for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + Integer sampleDataSizeInMBs; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java new file mode 100644 index 00000000000..f0922315523 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobDefinitionSummary.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A list of job definition resources. Job definitions define the harvest scope and includes the list of objects + * to be harvested along with a schedule. The list of objects is usually specified through a combination of object + * type, regular expressions, or specific names of objects and a sample size for the data harvested. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobDefinitionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobDefinitionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + 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("isSampleDataExtracted") + private Boolean isSampleDataExtracted; + + public Builder isSampleDataExtracted(Boolean isSampleDataExtracted) { + this.isSampleDataExtracted = isSampleDataExtracted; + this.__explicitlySet__.add("isSampleDataExtracted"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobDefinitionSummary build() { + JobDefinitionSummary __instance__ = + new JobDefinitionSummary( + key, + displayName, + description, + catalogId, + uri, + jobType, + lifecycleState, + isSampleDataExtracted, + timeCreated); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobDefinitionSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .uri(o.getUri()) + .jobType(o.getJobType()) + .lifecycleState(o.getLifecycleState()) + .isSampleDataExtracted(o.getIsSampleDataExtracted()) + .timeCreated(o.getTimeCreated()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job definition resource that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * URI to the job definition instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * Type of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Lifecycle state of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Specify if sample data to be extracted as part of this harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + Boolean isSampleDataExtracted; + + /** + * The date and time the job definition was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecution.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecution.java new file mode 100644 index 00000000000..1fa4d8d34a0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecution.java @@ -0,0 +1,406 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A job execution is a unit of work being executed on behalf of a 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobExecution.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobExecution { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private String jobKey; + + public Builder jobKey(String jobKey) { + this.jobKey = jobKey; + this.__explicitlySet__.add("jobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subType") + private String subType; + + public Builder subType(String subType) { + this.subType = subType; + this.__explicitlySet__.add("subType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + private String parentKey; + + public Builder parentKey(String parentKey) { + this.parentKey = parentKey; + this.__explicitlySet__.add("parentKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + private String scheduleInstanceKey; + + public Builder scheduleInstanceKey(String scheduleInstanceKey) { + this.scheduleInstanceKey = scheduleInstanceKey; + this.__explicitlySet__.add("scheduleInstanceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private JobExecutionState lifecycleState; + + public Builder lifecycleState(JobExecutionState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("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("timeEnded") + private java.util.Date timeEnded; + + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + private String errorCode; + + public Builder errorCode(String errorCode) { + this.errorCode = errorCode; + this.__explicitlySet__.add("errorCode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + private String errorMessage; + + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + this.__explicitlySet__.add("errorMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("processKey") + private String processKey; + + public Builder processKey(String processKey) { + this.processKey = processKey; + this.__explicitlySet__.add("processKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalUrl") + private String externalUrl; + + public Builder externalUrl(String externalUrl) { + this.externalUrl = externalUrl; + this.__explicitlySet__.add("externalUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("eventKey") + private String eventKey; + + public Builder eventKey(String eventKey) { + this.eventKey = eventKey; + this.__explicitlySet__.add("eventKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataEntityKey") + private String dataEntityKey; + + public Builder dataEntityKey(String dataEntityKey) { + this.dataEntityKey = dataEntityKey; + this.__explicitlySet__.add("dataEntityKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedBy") + private String updatedBy; + + public Builder updatedBy(String updatedBy) { + this.updatedBy = updatedBy; + this.__explicitlySet__.add("updatedBy"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobExecution build() { + JobExecution __instance__ = + new JobExecution( + key, + jobKey, + jobType, + subType, + parentKey, + scheduleInstanceKey, + lifecycleState, + timeCreated, + timeStarted, + timeEnded, + errorCode, + errorMessage, + processKey, + externalUrl, + eventKey, + dataEntityKey, + createdById, + updatedBy, + uri, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobExecution o) { + Builder copiedBuilder = + key(o.getKey()) + .jobKey(o.getJobKey()) + .jobType(o.getJobType()) + .subType(o.getSubType()) + .parentKey(o.getParentKey()) + .scheduleInstanceKey(o.getScheduleInstanceKey()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeStarted(o.getTimeStarted()) + .timeEnded(o.getTimeEnded()) + .errorCode(o.getErrorCode()) + .errorMessage(o.getErrorMessage()) + .processKey(o.getProcessKey()) + .externalUrl(o.getExternalUrl()) + .eventKey(o.getEventKey()) + .dataEntityKey(o.getDataEntityKey()) + .createdById(o.getCreatedById()) + .updatedBy(o.getUpdatedBy()) + .uri(o.getUri()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job execution resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The unique key of the parent job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + String jobKey; + + /** + * Type of the job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Sub-type of this job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subType") + String subType; + + /** + * The unique key of the parent execution or null if this job execution has no parent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + String parentKey; + + /** + * The unique key of the triggering external scheduler resource or null if this job execution is not externally triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + String scheduleInstanceKey; + + /** + * Status of the job execution, such as running, paused, or completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + JobExecutionState lifecycleState; + + /** + * The date and time the job execution was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Time that job execution started. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + java.util.Date timeStarted; + + /** + * Time that the job execution ended or null if it hasn't yet completed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + java.util.Date timeEnded; + + /** + * Error code returned from the job execution or null if job is still running or didn't return an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorCode") + String errorCode; + + /** + * Error message returned from the job execution or null if job is still running or didn't return an error. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("errorMessage") + String errorMessage; + + /** + * Process identifier related to the job execution if the job is an external job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("processKey") + String processKey; + + /** + * If the job is an external process, then a URL of the job for accessing this resource and its status. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalUrl") + String externalUrl; + + /** + * An identifier used for log message correlation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("eventKey") + String eventKey; + + /** + * The key of the associated data entity resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataEntityKey") + String dataEntityKey; + + /** + * OCID of the user who created the job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated the job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedBy") + String updatedBy; + + /** + * URI to the job execution instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * A map of maps that contains the execution context properties which are specific to a job execution. Each job + * execution may define it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * job executions have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionCollection.java new file mode 100644 index 00000000000..8f3e1b3fc00 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a job executions listing. Job executions are execution instances of a scheduled 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobExecutionCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobExecutionCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobExecutionCollection build() { + JobExecutionCollection __instance__ = new JobExecutionCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobExecutionCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of job executions. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionState.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionState.java new file mode 100644 index 00000000000..957abec8155 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionState.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Common execution states for jobs in data catalog. + * CREATED - Job has been created but yet to start execution. It will transition to IN_PROGRESS when resources are available for execution. + * IN_PROGRESS - Job is currently executing. + * INACTIVE - Job has been paused by the worker. This could be due to resource contention or window management. + * FAILED - Job has failed due to errors during execution. + * SUCCEEDED - Job has successfully completed execution. + * CANCELED - Job has been aborted by the worker due to a user request. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum JobExecutionState { + Created("CREATED"), + InProgress("IN_PROGRESS"), + Inactive("INACTIVE"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceled("CANCELED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobExecutionState v : JobExecutionState.values()) { + map.put(v.getValue(), v); + } + } + + JobExecutionState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobExecutionState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid JobExecutionState: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionSummary.java new file mode 100644 index 00000000000..fd8d16053af --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobExecutionSummary.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A list of job executions. A job execution is a unit of work being executed on behalf of a 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobExecutionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobExecutionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + private String jobKey; + + public Builder jobKey(String jobKey) { + this.jobKey = jobKey; + this.__explicitlySet__.add("jobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + private String parentKey; + + public Builder parentKey(String parentKey) { + this.parentKey = parentKey; + this.__explicitlySet__.add("parentKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + private String scheduleInstanceKey; + + public Builder scheduleInstanceKey(String scheduleInstanceKey) { + this.scheduleInstanceKey = scheduleInstanceKey; + this.__explicitlySet__.add("scheduleInstanceKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private JobExecutionState lifecycleState; + + public Builder lifecycleState(JobExecutionState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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("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("timeEnded") + private java.util.Date timeEnded; + + public Builder timeEnded(java.util.Date timeEnded) { + this.timeEnded = timeEnded; + this.__explicitlySet__.add("timeEnded"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobExecutionSummary build() { + JobExecutionSummary __instance__ = + new JobExecutionSummary( + key, + jobKey, + jobType, + parentKey, + scheduleInstanceKey, + lifecycleState, + timeCreated, + timeStarted, + timeEnded, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobExecutionSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .jobKey(o.getJobKey()) + .jobType(o.getJobType()) + .parentKey(o.getParentKey()) + .scheduleInstanceKey(o.getScheduleInstanceKey()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeStarted(o.getTimeStarted()) + .timeEnded(o.getTimeEnded()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job execution resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The unique key of the parent job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobKey") + String jobKey; + + /** + * Type of the job execution. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * The unique key of the parent execution or null if this job execution has no parent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentKey") + String parentKey; + + /** + * The unique key of the triggering external scheduler resource or null if this job execution is not externally triggered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleInstanceKey") + String scheduleInstanceKey; + + /** + * Status of the job execution, such as running, paused, or completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + JobExecutionState lifecycleState; + + /** + * The date and time the job execution was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Time that job execution started. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + java.util.Date timeStarted; + + /** + * Time that the job execution ended or null if it hasn't yet completed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeEnded") + java.util.Date timeEnded; + + /** + * URI to the job execution instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLifecycleState.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLifecycleState.java new file mode 100644 index 00000000000..e81a9392700 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLifecycleState.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Lifecycle state for jobs. + * ACTIVE - The job is active and will execute based on it's schedule information. + * INACTIVE - The job is inactive and will not execute based on it's schedule until it is ACTIVE. + * EXPIRED - The job's schedule has expired and will not result in any further executions. This is a terminal state. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum JobLifecycleState { + Active("ACTIVE"), + Inactive("INACTIVE"), + Expired("EXPIRED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobLifecycleState v : JobLifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + JobLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid JobLifecycleState: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLog.java new file mode 100644 index 00000000000..0d4931759fa --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLog.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Job log details. A job log is an audit log record inserted during the lifecycle of a job execution instance. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobLog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobLog { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private String jobExecutionKey; + + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + 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("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("severity") + private String severity; + + public Builder severity(String severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logMessage") + private String logMessage; + + public Builder logMessage(String logMessage) { + this.logMessage = logMessage; + this.__explicitlySet__.add("logMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobLog build() { + JobLog __instance__ = + new JobLog( + key, + jobExecutionKey, + createdById, + updatedById, + timeUpdated, + timeCreated, + severity, + logMessage, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobLog o) { + Builder copiedBuilder = + key(o.getKey()) + .jobExecutionKey(o.getJobExecutionKey()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .timeUpdated(o.getTimeUpdated()) + .timeCreated(o.getTimeCreated()) + .severity(o.getSeverity()) + .logMessage(o.getLogMessage()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job log that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The unique key of the parent job execution for which the log resource was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + String jobExecutionKey; + + /** + * OCID of the user who created the log record for this job. Usually the executor of the job instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who created the log record for this job. Usually the executor of the job instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * Job log update time. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * The date and time the job log was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Severity level for this log. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + String severity; + + /** + * Message for this job log. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMessage") + String logMessage; + + /** + * URI to the job log instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogCollection.java new file mode 100644 index 00000000000..6b6c52665d3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a job logs Listing. A job log is an audit log record inserted during the lifecycle of a job execution instance. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobLogCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobLogCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobLogCollection build() { + JobLogCollection __instance__ = new JobLogCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobLogCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of Job logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogSummary.java new file mode 100644 index 00000000000..fd7b973d4c9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobLogSummary.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A list of job execution logs. + * A job log is an audit log record inserted during the lifecycle of a job execution instance. + * There can be one or more logs for an execution instance. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobLogSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + private String jobExecutionKey; + + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("severity") + private String severity; + + public Builder severity(String severity) { + this.severity = severity; + this.__explicitlySet__.add("severity"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logMessage") + private String logMessage; + + public Builder logMessage(String logMessage) { + this.logMessage = logMessage; + this.__explicitlySet__.add("logMessage"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobLogSummary build() { + JobLogSummary __instance__ = + new JobLogSummary(key, jobExecutionKey, uri, timeCreated, severity, logMessage); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobLogSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .jobExecutionKey(o.getJobExecutionKey()) + .uri(o.getUri()) + .timeCreated(o.getTimeCreated()) + .severity(o.getSeverity()) + .logMessage(o.getLogMessage()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job log that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The unique key of the parent job execution for which the log resource was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + String jobExecutionKey; + + /** + * URI to the job log instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * The date and time the job log was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Severity level for this log. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("severity") + String severity; + + /** + * Message for this job log. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logMessage") + String logMessage; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetric.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetric.java new file mode 100644 index 00000000000..3a95545f91f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetric.java @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A set of metrics are collected periodically to assess the state and performance characteristics of the execution + * instance of a job. The metrics are grouped based on their category and sub categories and aggregated based on + * their batch information. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobMetric.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobMetric { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("jobExecutionKey") + private String jobExecutionKey; + + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeInserted") + private java.util.Date timeInserted; + + public Builder timeInserted(java.util.Date timeInserted) { + this.timeInserted = timeInserted; + this.__explicitlySet__.add("timeInserted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + private String subCategory; + + public Builder subCategory(String subCategory) { + this.subCategory = subCategory; + this.__explicitlySet__.add("subCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("batchKey") + private String batchKey; + + public Builder batchKey(String batchKey) { + this.batchKey = batchKey; + this.__explicitlySet__.add("batchKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobMetric build() { + JobMetric __instance__ = + new JobMetric( + key, + description, + jobExecutionKey, + timeInserted, + category, + displayName, + subCategory, + unit, + value, + batchKey, + uri, + timeCreated, + timeUpdated, + createdById, + updatedById); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobMetric o) { + Builder copiedBuilder = + key(o.getKey()) + .description(o.getDescription()) + .jobExecutionKey(o.getJobExecutionKey()) + .timeInserted(o.getTimeInserted()) + .category(o.getCategory()) + .displayName(o.getDisplayName()) + .subCategory(o.getSubCategory()) + .unit(o.getUnit()) + .value(o.getValue()) + .batchKey(o.getBatchKey()) + .uri(o.getUri()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Key of the job metric that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Detailed description of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the parent job execution for which the job metric resource is being created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + String jobExecutionKey; + + /** + * The time the metric was logged or captured in the system where the job executed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeInserted") + java.util.Date timeInserted; + + /** + * Category of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("category") + String category; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Sub category of this metric under the category. Used for aggregating values. May be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + String subCategory; + + /** + * Unit of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + String unit; + + /** + * Value of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + String value; + + /** + * Batch key for grouping, may be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchKey") + String batchKey; + + /** + * URI to the job metric instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * The date and time the job metric was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that this metric was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created the metric for this job. Usually the executor of the job instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who created the metric for this job. Usually the executor of the job instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricCollection.java new file mode 100644 index 00000000000..5c3379d7190 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a job metrics listing. Job metrics are datum about a job execution in key value pairs. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = JobMetricCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobMetricCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobMetricCollection build() { + JobMetricCollection __instance__ = new JobMetricCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobMetricCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of job metrics. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricSummary.java new file mode 100644 index 00000000000..2fd93c58c79 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobMetricSummary.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Job metric summary. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobMetricSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobMetricSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("jobExecutionKey") + private String jobExecutionKey; + + public Builder jobExecutionKey(String jobExecutionKey) { + this.jobExecutionKey = jobExecutionKey; + this.__explicitlySet__.add("jobExecutionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("timeInserted") + private java.util.Date timeInserted; + + public Builder timeInserted(java.util.Date timeInserted) { + this.timeInserted = timeInserted; + this.__explicitlySet__.add("timeInserted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("category") + private String category; + + public Builder category(String category) { + this.category = category; + this.__explicitlySet__.add("category"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + private String subCategory; + + public Builder subCategory(String subCategory) { + this.subCategory = subCategory; + this.__explicitlySet__.add("subCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; + + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("batchKey") + private String batchKey; + + public Builder batchKey(String batchKey) { + this.batchKey = batchKey; + this.__explicitlySet__.add("batchKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobMetricSummary build() { + JobMetricSummary __instance__ = + new JobMetricSummary( + key, + description, + jobExecutionKey, + uri, + timeCreated, + timeInserted, + category, + displayName, + subCategory, + unit, + value, + batchKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobMetricSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .description(o.getDescription()) + .jobExecutionKey(o.getJobExecutionKey()) + .uri(o.getUri()) + .timeCreated(o.getTimeCreated()) + .timeInserted(o.getTimeInserted()) + .category(o.getCategory()) + .displayName(o.getDisplayName()) + .subCategory(o.getSubCategory()) + .unit(o.getUnit()) + .value(o.getValue()) + .batchKey(o.getBatchKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Key of the job metric that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Detailed description of the metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The unique key of the parent job execution for which the job metric resource was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobExecutionKey") + String jobExecutionKey; + + /** + * URI to the job metric instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * The date and time the job metric was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The time the metric was logged or captured in the system where the job executed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeInserted") + java.util.Date timeInserted; + + /** + * Category of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("category") + String category; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Sub category of this metric under the category. Used for aggregating values. May be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subCategory") + String subCategory; + + /** + * Unit of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + String unit; + + /** + * Value of this metric. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + String value; + + /** + * Batch key for grouping, may be null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("batchKey") + String batchKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobScheduleType.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobScheduleType.java new file mode 100644 index 00000000000..46435c4c44e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobScheduleType.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Type of job schedule. + * SCHEDULED - The job will execute at a later time based on a schedule. + * IMMEDIATE - The job will execute as soon as possible. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum JobScheduleType { + Scheduled("SCHEDULED"), + Immediate("IMMEDIATE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobScheduleType v : JobScheduleType.values()) { + map.put(v.getValue(), v); + } + } + + JobScheduleType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobScheduleType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid JobScheduleType: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java new file mode 100644 index 00000000000..7be3517a598 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobSummary.java @@ -0,0 +1,370 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details of a job. Jobs are scheduled instances of a job definition. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class JobSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + private String jobDefinitionKey; + + public Builder jobDefinitionKey(String jobDefinitionKey) { + this.jobDefinitionKey = jobDefinitionKey; + this.__explicitlySet__.add("jobDefinitionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private JobLifecycleState lifecycleState; + + public Builder lifecycleState(JobLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + private JobType jobType; + + public Builder jobType(JobType jobType) { + this.jobType = jobType; + this.__explicitlySet__.add("jobType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + private String scheduleType; + + public Builder scheduleType(String scheduleType) { + this.scheduleType = scheduleType; + this.__explicitlySet__.add("scheduleType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + private String scheduleCronExpression; + + public Builder scheduleCronExpression(String scheduleCronExpression) { + this.scheduleCronExpression = scheduleCronExpression; + this.__explicitlySet__.add("scheduleCronExpression"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + private java.util.Date timeScheduleBegin; + + public Builder timeScheduleBegin(java.util.Date timeScheduleBegin) { + this.timeScheduleBegin = timeScheduleBegin; + this.__explicitlySet__.add("timeScheduleBegin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executionCount") + private Integer executionCount; + + public Builder executionCount(Integer executionCount) { + this.executionCount = executionCount; + this.__explicitlySet__.add("executionCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestExecution") + private java.util.Date timeOfLatestExecution; + + public Builder timeOfLatestExecution(java.util.Date timeOfLatestExecution) { + this.timeOfLatestExecution = timeOfLatestExecution; + this.__explicitlySet__.add("timeOfLatestExecution"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executions") + private java.util.List executions; + + public Builder executions(java.util.List executions) { + this.executions = executions; + this.__explicitlySet__.add("executions"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public JobSummary build() { + JobSummary __instance__ = + new JobSummary( + key, + uri, + displayName, + catalogId, + jobDefinitionKey, + lifecycleState, + jobType, + scheduleType, + description, + timeCreated, + timeUpdated, + createdById, + updatedById, + scheduleCronExpression, + timeScheduleBegin, + executionCount, + timeOfLatestExecution, + executions); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(JobSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .uri(o.getUri()) + .displayName(o.getDisplayName()) + .catalogId(o.getCatalogId()) + .jobDefinitionKey(o.getJobDefinitionKey()) + .lifecycleState(o.getLifecycleState()) + .jobType(o.getJobType()) + .scheduleType(o.getScheduleType()) + .description(o.getDescription()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .scheduleCronExpression(o.getScheduleCronExpression()) + .timeScheduleBegin(o.getTimeScheduleBegin()) + .executionCount(o.getExecutionCount()) + .timeOfLatestExecution(o.getTimeOfLatestExecution()) + .executions(o.getExecutions()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * URI to the job instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * The unique key of the job definition resource that defined the scope of this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobDefinitionKey") + String jobDefinitionKey; + + /** + * Lifecycle state of the job, such as running, paused, or completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + JobLifecycleState lifecycleState; + + /** + * Type of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("jobType") + JobType jobType; + + /** + * Type of job schedule that is inferred from the scheduling properties. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleType") + String scheduleType; + + /** + * Detailed description of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The date and time the job was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Time that this job was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. + * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using + * special strings. For example, @hourly will run the job every hour. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + String scheduleCronExpression; + + /** + * Date that the schedule should be operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + java.util.Date timeScheduleBegin; + + /** + * The total number of executions for this job schedule. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executionCount") + Integer executionCount; + + /** + * The date and time of the most recent execution for this job, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeOfLatestExecution") + java.util.Date timeOfLatestExecution; + + /** + * Array of the executions summary associated with this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executions") + java.util.List executions; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java new file mode 100644 index 00000000000..ee446e5baaf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/JobType.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Type of job as described below. + * HARVEST - Harvest jobs are metadata crawlers that extract schema from data assets. + * PROFILING - Profiling jobs are data profilers that extract metrics about data like histograms, distribution, min, max, avg and so on. + * SAMPLING - Sampling jobs extract a small subset of data for profiling and viewing. + * PREVIEW - Preview jobs are metadata crawlers but allow users to filter and view metadata entities in data assets. + * IMPORT - Import jobs import metadata in data catalog repository from a data catalog exported file. + * EXPORT - Export jobs export data catalog metadata for imports into other data catalog repositories. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum JobType { + Harvest("HARVEST"), + Profiling("PROFILING"), + Sampling("SAMPLING"), + Preview("PREVIEW"), + Import("IMPORT"), + Export("EXPORT"), + Internal("INTERNAL"), + Purge("PURGE"), + Immediate("IMMEDIATE"), + Scheduled("SCHEDULED"), + ImmediateExecution("IMMEDIATE_EXECUTION"), + ScheduledExecution("SCHEDULED_EXECUTION"), + ScheduledExecutionInstance("SCHEDULED_EXECUTION_INSTANCE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobType v : JobType.values()) { + map.put(v.getValue(), v); + } + } + + JobType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid JobType: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LifecycleState.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LifecycleState.java new file mode 100644 index 00000000000..7e163c19cb7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/LifecycleState.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Common lifecycle states for resources in data catalog: + * CREATING - The resource is being created and may not be usable until the entire metadata is defined. + * UPDATING - The resource is being updated and may not be usable until all changes are commited. + * DELETING - The resource is being deleted and might require deep cleanup of children. + * ACTIVE - The resource is valid and available for access. + * INACTIVE - The resource might be incomplete in its definition or might have been made unavailable for + * administrative reasons. + * DELETED - The resource has been deleted and isn't available. + * FAILED - The resource is in a failed state due to validation or other errors. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Moving("MOVING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid LifecycleState: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ParseConnectionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ParseConnectionDetails.java new file mode 100644 index 00000000000..7a80fbee535 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ParseConnectionDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Parse connections from the connection metadata and oracle wallet file. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ParseConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ParseConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + private Connection connectionDetail; + + public Builder connectionDetail(Connection connectionDetail) { + this.connectionDetail = connectionDetail; + this.__explicitlySet__.add("connectionDetail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + private byte[] connectionPayload; + + public Builder connectionPayload(byte[] connectionPayload) { + this.connectionPayload = connectionPayload; + this.__explicitlySet__.add("connectionPayload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ParseConnectionDetails build() { + ParseConnectionDetails __instance__ = + new ParseConnectionDetails(connectionDetail, connectionPayload); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ParseConnectionDetails o) { + Builder copiedBuilder = + connectionDetail(o.getConnectionDetail()) + .connectionPayload(o.getConnectionPayload()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + Connection connectionDetail; + + /** + * The information used to parse the connection from the wallet file payload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + byte[] connectionPayload; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/PropertyDefinition.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/PropertyDefinition.java new file mode 100644 index 00000000000..072d6176108 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/PropertyDefinition.java @@ -0,0 +1,119 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details of a single type property. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PropertyDefinition.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class PropertyDefinition { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + 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("type") + private String type; + + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isUpdatable") + private Boolean isUpdatable; + + public Builder isUpdatable(Boolean isUpdatable) { + this.isUpdatable = isUpdatable; + this.__explicitlySet__.add("isUpdatable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PropertyDefinition build() { + PropertyDefinition __instance__ = + new PropertyDefinition(name, type, isRequired, isUpdatable); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PropertyDefinition o) { + Builder copiedBuilder = + name(o.getName()) + .type(o.getType()) + .isRequired(o.getIsRequired()) + .isUpdatable(o.getIsUpdatable()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Name of the property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * The properties value type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + String type; + + /** + * Whether instances of the type are required to set this property. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + Boolean isRequired; + + /** + * Indicates if this property value can be updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUpdatable") + Boolean isUpdatable; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchCriteria.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchCriteria.java new file mode 100644 index 00000000000..eb09448c1f3 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchCriteria.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Search Query object that allows complex search predicates that cannot be expressed through simple query params. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SearchCriteria.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class SearchCriteria { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("query") + private String query; + + public Builder query(String query) { + this.query = query; + this.__explicitlySet__.add("query"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SearchCriteria build() { + SearchCriteria __instance__ = new SearchCriteria(query); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SearchCriteria o) { + Builder copiedBuilder = query(o.getQuery()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Search query dsl that defines the query components including fields and predicates. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("query") + String query; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResult.java new file mode 100644 index 00000000000..1cbe3b4c0da --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResult.java @@ -0,0 +1,502 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * The search result object is the definition of an element that is returned as part of search. It contains basic + * information about the object such as key, name and description. The search result also contains the list of tags + * for each object along with other contextual information like the data asset root, folder, or entity parents. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SearchResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class SearchResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tagSummary") + private java.util.List tagSummary; + + public Builder tagSummary(java.util.List tagSummary) { + this.tagSummary = tagSummary; + this.__explicitlySet__.add("tagSummary"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("termSummary") + private java.util.List termSummary; + + public Builder termSummary(java.util.List termSummary) { + this.termSummary = termSummary; + this.__explicitlySet__.add("termSummary"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + private String typeName; + + public Builder typeName(String typeName) { + this.typeName = typeName; + this.__explicitlySet__.add("typeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalTypeName") + private String externalTypeName; + + public Builder externalTypeName(String externalTypeName) { + this.externalTypeName = externalTypeName; + this.__explicitlySet__.add("externalTypeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + private String externalDataType; + + public Builder externalDataType(String externalDataType) { + this.externalDataType = externalDataType; + this.__explicitlySet__.add("externalDataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetType") + private String dataAssetType; + + public Builder dataAssetType(String dataAssetType) { + this.dataAssetType = dataAssetType; + this.__explicitlySet__.add("dataAssetType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetName") + private String dataAssetName; + + public Builder dataAssetName(String dataAssetName) { + this.dataAssetName = dataAssetName; + this.__explicitlySet__.add("dataAssetName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderType") + private String folderType; + + public Builder folderType(String folderType) { + this.folderType = folderType; + this.__explicitlySet__.add("folderType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderName") + private String folderName; + + public Builder folderName(String folderName) { + this.folderName = folderName; + this.__explicitlySet__.add("folderName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entitykey") + private String entitykey; + + public Builder entitykey(String entitykey) { + this.entitykey = entitykey; + this.__explicitlySet__.add("entitykey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + private String entityName; + + public Builder entityName(String entityName) { + this.entityName = entityName; + this.__explicitlySet__.add("entityName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryName") + private String glossaryName; + + public Builder glossaryName(String glossaryName) { + this.glossaryName = glossaryName; + this.__explicitlySet__.add("glossaryName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermName") + private String parentTermName; + + public Builder parentTermName(String parentTermName) { + this.parentTermName = parentTermName; + this.__explicitlySet__.add("parentTermName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SearchResult build() { + SearchResult __instance__ = + new SearchResult( + key, + name, + description, + timeCreated, + timeUpdated, + tagSummary, + termSummary, + typeName, + externalTypeName, + externalDataType, + dataAssetKey, + dataAssetType, + dataAssetName, + folderKey, + folderType, + folderName, + entitykey, + entityType, + entityName, + glossaryKey, + glossaryName, + parentTermKey, + parentTermName, + createdById, + updatedById, + path); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SearchResult o) { + Builder copiedBuilder = + key(o.getKey()) + .name(o.getName()) + .description(o.getDescription()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .tagSummary(o.getTagSummary()) + .termSummary(o.getTermSummary()) + .typeName(o.getTypeName()) + .externalTypeName(o.getExternalTypeName()) + .externalDataType(o.getExternalDataType()) + .dataAssetKey(o.getDataAssetKey()) + .dataAssetType(o.getDataAssetType()) + .dataAssetName(o.getDataAssetName()) + .folderKey(o.getFolderKey()) + .folderType(o.getFolderType()) + .folderName(o.getFolderName()) + .entitykey(o.getEntitykey()) + .entityType(o.getEntityType()) + .entityName(o.getEntityName()) + .glossaryKey(o.getGlossaryKey()) + .glossaryName(o.getGlossaryName()) + .parentTermKey(o.getParentTermKey()) + .parentTermName(o.getParentTermName()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .path(o.getPath()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique key of the object returned as part of the search result. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Detailed description of the object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The date and time the result object was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The date and time the result object was updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * Array of the tags associated with this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("tagSummary") + java.util.List tagSummary; + + /** + * Array of the terms associated with this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("termSummary") + java.util.List termSummary; + + /** + * Name of the object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeName") + String typeName; + + /** + * Name of the external object type in the host data asset. For example, column, field, table, view, or file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalTypeName") + String externalTypeName; + + /** + * Data type of the object if the object is an attribute. Null otherwise. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + String externalDataType; + + /** + * Unique key of the data asset that is the root parent of this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Type name of the data asset. For example, Oracle, MySQL or Oracle Object Storage. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetType") + String dataAssetType; + + /** + * Name of the data asset that is the root parent of this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetName") + String dataAssetName; + + /** + * Unique key of the folder object if this object is a sub folder, entity, or attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Type name of the folder. For example, schema, directory, or topic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderType") + String folderType; + + /** + * Name of the parent folder object if this object is a sub folder, entity, or attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderName") + String folderName; + + /** + * Unique key of the entity object if this object is an attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entitykey") + String entitykey; + + /** + * Type name of the entity. For example, table, view, external table, file, or object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + String entityType; + + /** + * Name of the parent entity object if this object is an attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityName") + String entityName; + + /** + * Unique id of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * Name of the parent glossary if this object is a term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryName") + String glossaryName; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Name of the parent term. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermName") + String parentTermName; + + /** + * OCID of the user who created the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who updated the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * Absolute path of this resource, which could be a term, folder, entity etc, usually resolvable to this resource through a namespace hierarchy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResultCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResultCollection.java new file mode 100644 index 00000000000..627f1f5db82 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchResultCollection.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * The list of search result items matching the criteria returned from the search operation. Search errors and + * messages, if any , will be part of the standard error response. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SearchResultCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class SearchResultCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("count") + private Integer count; + + public Builder count(Integer count) { + this.count = count; + this.__explicitlySet__.add("count"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SearchResultCollection build() { + SearchResultCollection __instance__ = new SearchResultCollection(count, items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SearchResultCollection o) { + Builder copiedBuilder = count(o.getCount()).items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Total number of items returned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("count") + Integer count; + + /** + * Search result set. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTagSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTagSummary.java new file mode 100644 index 00000000000..341cc8bccc7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTagSummary.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Represents the association of an object to a term. Returned as part of search result. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SearchTagSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class SearchTagSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SearchTagSummary build() { + SearchTagSummary __instance__ = new SearchTagSummary(key, displayName); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SearchTagSummary o) { + Builder copiedBuilder = key(o.getKey()).displayName(o.getDisplayName()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique tag key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the tag that matches the term name. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTermSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTermSummary.java new file mode 100644 index 00000000000..1fdae2b2f1e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/SearchTermSummary.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a term associated with an object. This is a brief summary returned as part of the search result. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SearchTermSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class SearchTermSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("glossaryName") + private String glossaryName; + + public Builder glossaryName(String glossaryName) { + this.glossaryName = glossaryName; + this.__explicitlySet__.add("glossaryName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermName") + private String parentTermName; + + public Builder parentTermName(String parentTermName) { + this.parentTermName = parentTermName; + this.__explicitlySet__.add("parentTermName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SearchTermSummary build() { + SearchTermSummary __instance__ = + new SearchTermSummary( + key, + displayName, + glossaryKey, + glossaryName, + parentTermKey, + parentTermName); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SearchTermSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .glossaryKey(o.getGlossaryKey()) + .glossaryName(o.getGlossaryName()) + .parentTermKey(o.getParentTermKey()) + .parentTermName(o.getParentTermName()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique term key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Unique id of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * Name of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryName") + String glossaryName; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Name of the parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermName") + String parentTermName; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Term.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Term.java new file mode 100644 index 00000000000..a3c2b1f2f53 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Term.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Full term definition. A defined business term in a business glossary. As well as a term definition, simple format + * rules for attributes mapping to the term (for example, the expected data type and length restrictions) may be + * stated at the term level. Nesting of terms to support a hierarchy is supported by default. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Term.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Term { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + private Boolean isAllowedToHaveChildTerms; + + public Builder isAllowedToHaveChildTerms(Boolean isAllowedToHaveChildTerms) { + this.isAllowedToHaveChildTerms = isAllowedToHaveChildTerms; + this.__explicitlySet__.add("isAllowedToHaveChildTerms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + 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("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("createdById") + private String createdById; + + public Builder createdById(String createdById) { + this.createdById = createdById; + this.__explicitlySet__.add("createdById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + private String updatedById; + + public Builder updatedById(String updatedById) { + this.updatedById = updatedById; + this.__explicitlySet__.add("updatedById"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + private Integer associatedObjectCount; + + public Builder associatedObjectCount(Integer associatedObjectCount) { + this.associatedObjectCount = associatedObjectCount; + this.__explicitlySet__.add("associatedObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjects") + private java.util.List associatedObjects; + + public Builder associatedObjects(java.util.List associatedObjects) { + this.associatedObjects = associatedObjects; + this.__explicitlySet__.add("associatedObjects"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Term build() { + Term __instance__ = + new Term( + key, + displayName, + description, + glossaryKey, + parentTermKey, + isAllowedToHaveChildTerms, + path, + lifecycleState, + timeCreated, + timeUpdated, + createdById, + updatedById, + owner, + workflowStatus, + uri, + associatedObjectCount, + associatedObjects); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Term o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .glossaryKey(o.getGlossaryKey()) + .parentTermKey(o.getParentTermKey()) + .isAllowedToHaveChildTerms(o.getIsAllowedToHaveChildTerms()) + .path(o.getPath()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .createdById(o.getCreatedById()) + .updatedById(o.getUpdatedById()) + .owner(o.getOwner()) + .workflowStatus(o.getWorkflowStatus()) + .uri(o.getUri()) + .associatedObjectCount(o.getAssociatedObjectCount()) + .associatedObjects(o.getAssociatedObjects()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique term key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Indicates whether a term may contain child terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + Boolean isAllowedToHaveChildTerms; + + /** + * Absolute path of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * The current state of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the term was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The last time that any change was made to the term. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * OCID of the user who created the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("createdById") + String createdById; + + /** + * OCID of the user who modified the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("updatedById") + String updatedById; + + /** + * OCID of the user who is the owner of this business terminology. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + /** + * Status of the approval process workflow for this business term in the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * URI to the term instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * The number of objects tagged with this term + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + Integer associatedObjectCount; + + /** + * Array of objects associated to a term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjects") + java.util.List associatedObjects; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermAssociatedObject.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermAssociatedObject.java new file mode 100644 index 00000000000..8ffb23224de --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermAssociatedObject.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Projection of an object that is tagged to a term. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TermAssociatedObject.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermAssociatedObject { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermAssociatedObject build() { + TermAssociatedObject __instance__ = new TermAssociatedObject(key, name, uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermAssociatedObject o) { + Builder copiedBuilder = key(o.getKey()).name(o.getName()).uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Immutable key used to uniquely identify the associated object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * Name of the associated object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * URI of the associated object within the data catalog API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermCollection.java new file mode 100644 index 00000000000..26c8aeb090e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a terms listing. Terms are defined in business glossary and are used in tagging catalog objects. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TermCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermCollection build() { + TermCollection __instance__ = new TermCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationship.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationship.java new file mode 100644 index 00000000000..fe528cbb0a0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationship.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Full term relationship definition. Business term relationship between two terms in a business glossary. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TermRelationship.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermRelationship { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("relatedTermKey") + private String relatedTermKey; + + public Builder relatedTermKey(String relatedTermKey) { + this.relatedTermKey = relatedTermKey; + this.__explicitlySet__.add("relatedTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDisplayName") + private String relatedTermDisplayName; + + public Builder relatedTermDisplayName(String relatedTermDisplayName) { + this.relatedTermDisplayName = relatedTermDisplayName; + this.__explicitlySet__.add("relatedTermDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDescription") + private String relatedTermDescription; + + public Builder relatedTermDescription(String relatedTermDescription) { + this.relatedTermDescription = relatedTermDescription; + this.__explicitlySet__.add("relatedTermDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDisplayName") + private String parentTermDisplayName; + + public Builder parentTermDisplayName(String parentTermDisplayName) { + this.parentTermDisplayName = parentTermDisplayName; + this.__explicitlySet__.add("parentTermDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDescription") + private String parentTermDescription; + + public Builder parentTermDescription(String parentTermDescription) { + this.parentTermDescription = parentTermDescription; + this.__explicitlySet__.add("parentTermDescription"); + 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("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermRelationship build() { + TermRelationship __instance__ = + new TermRelationship( + key, + displayName, + description, + relatedTermKey, + relatedTermDisplayName, + relatedTermDescription, + uri, + parentTermKey, + parentTermDisplayName, + parentTermDescription, + timeCreated, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermRelationship o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .relatedTermKey(o.getRelatedTermKey()) + .relatedTermDisplayName(o.getRelatedTermDisplayName()) + .relatedTermDescription(o.getRelatedTermDescription()) + .uri(o.getUri()) + .parentTermKey(o.getParentTermKey()) + .parentTermDisplayName(o.getParentTermDisplayName()) + .parentTermDescription(o.getParentTermDescription()) + .timeCreated(o.getTimeCreated()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique term relationship key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information.This is the same as relationshipType for termRelationship + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term relationship usually defined at the time of creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermKey") + String relatedTermKey; + + /** + * Name of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDisplayName") + String relatedTermDisplayName; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDescription") + String relatedTermDescription; + + /** + * URI to the term relationship instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * This relationships parent term key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Name of the parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDisplayName") + String parentTermDisplayName; + + /** + * Description of the parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDescription") + String parentTermDescription; + + /** + * The date and time the term relationship was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * State of the term relationship. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipCollection.java new file mode 100644 index 00000000000..b27332614ee --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipCollection.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a terms relationship listing. Term relationships are associations between two terms in business glossary. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TermRelationshipCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermRelationshipCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermRelationshipCollection build() { + TermRelationshipCollection __instance__ = new TermRelationshipCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermRelationshipCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of term relationships. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipSummary.java new file mode 100644 index 00000000000..b21aebfe339 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermRelationshipSummary.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a term relationship. Business term relationship between two terms in a business glossary. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TermRelationshipSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermRelationshipSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("relatedTermKey") + private String relatedTermKey; + + public Builder relatedTermKey(String relatedTermKey) { + this.relatedTermKey = relatedTermKey; + this.__explicitlySet__.add("relatedTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDisplayName") + private String relatedTermDisplayName; + + public Builder relatedTermDisplayName(String relatedTermDisplayName) { + this.relatedTermDisplayName = relatedTermDisplayName; + this.__explicitlySet__.add("relatedTermDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDescription") + private String relatedTermDescription; + + public Builder relatedTermDescription(String relatedTermDescription) { + this.relatedTermDescription = relatedTermDescription; + this.__explicitlySet__.add("relatedTermDescription"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDisplayName") + private String parentTermDisplayName; + + public Builder parentTermDisplayName(String parentTermDisplayName) { + this.parentTermDisplayName = parentTermDisplayName; + this.__explicitlySet__.add("parentTermDisplayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDescription") + private String parentTermDescription; + + public Builder parentTermDescription(String parentTermDescription) { + this.parentTermDescription = parentTermDescription; + this.__explicitlySet__.add("parentTermDescription"); + 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("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermRelationshipSummary build() { + TermRelationshipSummary __instance__ = + new TermRelationshipSummary( + key, + displayName, + description, + relatedTermKey, + relatedTermDisplayName, + relatedTermDescription, + uri, + parentTermKey, + parentTermDisplayName, + parentTermDescription, + timeCreated, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermRelationshipSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .relatedTermKey(o.getRelatedTermKey()) + .relatedTermDisplayName(o.getRelatedTermDisplayName()) + .relatedTermDescription(o.getRelatedTermDescription()) + .uri(o.getUri()) + .parentTermKey(o.getParentTermKey()) + .parentTermDisplayName(o.getParentTermDisplayName()) + .parentTermDescription(o.getParentTermDescription()) + .timeCreated(o.getTimeCreated()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique term relationship key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information.This is the same as relationshipType for termRelationship + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term relationship usually defined at the time of creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermKey") + String relatedTermKey; + + /** + * Name of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDisplayName") + String relatedTermDisplayName; + + /** + * Description of the related term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("relatedTermDescription") + String relatedTermDescription; + + /** + * URI to the term relationship instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * This relationships parent term key. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Name of the parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDisplayName") + String parentTermDisplayName; + + /** + * Description of the parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermDescription") + String parentTermDescription; + + /** + * The date and time the term relationship was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * State of the term relationship. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermSummary.java new file mode 100644 index 00000000000..c85b58b9b7e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermSummary.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary of a term. A defined business term in a business glossary. As well as a term definition, simple format + * rules for attributes mapping to the term (for example, the expected data type and length restrictions) may be + * stated at the term level. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TermSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TermSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + 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("glossaryKey") + private String glossaryKey; + + public Builder glossaryKey(String glossaryKey) { + this.glossaryKey = glossaryKey; + this.__explicitlySet__.add("glossaryKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + private Boolean isAllowedToHaveChildTerms; + + public Builder isAllowedToHaveChildTerms(Boolean isAllowedToHaveChildTerms) { + this.isAllowedToHaveChildTerms = isAllowedToHaveChildTerms; + this.__explicitlySet__.add("isAllowedToHaveChildTerms"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("path") + private String path; + + public Builder path(String path) { + this.path = path; + this.__explicitlySet__.add("path"); + 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("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + private Integer associatedObjectCount; + + public Builder associatedObjectCount(Integer associatedObjectCount) { + this.associatedObjectCount = associatedObjectCount; + this.__explicitlySet__.add("associatedObjectCount"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TermSummary build() { + TermSummary __instance__ = + new TermSummary( + key, + displayName, + description, + glossaryKey, + uri, + parentTermKey, + isAllowedToHaveChildTerms, + path, + timeCreated, + workflowStatus, + associatedObjectCount, + lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TermSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .displayName(o.getDisplayName()) + .description(o.getDescription()) + .glossaryKey(o.getGlossaryKey()) + .uri(o.getUri()) + .parentTermKey(o.getParentTermKey()) + .isAllowedToHaveChildTerms(o.getIsAllowedToHaveChildTerms()) + .path(o.getPath()) + .timeCreated(o.getTimeCreated()) + .workflowStatus(o.getWorkflowStatus()) + .associatedObjectCount(o.getAssociatedObjectCount()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique term key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Unique id of the parent glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("glossaryKey") + String glossaryKey; + + /** + * URI to the term instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * Indicates whether a term may contain child terms. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isAllowedToHaveChildTerms") + Boolean isAllowedToHaveChildTerms; + + /** + * Absolute path of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("path") + String path; + + /** + * The date and time the term was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * Status of the approval process workflow for this business term in the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + /** + * The number of objects tagged with this term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("associatedObjectCount") + Integer associatedObjectCount; + + /** + * State of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermWorkflowStatus.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermWorkflowStatus.java new file mode 100644 index 00000000000..5857bedf0d4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TermWorkflowStatus.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A term workflow is a sequence of steps or tasks usually done by a data steward as part of the governance lifecycle. + * Business terms cannot be used for tagging unless they are APPROVED by the busines term owner (usually a data steward). + * By default, most terms, when created, are in the NEW status unless specified otherwise. + * NEW - This is the default workflow status when a term is newly created. The owner can override this status during the creation. + * APPROVED - This term is ready for use. It can be used to tag data assets, data entities, attributes, and other taggable resources. + * UNDER_REVIEW - The term is currently under review and cannot be used until it is in APPROVED status. + * ESCALATED - The review of this term is escalated to fast track for use in tagging. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public enum TermWorkflowStatus { + New("NEW"), + Approved("APPROVED"), + UnderReview("UNDER_REVIEW"), + Escalated("ESCALATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TermWorkflowStatus v : TermWorkflowStatus.values()) { + map.put(v.getValue(), v); + } + } + + TermWorkflowStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TermWorkflowStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid TermWorkflowStatus: " + key); + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Type.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Type.java new file mode 100644 index 00000000000..a949363af83 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/Type.java @@ -0,0 +1,279 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Full data catalog type definition. Fully defines a type of the data catalog. All types are statically defined + * in the system and are immutable. It isn't possible to create new types or update existing types via the API. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Type.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Type { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties( + java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + 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("isInternal") + private Boolean isInternal; + + public Builder isInternal(Boolean isInternal) { + this.isInternal = isInternal; + this.__explicitlySet__.add("isInternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isTag") + private Boolean isTag; + + public Builder isTag(Boolean isTag) { + this.isTag = isTag; + this.__explicitlySet__.add("isTag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isApproved") + private Boolean isApproved; + + public Builder isApproved(Boolean isApproved) { + this.isApproved = isApproved; + this.__explicitlySet__.add("isApproved"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeCategory") + private String typeCategory; + + public Builder typeCategory(String typeCategory) { + this.typeCategory = typeCategory; + this.__explicitlySet__.add("typeCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalTypeName") + private String externalTypeName; + + public Builder externalTypeName(String externalTypeName) { + this.externalTypeName = externalTypeName; + this.__explicitlySet__.add("externalTypeName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Type build() { + Type __instance__ = + new Type( + key, + name, + description, + catalogId, + properties, + lifecycleState, + isInternal, + isTag, + isApproved, + typeCategory, + externalTypeName, + uri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Type o) { + Builder copiedBuilder = + key(o.getKey()) + .name(o.getName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .properties(o.getProperties()) + .lifecycleState(o.getLifecycleState()) + .isInternal(o.getIsInternal()) + .isTag(o.getIsTag()) + .isApproved(o.getIsApproved()) + .typeCategory(o.getTypeCategory()) + .externalTypeName(o.getExternalTypeName()) + .uri(o.getUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique type key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The immutable name of the type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Detailed description of the type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * A map of arrays which defines the type specific properties, both required and optional. The map keys are + * category names and the values are arrays contiaing all property details. Every property is contained inside + * of a category. Most types have required properties within the \"default\" category. + * Example: + * `{ + * \"properties\": { + * \"default\": { + * \"attributes:\": [ + * { + * \"name\": \"host\", + * \"type\": \"string\", + * \"isRequired\": true, + * \"isUpdatable\": false + * }, + * ... + * ] + * } + * } + * }` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * The current state of the type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Indicates whether the type is internal, making it unavailable for use by metadata elements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isInternal") + Boolean isInternal; + + /** + * Indicates whether the type can be used for tagging metadata elements. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isTag") + Boolean isTag; + + /** + * Indicates whether the type is approved for use as a classifying object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isApproved") + Boolean isApproved; + + /** + * Indicates the category this type belongs to. For instance, data assets, connections. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeCategory") + String typeCategory; + + /** + * Mapping type equivalence in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalTypeName") + String externalTypeName; + + /** + * URI to the type instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeCollection.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeCollection.java new file mode 100644 index 00000000000..bece1893113 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeCollection.java @@ -0,0 +1,68 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Results of a types listing. Types define the basic type of catalog objects and are immutable. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TypeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TypeCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TypeCollection build() { + TypeCollection __instance__ = new TypeCollection(items); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TypeCollection o) { + Builder copiedBuilder = items(o.getItems()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Collection of types. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + java.util.List items; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeSummary.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeSummary.java new file mode 100644 index 00000000000..d70bb569f3e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/TypeSummary.java @@ -0,0 +1,168 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Summary data catalog type information. All types are statically defined in the system and are immutable. + * It isn't possible to create new types or update existing types via the API. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TypeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class TypeSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("key") + private String key; + + public Builder key(String key) { + this.key = key; + this.__explicitlySet__.add("key"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + private String catalogId; + + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + this.__explicitlySet__.add("catalogId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("typeCategory") + private String typeCategory; + + public Builder typeCategory(String typeCategory) { + this.typeCategory = typeCategory; + this.__explicitlySet__.add("typeCategory"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("uri") + private String uri; + + public Builder uri(String uri) { + this.uri = uri; + this.__explicitlySet__.add("uri"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TypeSummary build() { + TypeSummary __instance__ = + new TypeSummary( + key, name, description, catalogId, typeCategory, uri, lifecycleState); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TypeSummary o) { + Builder copiedBuilder = + key(o.getKey()) + .name(o.getName()) + .description(o.getDescription()) + .catalogId(o.getCatalogId()) + .typeCategory(o.getTypeCategory()) + .uri(o.getUri()) + .lifecycleState(o.getLifecycleState()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Unique type key that is immutable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("key") + String key; + + /** + * The immutable name of the type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * Detailed description of the type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The data catalog's OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("catalogId") + String catalogId; + + /** + * Indicates the category this type belongs to. For instance, data assets, connections. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("typeCategory") + String typeCategory; + + /** + * URI to the type instance in the API. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("uri") + String uri; + + /** + * State of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateAttributeDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateAttributeDetails.java new file mode 100644 index 00000000000..4d7912a6f10 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateAttributeDetails.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in attribute update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateAttributeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateAttributeDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + private String externalDataType; + + public Builder externalDataType(String externalDataType) { + this.externalDataType = externalDataType; + this.__explicitlySet__.add("externalDataType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + private Boolean isIncrementalData; + + public Builder isIncrementalData(Boolean isIncrementalData) { + this.isIncrementalData = isIncrementalData; + this.__explicitlySet__.add("isIncrementalData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + private Boolean isNullable; + + public Builder isNullable(Boolean isNullable) { + this.isNullable = isNullable; + this.__explicitlySet__.add("isNullable"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("length") + private Long length; + + public Builder length(Long length) { + this.length = length; + this.__explicitlySet__.add("length"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("position") + private Integer position; + + public Builder position(Integer position) { + this.position = position; + this.__explicitlySet__.add("position"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("precision") + private Integer precision; + + public Builder precision(Integer precision) { + this.precision = precision; + this.__explicitlySet__.add("precision"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Integer scale; + + public Builder scale(Integer scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateAttributeDetails build() { + UpdateAttributeDetails __instance__ = + new UpdateAttributeDetails( + displayName, + description, + externalDataType, + isIncrementalData, + isNullable, + length, + position, + precision, + scale, + timeExternal, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateAttributeDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .externalDataType(o.getExternalDataType()) + .isIncrementalData(o.getIsIncrementalData()) + .isNullable(o.getIsNullable()) + .length(o.getLength()) + .position(o.getPosition()) + .precision(o.getPrecision()) + .scale(o.getScale()) + .timeExternal(o.getTimeExternal()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the attribute. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Data type of the attribute as defined in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDataType") + String externalDataType; + + /** + * Property that identifies if this attribute can be used as a watermark to extract incremental data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncrementalData") + Boolean isIncrementalData; + + /** + * Property that identifies if this attribute can be assigned nullable values. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isNullable") + Boolean isNullable; + + /** + * Max allowed length of the attribute value. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("length") + Long length; + + /** + * Position of the attribute in the record definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("position") + Integer position; + + /** + * Precision of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("precision") + Integer precision; + + /** + * Scale of the attribute value usually applies to float data type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + Integer scale; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * A map of maps that contains the properties which are specific to the attribute type. Each attribute type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * attributes have required properties within the \"default\" category. To determine the set of required and + * optional properties for an Attribute type, a query can be done on '/types?type=attribute' which returns a + * collection of all attribute types. The appropriate attribute type, which will include definitions of all + * of it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateCatalogDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateCatalogDetails.java new file mode 100644 index 00000000000..40ade886f84 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateCatalogDetails.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * The information to be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateCatalogDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateCatalogDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateCatalogDetails build() { + UpdateCatalogDetails __instance__ = + new UpdateCatalogDetails(displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateCatalogDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Data catalog identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateConnectionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateConnectionDetails.java new file mode 100644 index 00000000000..a74d061a6be --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateConnectionDetails.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in connection update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @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("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("encProperties") + private java.util.Map> encProperties; + + public Builder encProperties( + java.util.Map> encProperties) { + this.encProperties = encProperties; + this.__explicitlySet__.add("encProperties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + private Boolean isDefault; + + public Builder isDefault(Boolean isDefault) { + this.isDefault = isDefault; + this.__explicitlySet__.add("isDefault"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateConnectionDetails build() { + UpdateConnectionDetails __instance__ = + new UpdateConnectionDetails( + description, displayName, properties, encProperties, isDefault); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateConnectionDetails o) { + Builder copiedBuilder = + description(o.getDescription()) + .displayName(o.getDisplayName()) + .properties(o.getProperties()) + .encProperties(o.getEncProperties()) + .isDefault(o.getIsDefault()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A description of the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * A map of maps that contains the properties which are specific to the connection type. Each connection type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * connections have required properties within the \"default\" category. To determine the set of optional and + * required properties for a connection type, a query can be done on '/types?type=connection' that returns a + * collection of all connection types. The appropriate connection type, which will include definitions of all + * of it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"username\": \"user1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * A map of maps that contains the encrypted values for sensitive properties which are specific to the + * connection type. Each connection type definition defines it's set of required and optional properties. + * The map keys are category names and the values are maps of property name to property value. Every property is + * contained inside of a category. Most connections have required properties within the \"default\" category. + * To determine the set of optional and required properties for a connection type, a query can be done + * on '/types?type=connection' that returns a collection of all connection types. The appropriate connection + * type, which will include definitions of all of it's properties, can be identified from this collection. + * Example: `{\"encProperties\": { \"default\": { \"password\": \"pwd\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("encProperties") + java.util.Map> encProperties; + + /** + * Indicates whether this connection is the default connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefault") + Boolean isDefault; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateDataAssetDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateDataAssetDetails.java new file mode 100644 index 00000000000..e7550105762 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateDataAssetDetails.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in data asset update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDataAssetDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateDataAssetDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDataAssetDetails build() { + UpdateDataAssetDetails __instance__ = + new UpdateDataAssetDetails(displayName, description, properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDataAssetDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the data asset. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A map of maps that contains the properties which are specific to the asset type. Each data asset type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * data assets have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateEntityDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateEntityDetails.java new file mode 100644 index 00000000000..d72242efc67 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateEntityDetails.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in entity update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateEntityDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateEntityDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + private Boolean isLogical; + + public Builder isLogical(Boolean isLogical) { + this.isLogical = isLogical; + this.__explicitlySet__.add("isLogical"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + private Boolean isPartition; + + public Builder isPartition(Boolean isPartition) { + this.isPartition = isPartition; + this.__explicitlySet__.add("isPartition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + private String folderKey; + + public Builder folderKey(String folderKey) { + this.folderKey = folderKey; + this.__explicitlySet__.add("folderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateEntityDetails build() { + UpdateEntityDetails __instance__ = + new UpdateEntityDetails( + displayName, + description, + timeExternal, + isLogical, + isPartition, + folderKey, + harvestStatus, + lastJobKey, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateEntityDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .timeExternal(o.getTimeExternal()) + .isLogical(o.getIsLogical()) + .isPartition(o.getIsPartition()) + .folderKey(o.getFolderKey()) + .harvestStatus(o.getHarvestStatus()) + .lastJobKey(o.getLastJobKey()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a data entity. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Last modified timestamp of the object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * Property to indicate if the object is a physical materialized object or virtual. For example, View. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isLogical") + Boolean isLogical; + + /** + * Property to indicate if the object is a sub object of a parent physical object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isPartition") + Boolean isPartition; + + /** + * Key of the associated folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("folderKey") + String folderKey; + + /** + * Status of the object as updated by the harvest process. When an entity object is created, it's harvest status + * will indicate if the entity's metadata has been fully harvested or not. The harvest process can perform + * shallow harvesting to allow users to browse the metadata and can on-demand deep harvest on any object + * This requires a harvest status indicator for catalog objects. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + /** + * Key of the last harvest process to update this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + /** + * A map of maps that contains the properties which are specific to the entity type. Each entity type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * entities have required properties within the \"default\" category. To determine the set of required and + * optional properties for an entity type, a query can be done on '/types?type=dataEntity' that returns a + * collection of all entity types. The appropriate entity type, which includes definitions of all of + * it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateFolderDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateFolderDetails.java new file mode 100644 index 00000000000..871d315acab --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateFolderDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in folder update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateFolderDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateFolderDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + private String parentFolderKey; + + public Builder parentFolderKey(String parentFolderKey) { + this.parentFolderKey = parentFolderKey; + this.__explicitlySet__.add("parentFolderKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + private java.util.Date timeExternal; + + public Builder timeExternal(java.util.Date timeExternal) { + this.timeExternal = timeExternal; + this.__explicitlySet__.add("timeExternal"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + private HarvestStatus harvestStatus; + + public Builder harvestStatus(HarvestStatus harvestStatus) { + this.harvestStatus = harvestStatus; + this.__explicitlySet__.add("harvestStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + private String lastJobKey; + + public Builder lastJobKey(String lastJobKey) { + this.lastJobKey = lastJobKey; + this.__explicitlySet__.add("lastJobKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateFolderDetails build() { + UpdateFolderDetails __instance__ = + new UpdateFolderDetails( + displayName, + description, + parentFolderKey, + properties, + timeExternal, + harvestStatus, + lastJobKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateFolderDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .parentFolderKey(o.getParentFolderKey()) + .properties(o.getProperties()) + .timeExternal(o.getTimeExternal()) + .harvestStatus(o.getHarvestStatus()) + .lastJobKey(o.getLastJobKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of a folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The key of the containing folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentFolderKey") + String parentFolderKey; + + /** + * A map of maps that contains the properties which are specific to the folder type. Each folder type + * definition defines it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * folders have required properties within the \"default\" category. To determine the set of optional and + * required properties for a folder type, a query can be done on '/types?type=folder' that returns a + * collection of all folder types. The appropriate folder type, which includes definitions of all of + * it's properties, can be identified from this collection. + * Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + /** + * Last modified timestamp of this object in the external system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeExternal") + java.util.Date timeExternal; + + /** + * Harvest status of the folder. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("harvestStatus") + HarvestStatus harvestStatus; + + /** + * The key of the last harvest process to update the metadata of this object. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastJobKey") + String lastJobKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateGlossaryDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateGlossaryDetails.java new file mode 100644 index 00000000000..c8963928015 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateGlossaryDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in glossary update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateGlossaryDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateGlossaryDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateGlossaryDetails build() { + UpdateGlossaryDetails __instance__ = + new UpdateGlossaryDetails(displayName, description, owner, workflowStatus); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateGlossaryDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .owner(o.getOwner()) + .workflowStatus(o.getWorkflowStatus()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * OCID of the user who is the owner of the glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + /** + * Status of the approval process workflow for this business glossary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java new file mode 100644 index 00000000000..2418034fd2c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDefinitionDetails.java @@ -0,0 +1,198 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Update information for a job definition resource. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateJobDefinitionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateJobDefinitionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + private Boolean isIncremental; + + public Builder isIncremental(Boolean isIncremental) { + this.isIncremental = isIncremental; + this.__explicitlySet__.add("isIncremental"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + 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("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + private Boolean isSampleDataExtracted; + + public Builder isSampleDataExtracted(Boolean isSampleDataExtracted) { + this.isSampleDataExtracted = isSampleDataExtracted; + this.__explicitlySet__.add("isSampleDataExtracted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + private Integer sampleDataSizeInMBs; + + public Builder sampleDataSizeInMBs(Integer sampleDataSizeInMBs) { + this.sampleDataSizeInMBs = sampleDataSizeInMBs; + this.__explicitlySet__.add("sampleDataSizeInMBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("properties") + private java.util.Map> properties; + + public Builder properties(java.util.Map> properties) { + this.properties = properties; + this.__explicitlySet__.add("properties"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateJobDefinitionDetails build() { + UpdateJobDefinitionDetails __instance__ = + new UpdateJobDefinitionDetails( + displayName, + isIncremental, + dataAssetKey, + description, + connectionKey, + isSampleDataExtracted, + sampleDataSizeInMBs, + properties); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateJobDefinitionDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .isIncremental(o.getIsIncremental()) + .dataAssetKey(o.getDataAssetKey()) + .description(o.getDescription()) + .connectionKey(o.getConnectionKey()) + .isSampleDataExtracted(o.getIsSampleDataExtracted()) + .sampleDataSizeInMBs(o.getSampleDataSizeInMBs()) + .properties(o.getProperties()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Specifies if the job definition is incremental or full. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isIncremental") + Boolean isIncremental; + + /** + * The key of the data asset for which the job is defined. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + String dataAssetKey; + + /** + * Detailed description of the job definition. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * The key of the connection resource to be used for harvest, sampling, profiling jobs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + /** + * Specify if sample data to be extracted as part of this harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isSampleDataExtracted") + Boolean isSampleDataExtracted; + + /** + * Specify the sample data size in MB, specified as number of rows, for this metadata harvest. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sampleDataSizeInMBs") + Integer sampleDataSizeInMBs; + + /** + * A map of maps that contains the properties which are specific to the job type. Each job type + * definition may define it's set of required and optional properties. The map keys are category names and the + * values are maps of property name to property value. Every property is contained inside of a category. Most + * job definitions have required properties within the \"default\" category. + * Example: `{\"properties\": { \"default\": { \"host\": \"host1\", \"port\": \"1521\", \"database\": \"orcl\"}}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("properties") + java.util.Map> properties; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java new file mode 100644 index 00000000000..01a318a7317 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateJobDetails.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Job properties that can be updated. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateJobDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateJobDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + private String scheduleCronExpression; + + public Builder scheduleCronExpression(String scheduleCronExpression) { + this.scheduleCronExpression = scheduleCronExpression; + this.__explicitlySet__.add("scheduleCronExpression"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + private java.util.Date timeScheduleBegin; + + public Builder timeScheduleBegin(java.util.Date timeScheduleBegin) { + this.timeScheduleBegin = timeScheduleBegin; + this.__explicitlySet__.add("timeScheduleBegin"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + private java.util.Date timeScheduleEnd; + + public Builder timeScheduleEnd(java.util.Date timeScheduleEnd) { + this.timeScheduleEnd = timeScheduleEnd; + this.__explicitlySet__.add("timeScheduleEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + private String connectionKey; + + public Builder connectionKey(String connectionKey) { + this.connectionKey = connectionKey; + this.__explicitlySet__.add("connectionKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateJobDetails build() { + UpdateJobDetails __instance__ = + new UpdateJobDetails( + displayName, + description, + scheduleCronExpression, + timeScheduleBegin, + timeScheduleEnd, + connectionKey); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateJobDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .scheduleCronExpression(o.getScheduleCronExpression()) + .timeScheduleBegin(o.getTimeScheduleBegin()) + .timeScheduleEnd(o.getTimeScheduleEnd()) + .connectionKey(o.getConnectionKey()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. + * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using + * special strings. For example, @hourly will run the job every hour. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scheduleCronExpression") + String scheduleCronExpression; + + /** + * Date that the schedule should be operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleBegin") + java.util.Date timeScheduleBegin; + + /** + * Date that the schedule should end from being operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduleEnd") + java.util.Date timeScheduleEnd; + + /** + * The key of the connection resource that is used for the harvest by this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionKey") + String connectionKey; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermDetails.java new file mode 100644 index 00000000000..c47b06f3b1d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in term update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateTermDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateTermDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + private String parentTermKey; + + public Builder parentTermKey(String parentTermKey) { + this.parentTermKey = parentTermKey; + this.__explicitlySet__.add("parentTermKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + private TermWorkflowStatus workflowStatus; + + public Builder workflowStatus(TermWorkflowStatus workflowStatus) { + this.workflowStatus = workflowStatus; + this.__explicitlySet__.add("workflowStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateTermDetails build() { + UpdateTermDetails __instance__ = + new UpdateTermDetails( + displayName, description, parentTermKey, owner, workflowStatus); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateTermDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .description(o.getDescription()) + .parentTermKey(o.getParentTermKey()) + .owner(o.getOwner()) + .workflowStatus(o.getWorkflowStatus()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * This terms parent term key. Will be null if the term has no parent term. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parentTermKey") + String parentTermKey; + + /** + * OCID of the user who is the owner of this business terminology. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("owner") + String owner; + + /** + * Status of the approval process workflow for this business term in the glossary + **/ + @com.fasterxml.jackson.annotation.JsonProperty("workflowStatus") + TermWorkflowStatus workflowStatus; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermRelationshipDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermRelationshipDetails.java new file mode 100644 index 00000000000..416a8cb7ba8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UpdateTermRelationshipDetails.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Properties used in term relationship update operations. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateTermRelationshipDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateTermRelationshipDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateTermRelationshipDetails build() { + UpdateTermRelationshipDetails __instance__ = + new UpdateTermRelationshipDetails(displayName, description); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateTermRelationshipDetails o) { + Builder copiedBuilder = displayName(o.getDisplayName()).description(o.getDescription()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A user-friendly display name. Is changeable. The combination of 'displayName' and 'parentTermKey' + * must be unique. Avoid entering confidential information. This is the same as 'relationshipType' for 'termRelationship'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Detailed description of the term relationship usually defined at the time of creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UploadCredentialsDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UploadCredentialsDetails.java new file mode 100644 index 00000000000..d5e4e76c541 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/UploadCredentialsDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Upload credential file and connection 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UploadCredentialsDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UploadCredentialsDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + private UpdateConnectionDetails connectionDetail; + + public Builder connectionDetail(UpdateConnectionDetails connectionDetail) { + this.connectionDetail = connectionDetail; + this.__explicitlySet__.add("connectionDetail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("credentialPayload") + private byte[] credentialPayload; + + public Builder credentialPayload(byte[] credentialPayload) { + this.credentialPayload = credentialPayload; + this.__explicitlySet__.add("credentialPayload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UploadCredentialsDetails build() { + UploadCredentialsDetails __instance__ = + new UploadCredentialsDetails(connectionDetail, credentialPayload); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UploadCredentialsDetails o) { + Builder copiedBuilder = + connectionDetail(o.getConnectionDetail()) + .credentialPayload(o.getCredentialPayload()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + UpdateConnectionDetails connectionDetail; + + /** + * Information used in updating connection credentials. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialPayload") + byte[] credentialPayload; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionDetails.java new file mode 100644 index 00000000000..bbdde1fbc7f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionDetails.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Validate connection from the connection metadata or oracle wallet file. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateConnectionDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + private CreateConnectionDetails connectionDetail; + + public Builder connectionDetail(CreateConnectionDetails connectionDetail) { + this.connectionDetail = connectionDetail; + this.__explicitlySet__.add("connectionDetail"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + private byte[] connectionPayload; + + public Builder connectionPayload(byte[] connectionPayload) { + this.connectionPayload = connectionPayload; + this.__explicitlySet__.add("connectionPayload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateConnectionDetails build() { + ValidateConnectionDetails __instance__ = + new ValidateConnectionDetails(connectionDetail, connectionPayload); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateConnectionDetails o) { + Builder copiedBuilder = + connectionDetail(o.getConnectionDetail()) + .connectionPayload(o.getConnectionPayload()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionDetail") + CreateConnectionDetails connectionDetail; + + /** + * The information used to validate the connection. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionPayload") + byte[] connectionPayload; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionResult.java new file mode 100644 index 00000000000..bacd1c40a27 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ValidateConnectionResult.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Details regarding the validation of a connection resource. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ValidateConnectionResult.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ValidateConnectionResult { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("status") + private ConnectionResult status; + + public Builder status(ConnectionResult status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ValidateConnectionResult build() { + ValidateConnectionResult __instance__ = new ValidateConnectionResult(message, status); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ValidateConnectionResult o) { + Builder copiedBuilder = message(o.getMessage()).status(o.getStatus()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The message from the connection validation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + String message; + + /** + * The status returned from the connection validation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + ConnectionResult status; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequest.java new file mode 100644 index 00000000000..79925524be8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequest.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class WorkRequest { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + 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("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("resources") + private java.util.List resources; + + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest __instance__ = + new WorkRequest( + operationType, + status, + id, + compartmentId, + resources, + percentComplete, + timeAccepted, + timeStarted, + timeFinished); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest o) { + Builder copiedBuilder = + operationType(o.getOperationType()) + .status(o.getStatus()) + .id(o.getId()) + .compartmentId(o.getCompartmentId()) + .resources(o.getResources()) + .percentComplete(o.getPercentComplete()) + .timeAccepted(o.getTimeAccepted()) + .timeStarted(o.getTimeStarted()) + .timeFinished(o.getTimeFinished()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Type of the work request. + **/ + @lombok.extern.slf4j.Slf4j + public enum OperationType { + CreateCatalog("CREATE_CATALOG"), + UpdateCatalog("UPDATE_CATALOG"), + DeleteCatalog("DELETE_CATALOG"), + MoveCatalog("MOVE_CATALOG"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (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; + } + }; + /** + * Type of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + OperationType operationType; + /** + * Status of current work request. + **/ + @lombok.extern.slf4j.Slf4j + public enum Status { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Status v : Status.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Status(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Status create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Status of current work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + Status status; + + /** + * The id of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String 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") + String compartmentId; + + /** + * The resources affected by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + java.util.List resources; + + /** + * Percentage of the request completed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + Float 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") + java.util.Date 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") + java.util.Date 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") + java.util.Date timeFinished; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestError.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestError.java new file mode 100644 index 00000000000..9c90e5c4cfc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestError.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * An error encountered while executing a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class WorkRequestError { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + 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 __instance__ = new WorkRequestError(code, message, timestamp); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError o) { + Builder copiedBuilder = + code(o.getCode()).message(o.getMessage()).timestamp(o.getTimestamp()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.us-phoenix-1.oraclecloud.com/Content/API/References/apierrors.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + String code; + + /** + * A human readable description of the issue encountered. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + String message; + + /** + * The time the error occured. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + java.util.Date timestamp; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestLog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestLog.java new file mode 100644 index 00000000000..59d43a897fd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestLog.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A log message from the execution of a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestLog.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class WorkRequestLog { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + 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 WorkRequestLog build() { + WorkRequestLog __instance__ = new WorkRequestLog(message, timestamp); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLog o) { + Builder copiedBuilder = message(o.getMessage()).timestamp(o.getTimestamp()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Human-readable log message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + String message; + + /** + * The time the log message was written. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + java.util.Date timestamp; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestResource.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestResource.java new file mode 100644 index 00000000000..b3886694c85 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/WorkRequestResource.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * A resource created or operated on by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class WorkRequestResource { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource __instance__ = + new WorkRequestResource(entityType, actionType, identifier, entityUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource o) { + Builder copiedBuilder = + entityType(o.getEntityType()) + .actionType(o.getActionType()) + .identifier(o.getIdentifier()) + .entityUri(o.getEntityUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The resource type the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + String 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. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum ActionType { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Moved("MOVED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (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; + } + }; + /** + * 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") + ActionType actionType; + + /** + * The identifier of the resource the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + String identifier; + + /** + * The URI path that the user can do a GET to access the resource metadata + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + String entityUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ChangeCatalogCompartmentRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ChangeCatalogCompartmentRequest.java new file mode 100644 index 00000000000..0dcee651eed --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ChangeCatalogCompartmentRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ChangeCatalogCompartmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details for the target compartment. + */ + private ChangeCatalogCompartmentDetails changeCatalogCompartmentDetails; + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeCatalogCompartmentRequest o) { + changeCatalogCompartmentDetails(o.getChangeCatalogCompartmentDetails()); + catalogId(o.getCatalogId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeCatalogCompartmentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeCatalogCompartmentRequest + */ + public ChangeCatalogCompartmentRequest build() { + ChangeCatalogCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeRequest.java new file mode 100644 index 00000000000..74dd2eadf30 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateAttributeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * The information used to create an entity attribute. + */ + private CreateAttributeDetails createAttributeDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateAttributeRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + createAttributeDetails(o.getCreateAttributeDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateAttributeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateAttributeRequest + */ + public CreateAttributeRequest build() { + CreateAttributeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeTagRequest.java new file mode 100644 index 00000000000..e937a375ffa --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateAttributeTagRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateAttributeTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * The information used to create an entity attribute tag. + */ + private CreateTagDetails createAttributeTagDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateAttributeTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + createAttributeTagDetails(o.getCreateAttributeTagDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateAttributeTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateAttributeTagRequest + */ + public CreateAttributeTagRequest build() { + CreateAttributeTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateCatalogRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateCatalogRequest.java new file mode 100644 index 00000000000..8da69629501 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateCatalogRequest.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateCatalogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details for the new data catalog. + */ + private CreateCatalogDetails createCatalogDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCatalogRequest o) { + createCatalogDetails(o.getCreateCatalogDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateCatalogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateCatalogRequest + */ + public CreateCatalogRequest build() { + CreateCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateConnectionRequest.java new file mode 100644 index 00000000000..2e6a3361cd9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateConnectionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to create the connection. + */ + private CreateConnectionDetails createConnectionDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + createConnectionDetails(o.getCreateConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateConnectionRequest + */ + public CreateConnectionRequest build() { + CreateConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetRequest.java new file mode 100644 index 00000000000..826dee16502 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateDataAssetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The information used to create the data asset. + */ + private CreateDataAssetDetails createDataAssetDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDataAssetRequest o) { + catalogId(o.getCatalogId()); + createDataAssetDetails(o.getCreateDataAssetDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDataAssetRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateDataAssetRequest + */ + public CreateDataAssetRequest build() { + CreateDataAssetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetTagRequest.java new file mode 100644 index 00000000000..8003b110607 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateDataAssetTagRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateDataAssetTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to create the data asset tag. + */ + private CreateTagDetails createDataAssetTagDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDataAssetTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + createDataAssetTagDetails(o.getCreateDataAssetTagDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDataAssetTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateDataAssetTagRequest + */ + public CreateDataAssetTagRequest build() { + CreateDataAssetTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityRequest.java new file mode 100644 index 00000000000..9c5571c53a2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateEntityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to create the data entity. + */ + private CreateEntityDetails createEntityDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEntityRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + createEntityDetails(o.getCreateEntityDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateEntityRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateEntityRequest + */ + public CreateEntityRequest build() { + CreateEntityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityTagRequest.java new file mode 100644 index 00000000000..81c0fe964de --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateEntityTagRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateEntityTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * The information used to create the entity tag. + */ + private CreateTagDetails createEntityTagDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEntityTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + createEntityTagDetails(o.getCreateEntityTagDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateEntityTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateEntityTagRequest + */ + public CreateEntityTagRequest build() { + CreateEntityTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderRequest.java new file mode 100644 index 00000000000..d6f067a40dc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateFolderRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to create the folder. + */ + private CreateFolderDetails createFolderDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateFolderRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + createFolderDetails(o.getCreateFolderDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFolderRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateFolderRequest + */ + public CreateFolderRequest build() { + CreateFolderRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderTagRequest.java new file mode 100644 index 00000000000..e29e79123af --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateFolderTagRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateFolderTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * The information used to create the folder tag. + */ + private CreateTagDetails createFolderTagDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateFolderTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + createFolderTagDetails(o.getCreateFolderTagDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateFolderTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateFolderTagRequest + */ + public CreateFolderTagRequest build() { + CreateFolderTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateGlossaryRequest.java new file mode 100644 index 00000000000..f4ee6660fbf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateGlossaryRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The information used to create the glossary. + */ + private CreateGlossaryDetails createGlossaryDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateGlossaryRequest o) { + catalogId(o.getCatalogId()); + createGlossaryDetails(o.getCreateGlossaryDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateGlossaryRequest + */ + public CreateGlossaryRequest build() { + CreateGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobDefinitionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobDefinitionRequest.java new file mode 100644 index 00000000000..0f475cb82df --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobDefinitionRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateJobDefinitionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The information used to create the job definition. + */ + private CreateJobDefinitionDetails createJobDefinitionDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobDefinitionRequest o) { + catalogId(o.getCatalogId()); + createJobDefinitionDetails(o.getCreateJobDefinitionDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateJobDefinitionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateJobDefinitionRequest + */ + public CreateJobDefinitionRequest build() { + CreateJobDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobExecutionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobExecutionRequest.java new file mode 100644 index 00000000000..8a812be50ed --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobExecutionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateJobExecutionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The information used to create the job execution. + */ + private CreateJobExecutionDetails createJobExecutionDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobExecutionRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + createJobExecutionDetails(o.getCreateJobExecutionDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateJobExecutionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateJobExecutionRequest + */ + public CreateJobExecutionRequest build() { + CreateJobExecutionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobRequest.java new file mode 100644 index 00000000000..1ba711d66a2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateJobRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The information used to create the job. + */ + private CreateJobDetails createJobDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobRequest o) { + catalogId(o.getCatalogId()); + createJobDetails(o.getCreateJobDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateJobRequest + */ + public CreateJobRequest build() { + CreateJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRelationshipRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRelationshipRequest.java new file mode 100644 index 00000000000..a7c3c7ecd48 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRelationshipRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateTermRelationshipRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * The information used to create the term relationship. + */ + private CreateTermRelationshipDetails createTermRelationshipDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateTermRelationshipRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + createTermRelationshipDetails(o.getCreateTermRelationshipDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateTermRelationshipRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateTermRelationshipRequest + */ + public CreateTermRelationshipRequest build() { + CreateTermRelationshipRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRequest.java new file mode 100644 index 00000000000..ef75234660a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/CreateTermRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateTermRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * The information used to create the term. + */ + private CreateTermDetails createTermDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateTermRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + createTermDetails(o.getCreateTermDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateTermRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateTermRequest + */ + public CreateTermRequest build() { + CreateTermRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeRequest.java new file mode 100644 index 00000000000..c765c891e3a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteAttributeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteAttributeRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteAttributeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteAttributeRequest + */ + public DeleteAttributeRequest build() { + DeleteAttributeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeTagRequest.java new file mode 100644 index 00000000000..52442cf4a4a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteAttributeTagRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteAttributeTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteAttributeTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + tagKey(o.getTagKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteAttributeTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteAttributeTagRequest + */ + public DeleteAttributeTagRequest build() { + DeleteAttributeTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteCatalogRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteCatalogRequest.java new file mode 100644 index 00000000000..ad85e6868b1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteCatalogRequest.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteCatalogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCatalogRequest o) { + catalogId(o.getCatalogId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCatalogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteCatalogRequest + */ + public DeleteCatalogRequest build() { + DeleteCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteConnectionRequest.java new file mode 100644 index 00000000000..53255022b58 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteConnectionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteConnectionRequest + */ + public DeleteConnectionRequest build() { + DeleteConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetRequest.java new file mode 100644 index 00000000000..be7ebb3f575 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteDataAssetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataAssetRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDataAssetRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteDataAssetRequest + */ + public DeleteDataAssetRequest build() { + DeleteDataAssetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetTagRequest.java new file mode 100644 index 00000000000..b61702ec802 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteDataAssetTagRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteDataAssetTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataAssetTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + tagKey(o.getTagKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDataAssetTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteDataAssetTagRequest + */ + public DeleteDataAssetTagRequest build() { + DeleteDataAssetTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityRequest.java new file mode 100644 index 00000000000..c5bacc38f80 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteEntityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteEntityRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteEntityRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteEntityRequest + */ + public DeleteEntityRequest build() { + DeleteEntityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityTagRequest.java new file mode 100644 index 00000000000..718d2ff46e9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteEntityTagRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteEntityTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteEntityTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + tagKey(o.getTagKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteEntityTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteEntityTagRequest + */ + public DeleteEntityTagRequest build() { + DeleteEntityTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderRequest.java new file mode 100644 index 00000000000..45e685a7f7e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteFolderRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteFolderRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFolderRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteFolderRequest + */ + public DeleteFolderRequest build() { + DeleteFolderRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderTagRequest.java new file mode 100644 index 00000000000..c0541a2265a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteFolderTagRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteFolderTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteFolderTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + tagKey(o.getTagKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteFolderTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteFolderTagRequest + */ + public DeleteFolderTagRequest build() { + DeleteFolderTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteGlossaryRequest.java new file mode 100644 index 00000000000..2673336df93 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteGlossaryRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteGlossaryRequest + */ + public DeleteGlossaryRequest build() { + DeleteGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobDefinitionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobDefinitionRequest.java new file mode 100644 index 00000000000..a04cb06142d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobDefinitionRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteJobDefinitionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job definition key. + */ + private String jobDefinitionKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteJobDefinitionRequest o) { + catalogId(o.getCatalogId()); + jobDefinitionKey(o.getJobDefinitionKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteJobDefinitionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteJobDefinitionRequest + */ + public DeleteJobDefinitionRequest build() { + DeleteJobDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobRequest.java new file mode 100644 index 00000000000..3c55b0a3063 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteJobRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteJobRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteJobRequest + */ + public DeleteJobRequest build() { + DeleteJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRelationshipRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRelationshipRequest.java new file mode 100644 index 00000000000..4534d03dac6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRelationshipRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteTermRelationshipRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * Unique glossary term relationship key. + */ + private String termRelationshipKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteTermRelationshipRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + termRelationshipKey(o.getTermRelationshipKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteTermRelationshipRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteTermRelationshipRequest + */ + public DeleteTermRelationshipRequest build() { + DeleteTermRelationshipRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRequest.java new file mode 100644 index 00000000000..15cdf6f7fb9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/DeleteTermRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteTermRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteTermRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteTermRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteTermRequest + */ + public DeleteTermRequest build() { + DeleteTermRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExpandTreeForGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExpandTreeForGlossaryRequest.java new file mode 100644 index 00000000000..3db5240ae77 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExpandTreeForGlossaryRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ExpandTreeForGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExpandTreeForGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ExpandTreeForGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ExpandTreeForGlossaryRequest + */ + public ExpandTreeForGlossaryRequest build() { + ExpandTreeForGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExportGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExportGlossaryRequest.java new file mode 100644 index 00000000000..198bea7a71e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ExportGlossaryRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ExportGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Specify if the relationship metadata is exported for the glossary. + */ + private Boolean isRelationshipExported; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExportGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + isRelationshipExported(o.getIsRelationshipExported()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ExportGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ExportGlossaryRequest + */ + public ExportGlossaryRequest build() { + ExportGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeRequest.java new file mode 100644 index 00000000000..12603e4216a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeRequest.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetAttributeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * Specifies the fields to return in an entity attribute response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity attribute response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + EntityKey("entityKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + ExternalDataType("externalDataType"), + ExternalKey("externalKey"), + IsIncrementalData("isIncrementalData"), + IsNullable("isNullable"), + Length("length"), + Position("position"), + Precision("precision"), + Scale("scale"), + TimeExternal("timeExternal"), + Uri("uri"), + Properties("properties"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAttributeRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttributeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetAttributeRequest + */ + public GetAttributeRequest build() { + GetAttributeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeTagRequest.java new file mode 100644 index 00000000000..4ad7a8ed9d0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetAttributeTagRequest.java @@ -0,0 +1,156 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetAttributeTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * Specifies the fields to return in an entity attribute tag response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity attribute tag response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + CreatedById("createdById"), + Uri("uri"), + AttributeKey("attributeKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAttributeTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + tagKey(o.getTagKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAttributeTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetAttributeTagRequest + */ + public GetAttributeTagRequest build() { + GetAttributeTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetCatalogRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetCatalogRequest.java new file mode 100644 index 00000000000..7c68b551bb5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetCatalogRequest.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetCatalogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCatalogRequest o) { + catalogId(o.getCatalogId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetCatalogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetCatalogRequest + */ + public GetCatalogRequest build() { + GetCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetConnectionRequest.java new file mode 100644 index 00000000000..7096724788c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetConnectionRequest.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * Specifies the fields to return in a connection response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a connection response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + DataAssetKey("dataAssetKey"), + TypeKey("typeKey"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Properties("properties"), + ExternalKey("externalKey"), + TimeStatusUpdated("timeStatusUpdated"), + LifecycleState("lifecycleState"), + IsDefault("isDefault"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetConnectionRequest + */ + public GetConnectionRequest build() { + GetConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetRequest.java new file mode 100644 index 00000000000..7107d5e3c6e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetRequest.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetDataAssetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Specifies the fields to return in a data asset response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a data asset response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + ExternalKey("externalKey"), + TypeKey("typeKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Uri("uri"), + Properties("properties"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataAssetRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataAssetRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetDataAssetRequest + */ + public GetDataAssetRequest build() { + GetDataAssetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetTagRequest.java new file mode 100644 index 00000000000..016f4913e4b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetDataAssetTagRequest.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetDataAssetTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * Specifies the fields to return in a data asset tag response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a data asset tag response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + CreatedById("createdById"), + Uri("uri"), + DataAssetKey("dataAssetKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataAssetTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + tagKey(o.getTagKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataAssetTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetDataAssetTagRequest + */ + public GetDataAssetTagRequest build() { + GetDataAssetTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityRequest.java new file mode 100644 index 00000000000..9e2509f33b1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityRequest.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetEntityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Specifies the fields to return in an entity response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + DataAssetKey("dataAssetKey"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + LifecycleState("lifecycleState"), + ExternalKey("externalKey"), + TimeExternal("timeExternal"), + TimeStatusUpdated("timeStatusUpdated"), + IsLogical("isLogical"), + IsPartition("isPartition"), + FolderKey("folderKey"), + TypeKey("typeKey"), + Path("path"), + HarvestStatus("harvestStatus"), + LastJobKey("lastJobKey"), + Uri("uri"), + Properties("properties"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEntityRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEntityRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetEntityRequest + */ + public GetEntityRequest build() { + GetEntityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityTagRequest.java new file mode 100644 index 00000000000..454eae76b7e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetEntityTagRequest.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetEntityTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * Specifies the fields to return in an entity tag response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity tag response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + CreatedById("createdById"), + Uri("uri"), + EntityKey("entityKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEntityTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + tagKey(o.getTagKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetEntityTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetEntityTagRequest + */ + public GetEntityTagRequest build() { + GetEntityTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderRequest.java new file mode 100644 index 00000000000..3e44c6dd081 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderRequest.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetFolderRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * Specifies the fields to return in a folder response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a folder response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + ParentFolderKey("parentFolderKey"), + Path("path"), + DataAssetKey("dataAssetKey"), + Properties("properties"), + ExternalKey("externalKey"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + TimeExternal("timeExternal"), + LifecycleState("lifecycleState"), + HarvestStatus("harvestStatus"), + LastJobKey("lastJobKey"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetFolderRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFolderRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetFolderRequest + */ + public GetFolderRequest build() { + GetFolderRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderTagRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderTagRequest.java new file mode 100644 index 00000000000..afa721c3eee --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetFolderTagRequest.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetFolderTagRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * Unique tag key. + */ + private String tagKey; + + /** + * Specifies the fields to return in a folder tag response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a folder tag response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + CreatedById("createdById"), + Uri("uri"), + FolderKey("folderKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetFolderTagRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + tagKey(o.getTagKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetFolderTagRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetFolderTagRequest + */ + public GetFolderTagRequest build() { + GetFolderTagRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetGlossaryRequest.java new file mode 100644 index 00000000000..8e0fee1a598 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetGlossaryRequest.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Specifies the fields to return in a glossary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a glossary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Owner("owner"), + WorkflowStatus("workflowStatus"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetGlossaryRequest + */ + public GetGlossaryRequest build() { + GetGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobDefinitionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobDefinitionRequest.java new file mode 100644 index 00000000000..9da8504e7da --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobDefinitionRequest.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetJobDefinitionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job definition key. + */ + private String jobDefinitionKey; + + /** + * Specifies the fields to return in a job definition response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job definition response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + JobType("jobType"), + IsIncremental("isIncremental"), + DataAssetKey("dataAssetKey"), + ConnectionKey("connectionKey"), + InternalVersion("internalVersion"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Uri("uri"), + IsSampleDataExtracted("isSampleDataExtracted"), + SampleDataSizeInMBs("sampleDataSizeInMBs"), + Properties("properties"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobDefinitionRequest o) { + catalogId(o.getCatalogId()); + jobDefinitionKey(o.getJobDefinitionKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobDefinitionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetJobDefinitionRequest + */ + public GetJobDefinitionRequest build() { + GetJobDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobExecutionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobExecutionRequest.java new file mode 100644 index 00000000000..5e0afcefa4f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobExecutionRequest.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetJobExecutionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The key of the job execution. + */ + private String jobExecutionKey; + + /** + * Specifies the fields to return in a job execution response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job execution response. + * + **/ + public enum Fields { + Key("key"), + JobKey("jobKey"), + JobType("jobType"), + SubType("subType"), + ParentKey("parentKey"), + ScheduleInstanceKey("scheduleInstanceKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeStarted("timeStarted"), + TimeEnded("timeEnded"), + ErrorCode("errorCode"), + ErrorMessage("errorMessage"), + ProcessKey("processKey"), + ExternalUrl("externalUrl"), + EventKey("eventKey"), + DataEntityKey("dataEntityKey"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Properties("properties"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobExecutionRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + jobExecutionKey(o.getJobExecutionKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobExecutionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetJobExecutionRequest + */ + public GetJobExecutionRequest build() { + GetJobExecutionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobLogRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobLogRequest.java new file mode 100644 index 00000000000..1d6e65d1827 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobLogRequest.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetJobLogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The key of the job execution. + */ + private String jobExecutionKey; + + /** + * Unique job log key. + */ + private String jobLogKey; + + /** + * Specifies the fields to return in a job log response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job log response. + * + **/ + public enum Fields { + Key("key"), + JobExecutionKey("jobExecutionKey"), + CreatedById("createdById"), + UpdatedById("updatedById"), + TimeUpdated("timeUpdated"), + TimeCreated("timeCreated"), + Severity("severity"), + LogMessage("logMessage"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobLogRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + jobExecutionKey(o.getJobExecutionKey()); + jobLogKey(o.getJobLogKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobLogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetJobLogRequest + */ + public GetJobLogRequest build() { + GetJobLogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobMetricsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobMetricsRequest.java new file mode 100644 index 00000000000..d4e9f796cb8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobMetricsRequest.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetJobMetricsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The key of the job execution. + */ + private String jobExecutionKey; + + /** + * Unique job metrics key. + */ + private String jobMetricsKey; + + /** + * Specifies the fields to return in a job metric response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job metric response. + * + **/ + public enum Fields { + Key("key"), + Description("description"), + DisplayName("displayName"), + TimeInserted("timeInserted"), + Category("category"), + SubCategory("subCategory"), + Unit("unit"), + Value("value"), + BatchKey("batchKey"), + JobExecutionKey("jobExecutionKey"), + CreatedById("createdById"), + UpdatedById("updatedById"), + TimeUpdated("timeUpdated"), + TimeCreated("timeCreated"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobMetricsRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + jobExecutionKey(o.getJobExecutionKey()); + jobMetricsKey(o.getJobMetricsKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobMetricsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetJobMetricsRequest + */ + public GetJobMetricsRequest build() { + GetJobMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobRequest.java new file mode 100644 index 00000000000..f045cbb5445 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetJobRequest.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * Specifies the fields to return in a job response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + JobType("jobType"), + ScheduleCronExpression("scheduleCronExpression"), + TimeScheduleBegin("timeScheduleBegin"), + TimeScheduleEnd("timeScheduleEnd"), + ScheduleType("scheduleType"), + ConnectionKey("connectionKey"), + JobDefinitionKey("jobDefinitionKey"), + InternalVersion("internalVersion"), + ExecutionCount("executionCount"), + TimeOfLatestExecution("timeOfLatestExecution"), + Executions("executions"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetJobRequest + */ + public GetJobRequest build() { + GetJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRelationshipRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRelationshipRequest.java new file mode 100644 index 00000000000..6c72ea4f159 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRelationshipRequest.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetTermRelationshipRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * Unique glossary term relationship key. + */ + private String termRelationshipKey; + + /** + * Specifies the fields to return in a term relationship response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a term relationship response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + RelatedTermKey("relatedTermKey"), + RelatedTermDisplayName("relatedTermDisplayName"), + ParentTermKey("parentTermKey"), + ParentTermDisplayName("parentTermDisplayName"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTermRelationshipRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + termRelationshipKey(o.getTermRelationshipKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetTermRelationshipRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetTermRelationshipRequest + */ + public GetTermRelationshipRequest build() { + GetTermRelationshipRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRequest.java new file mode 100644 index 00000000000..f5cdf9fffb6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTermRequest.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetTermRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * Specifies the fields to return in a term response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a term response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + GlossaryKey("glossaryKey"), + ParentTermKey("parentTermKey"), + IsAllowedToHaveChildTerms("isAllowedToHaveChildTerms"), + Path("path"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + Owner("owner"), + WorkflowStatus("workflowStatus"), + Uri("uri"), + RelatedTerms("relatedTerms"), + AssociatedObjectCount("associatedObjectCount"), + AssociatedObjects("associatedObjects"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTermRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetTermRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetTermRequest + */ + public GetTermRequest build() { + GetTermRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTypeRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTypeRequest.java new file mode 100644 index 00000000000..c099b546376 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetTypeRequest.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetTypeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique type key. + */ + private String typeKey; + + /** + * Specifies the fields to return in a type response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a type response. + * + **/ + public enum Fields { + Key("key"), + Description("description"), + Name("name"), + CatalogId("catalogId"), + Properties("properties"), + IsInternal("isInternal"), + IsTag("isTag"), + IsApproved("isApproved"), + TypeCategory("typeCategory"), + ExternalTypeName("externalTypeName"), + LifecycleState("lifecycleState"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTypeRequest o) { + catalogId(o.getCatalogId()); + typeKey(o.getTypeKey()); + fields(o.getFields()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetTypeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetTypeRequest + */ + public GetTypeRequest build() { + GetTypeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetWorkRequestRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..0451c3e49a2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/GetWorkRequestRequest.java @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the asynchronous request. + */ + private String workRequestId; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportConnectionRequest.java new file mode 100644 index 00000000000..fb99578283d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportConnectionRequest.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ImportConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to create the connections through import. + */ + private ImportConnectionDetails importConnectionDetails; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ImportConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + importConnectionDetails(o.getImportConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ImportConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ImportConnectionRequest + */ + public ImportConnectionRequest build() { + ImportConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportGlossaryRequest.java new file mode 100644 index 00000000000..d439abec303 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportGlossaryRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ImportGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * The file contents to import the glossary. + */ + private ImportGlossaryDetails importGlossaryDetails; + + /** + * Specify if the relationship metadata is imported for the glossary. + */ + private Boolean isRelationshipImported; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ImportGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + importGlossaryDetails(o.getImportGlossaryDetails()); + isRelationshipImported(o.getIsRelationshipImported()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ImportGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ImportGlossaryRequest + */ + public ImportGlossaryRequest build() { + ImportGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributeTagsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributeTagsRequest.java new file mode 100644 index 00000000000..4751243fef5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributeTagsRequest.java @@ -0,0 +1,284 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListAttributeTagsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique key of the related term. + */ + private String termKey; + + /** + * Path of the related term. + */ + private String termPath; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * Specifies the fields to return in an entity attribute tag summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity attribute tag summary response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + GlossaryKey("glossaryKey"), + AttributeKey("attributeKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAttributeTagsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + termKey(o.getTermKey()); + termPath(o.getTermPath()); + timeCreated(o.getTimeCreated()); + createdById(o.getCreatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAttributeTagsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListAttributeTagsRequest + */ + public ListAttributeTagsRequest build() { + ListAttributeTagsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java new file mode 100644 index 00000000000..6b04cc173ad --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListAttributesRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListAttributesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Unique external identifier of this resource in the external source system. + */ + private String externalKey; + + /** + * Last modified timestamp of this object in the external system. + */ + private java.util.Date timeExternal; + + /** + * Data type as defined in an external system. + */ + private String externalTypeName; + + /** + * Identifies whether this attribute can be used as a watermark to extract incremental data. + */ + private Boolean isIncrementalData; + + /** + * Identifies whether this attribute can be assigned null value. + */ + private Boolean isNullable; + + /** + * Max allowed length of the attribute value. + */ + private Long length; + + /** + * Position of the attribute in the record definition. + */ + private Integer position; + + /** + * Precision of the attribute value usually applies to float data type. + */ + private Integer precision; + + /** + * Scale of the attribute value usually applies to float data type. + */ + private Integer scale; + + /** + * Specifies the fields to return in an entity attribute summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity attribute summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + EntityKey("entityKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + ExternalDataType("externalDataType"), + ExternalKey("externalKey"), + Length("length"), + IsNullable("isNullable"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAttributesRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + externalKey(o.getExternalKey()); + timeExternal(o.getTimeExternal()); + externalTypeName(o.getExternalTypeName()); + isIncrementalData(o.getIsIncrementalData()); + isNullable(o.getIsNullable()); + length(o.getLength()); + position(o.getPosition()); + precision(o.getPrecision()); + scale(o.getScale()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAttributesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListAttributesRequest + */ + public ListAttributesRequest build() { + ListAttributesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListCatalogsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListCatalogsRequest.java new file mode 100644 index 00000000000..385327d2c05 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListCatalogsRequest.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListCatalogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment where you want to list resources. + */ + private String compartmentId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCatalogsRequest o) { + compartmentId(o.getCompartmentId()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + lifecycleState(o.getLifecycleState()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListCatalogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListCatalogsRequest + */ + public ListCatalogsRequest build() { + ListCatalogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListConnectionsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListConnectionsRequest.java new file mode 100644 index 00000000000..7590cd8e2c0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListConnectionsRequest.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListConnectionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Unique external identifier of this resource in the external source system. + */ + private String externalKey; + + /** + * Time that the resource's status was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeStatusUpdated; + + /** + * Indicates whether this connection is the default connection. + */ + private Boolean isDefault; + + /** + * Specifies the fields to return in a connection summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a connection summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + DataAssetKey("dataAssetKey"), + TypeKey("typeKey"), + TimeCreated("timeCreated"), + ExternalKey("externalKey"), + LifecycleState("lifecycleState"), + IsDefault("isDefault"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListConnectionsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + externalKey(o.getExternalKey()); + timeStatusUpdated(o.getTimeStatusUpdated()); + isDefault(o.getIsDefault()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListConnectionsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListConnectionsRequest + */ + public ListConnectionsRequest build() { + ListConnectionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetTagsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetTagsRequest.java new file mode 100644 index 00000000000..66412bfeac9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetTagsRequest.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListDataAssetTagsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique key of the related term. + */ + private String termKey; + + /** + * Path of the related term. + */ + private String termPath; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * Specifies the fields to return in a data asset tag summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a data asset tag summary response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + GlossaryKey("glossaryKey"), + DataAssetKey("dataAssetKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataAssetTagsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + termKey(o.getTermKey()); + termPath(o.getTermPath()); + timeCreated(o.getTimeCreated()); + createdById(o.getCreatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataAssetTagsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDataAssetTagsRequest + */ + public ListDataAssetTagsRequest build() { + ListDataAssetTagsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetsRequest.java new file mode 100644 index 00000000000..05ec8fe0a4f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListDataAssetsRequest.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListDataAssetsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Unique external identifier of this resource in the external source system. + */ + private String externalKey; + + /** + * The key of the object type. + */ + private String typeKey; + + /** + * Specifies the fields to return in a data asset summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a data asset summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + ExternalKey("externalKey"), + TypeKey("typeKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataAssetsRequest o) { + catalogId(o.getCatalogId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + externalKey(o.getExternalKey()); + typeKey(o.getTypeKey()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataAssetsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDataAssetsRequest + */ + public ListDataAssetsRequest build() { + ListDataAssetsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java new file mode 100644 index 00000000000..eb5d4e955ff --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java @@ -0,0 +1,329 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListEntitiesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Unique external identifier of this resource in the external source system. + */ + private String externalKey; + + /** + * Last modified timestamp of this object in the external system. + */ + private java.util.Date timeExternal; + + /** + * Time that the resource's status was last updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeStatusUpdated; + + /** + * Identifies if the object is a physical object (materialized) or virtual/logical object defined on other objects. + * + */ + private Boolean isLogical; + + /** + * Identifies if an object is a sub object (partition) of a physical or materialized parent object. + */ + private Boolean isPartition; + + /** + * Key of the associated folder. + */ + private String folderKey; + + /** + * Full path of the resource for resources that support paths. + */ + private String path; + + /** + * Harvest status of the harvestable resource as updated by the harvest process. + */ + private HarvestStatus harvestStatus; + + /** + * Key of the last harvest process to update this resource. + */ + private String lastJobKey; + + /** + * Specifies the fields to return in an entity summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + DataAssetKey("dataAssetKey"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + UpdatedById("updatedById"), + LifecycleState("lifecycleState"), + FolderKey("folderKey"), + ExternalKey("externalKey"), + Path("path"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListEntitiesRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + externalKey(o.getExternalKey()); + timeExternal(o.getTimeExternal()); + timeStatusUpdated(o.getTimeStatusUpdated()); + isLogical(o.getIsLogical()); + isPartition(o.getIsPartition()); + folderKey(o.getFolderKey()); + path(o.getPath()); + harvestStatus(o.getHarvestStatus()); + lastJobKey(o.getLastJobKey()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListEntitiesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListEntitiesRequest + */ + public ListEntitiesRequest build() { + ListEntitiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntityTagsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntityTagsRequest.java new file mode 100644 index 00000000000..1a097c40e1e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntityTagsRequest.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListEntityTagsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique key of the related term. + */ + private String termKey; + + /** + * Path of the related term. + */ + private String termPath; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * Specifies the fields to return in an entity tag summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in an entity tag summary response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + GlossaryKey("glossaryKey"), + EntityKey("entityKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListEntityTagsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + termKey(o.getTermKey()); + termPath(o.getTermPath()); + timeCreated(o.getTimeCreated()); + createdById(o.getCreatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListEntityTagsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListEntityTagsRequest + */ + public ListEntityTagsRequest build() { + ListEntityTagsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFolderTagsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFolderTagsRequest.java new file mode 100644 index 00000000000..dd80213e900 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFolderTagsRequest.java @@ -0,0 +1,278 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListFolderTagsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique key of the related term. + */ + private String termKey; + + /** + * Path of the related term. + */ + private String termPath; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * Specifies the fields to return in a folder tag summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a folder tag summary response. + * + **/ + public enum Fields { + Key("key"), + Name("name"), + TermKey("termKey"), + TermPath("termPath"), + TermDescription("termDescription"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + GlossaryKey("glossaryKey"), + FolderKey("folderKey"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListFolderTagsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + termKey(o.getTermKey()); + termPath(o.getTermPath()); + timeCreated(o.getTimeCreated()); + createdById(o.getCreatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFolderTagsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListFolderTagsRequest + */ + public ListFolderTagsRequest build() { + ListFolderTagsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java new file mode 100644 index 00000000000..e206ca6cc29 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListFoldersRequest.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListFoldersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique folder key. + */ + private String parentFolderKey; + + /** + * Full path of the resource for resources that support paths. + */ + private String path; + + /** + * Unique external identifier of this resource in the external source system. + */ + private String externalKey; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Harvest status of the harvestable resource as updated by the harvest process. + */ + private HarvestStatus harvestStatus; + + /** + * Key of the last harvest process to update this resource. + */ + private String lastJobKey; + + /** + * Specifies the fields to return in a folder summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a folder summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + ParentFolderKey("parentFolderKey"), + Path("path"), + DataAssetKey("dataAssetKey"), + ExternalKey("externalKey"), + TimeExternal("timeExternal"), + TimeCreated("timeCreated"), + LifecycleState("lifecycleState"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListFoldersRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + parentFolderKey(o.getParentFolderKey()); + path(o.getPath()); + externalKey(o.getExternalKey()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + harvestStatus(o.getHarvestStatus()); + lastJobKey(o.getLastJobKey()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListFoldersRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListFoldersRequest + */ + public ListFoldersRequest build() { + ListFoldersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListGlossariesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListGlossariesRequest.java new file mode 100644 index 00000000000..110756f5e9d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListGlossariesRequest.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListGlossariesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Specifies the fields to return in a glossary summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a glossary summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + WorkflowStatus("workflowStatus"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListGlossariesRequest o) { + catalogId(o.getCatalogId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListGlossariesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListGlossariesRequest + */ + public ListGlossariesRequest build() { + ListGlossariesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java new file mode 100644 index 00000000000..f4a909458b9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobDefinitionsRequest.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListJobDefinitionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Job type. + */ + private JobType jobType; + + /** + * Whether job definition is an incremental harvest (true) or a full harvest (false). + */ + private Boolean isIncremental; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * The sample data size in MB, specified as number of rows, for a metadata harvest. + */ + private String sampleDataSizeInMBs; + + /** + * Specifies the fields to return in a job definition summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job definition summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + JobType("jobType"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + IsSampleDataExtracted("isSampleDataExtracted"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobDefinitionsRequest o) { + catalogId(o.getCatalogId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + jobType(o.getJobType()); + isIncremental(o.getIsIncremental()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + sampleDataSizeInMBs(o.getSampleDataSizeInMBs()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListJobDefinitionsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListJobDefinitionsRequest + */ + public ListJobDefinitionsRequest build() { + ListJobDefinitionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobExecutionsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobExecutionsRequest.java new file mode 100644 index 00000000000..4f10b9192a0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobExecutionsRequest.java @@ -0,0 +1,338 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListJobExecutionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * Job execution lifecycle state. + */ + private JobExecutionState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Job type. + */ + private JobType jobType; + + /** + * Sub-type of this job execution. + */ + private String subType; + + /** + * The unique key of the parent execution or null if this job execution has no parent. + */ + private String parentKey; + + /** + * Time that the job execution was started or in the case of a future time, the time when the job will start. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + */ + private java.util.Date timeStart; + + /** + * Time that the job execution ended or null if the job is still running or hasn't run yet. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + */ + private java.util.Date timeEnd; + + /** + * Error code returned from the job execution or null if job is still running or didn't return an error. + * + */ + private String errorCode; + + /** + * Error message returned from the job execution or null if job is still running or didn't return an error. + * + */ + private String errorMessage; + + /** + * Process identifier related to the job execution. + */ + private String processKey; + + /** + * The a URL of the job for accessing this resource and its status. + */ + private String externalUrl; + + /** + * Event that triggered the execution of this job or null. + */ + private String eventKey; + + /** + * Unique entity key. + */ + private String dataEntityKey; + + /** + * Specifies the fields to return in a job execution summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job execution summary response. + * + **/ + public enum Fields { + Key("key"), + JobKey("jobKey"), + JobType("jobType"), + ParentKey("parentKey"), + ScheduleInstanceKey("scheduleInstanceKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeStarted("timeStarted"), + TimeEnded("timeEnded"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobExecutionsRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + jobType(o.getJobType()); + subType(o.getSubType()); + parentKey(o.getParentKey()); + timeStart(o.getTimeStart()); + timeEnd(o.getTimeEnd()); + errorCode(o.getErrorCode()); + errorMessage(o.getErrorMessage()); + processKey(o.getProcessKey()); + externalUrl(o.getExternalUrl()); + eventKey(o.getEventKey()); + dataEntityKey(o.getDataEntityKey()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListJobExecutionsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListJobExecutionsRequest + */ + public ListJobExecutionsRequest build() { + ListJobExecutionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobLogsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobLogsRequest.java new file mode 100644 index 00000000000..c93acfa7959 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobLogsRequest.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListJobLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The key of the job execution. + */ + private String jobExecutionKey; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Severity level for this Log. + */ + private String severity; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Specifies the fields to return in a job log summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job log summary response. + * + **/ + public enum Fields { + Key("key"), + JobExecutionKey("jobExecutionKey"), + Severity("severity"), + TimeCreated("timeCreated"), + LogMessage("logMessage"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobLogsRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + jobExecutionKey(o.getJobExecutionKey()); + lifecycleState(o.getLifecycleState()); + severity(o.getSeverity()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListJobLogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListJobLogsRequest + */ + public ListJobLogsRequest build() { + ListJobLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobMetricsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobMetricsRequest.java new file mode 100644 index 00000000000..f1fe027dcaf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobMetricsRequest.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListJobMetricsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The key of the job execution. + */ + private String jobExecutionKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * Category of this metric. + */ + private String category; + + /** + * Sub category of this metric under the category. Used for aggregating values. May be null. + */ + private String subCategory; + + /** + * Unit of this metric. + */ + private String unit; + + /** + * Value of this metric. + */ + private String value; + + /** + * Batch key for grouping, may be null. + */ + private String batchKey; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * The time the metric was logged or captured in the system where the job executed. + * An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + * + */ + private java.util.Date timeInserted; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Specifies the fields to return in a job metric summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job metric summary response. + * + **/ + public enum Fields { + Key("key"), + Description("description"), + DisplayName("displayName"), + TimeInserted("timeInserted"), + Category("category"), + SubCategory("subCategory"), + Unit("unit"), + Value("value"), + BatchKey("batchKey"), + JobExecutionKey("jobExecutionKey"), + TimeCreated("timeCreated"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobMetricsRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + jobExecutionKey(o.getJobExecutionKey()); + displayName(o.getDisplayName()); + category(o.getCategory()); + subCategory(o.getSubCategory()); + unit(o.getUnit()); + value(o.getValue()); + batchKey(o.getBatchKey()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + timeInserted(o.getTimeInserted()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListJobMetricsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListJobMetricsRequest + */ + public ListJobMetricsRequest build() { + ListJobMetricsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java new file mode 100644 index 00000000000..1ec5e83b807 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListJobsRequest.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListJobsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * Job lifecycle state. + */ + private JobLifecycleState lifecycleState; + + /** + * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeCreated; + + /** + * Time that the resource was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeUpdated; + + /** + * OCID of the user who created the resource. + */ + private String createdById; + + /** + * OCID of the user who updated the resource. + */ + private String updatedById; + + /** + * Job type. + */ + private JobType jobType; + + /** + * Unique job definition key. + */ + private String jobDefinitionKey; + + /** + * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. + * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using + * special strings. For example, @hourly will run the job every hour. + * + */ + private String scheduleCronExpression; + + /** + * Date that the schedule should be operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeScheduleBegin; + + /** + * Date that the schedule should end from being operational. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + private java.util.Date timeScheduleEnd; + + /** + * Type of the job schedule. + */ + private JobScheduleType scheduleType; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * Specifies the fields to return in a job summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a job summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + CatalogId("catalogId"), + JobDefinitionKey("jobDefinitionKey"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + CreatedById("createdById"), + UpdatedById("updatedById"), + JobType("jobType"), + ScheduleCronExpression("scheduleCronExpression"), + TimeScheduleBegin("timeScheduleBegin"), + ScheduleType("scheduleType"), + ExecutionCount("executionCount"), + TimeOfLatestExecution("timeOfLatestExecution"), + Executions("executions"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The total number of executions for this job schedule. + * + */ + private Integer executionCount; + + /** + * The date and time the most recent execution for this job ,in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * Example: `2019-03-25T21:10:29.600Z` + * + */ + private java.util.Date timeOfLatestExecution; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobsRequest o) { + catalogId(o.getCatalogId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + timeCreated(o.getTimeCreated()); + timeUpdated(o.getTimeUpdated()); + createdById(o.getCreatedById()); + updatedById(o.getUpdatedById()); + jobType(o.getJobType()); + jobDefinitionKey(o.getJobDefinitionKey()); + scheduleCronExpression(o.getScheduleCronExpression()); + timeScheduleBegin(o.getTimeScheduleBegin()); + timeScheduleEnd(o.getTimeScheduleEnd()); + scheduleType(o.getScheduleType()); + connectionKey(o.getConnectionKey()); + fields(o.getFields()); + executionCount(o.getExecutionCount()); + timeOfLatestExecution(o.getTimeOfLatestExecution()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListJobsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListJobsRequest + */ + public ListJobsRequest build() { + ListJobsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTagsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTagsRequest.java new file mode 100644 index 00000000000..e23333ebdce --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTagsRequest.java @@ -0,0 +1,244 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListTagsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Specifies the fields to return in a term summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a term summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + GlossaryKey("glossaryKey"), + ParentTermKey("parentTermKey"), + IsAllowedToHaveChildTerms("isAllowedToHaveChildTerms"), + Path("path"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + WorkflowStatus("workflowStatus"), + AssociatedObjectCount("associatedObjectCount"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTagsRequest o) { + catalogId(o.getCatalogId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTagsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListTagsRequest + */ + public ListTagsRequest build() { + ListTagsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermRelationshipsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermRelationshipsRequest.java new file mode 100644 index 00000000000..a727a813513 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermRelationshipsRequest.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListTermRelationshipsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Specifies the fields to return in a term relationship summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a term relationship summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + RelatedTermKey("relatedTermKey"), + RelatedTermDisplayName("relatedTermDisplayName"), + ParentTermKey("parentTermKey"), + ParentTermDisplayName("parentTermDisplayName"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTermRelationshipsRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTermRelationshipsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListTermRelationshipsRequest + */ + public ListTermRelationshipsRequest build() { + ListTermRelationshipsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermsRequest.java new file mode 100644 index 00000000000..ae31cbc298d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTermsRequest.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListTermsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Unique key of the parent term. + */ + private String parentTermKey; + + /** + * Indicates whether a term may contain child terms. + */ + private Boolean isAllowedToHaveChildTerms; + + /** + * Status of the approval workflow for this business term in the glossary. + */ + private TermWorkflowStatus workflowStatus; + + /** + * Full path of the resource for resources that support paths. + */ + private String path; + + /** + * Specifies the fields to return in a term summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a term summary response. + * + **/ + public enum Fields { + Key("key"), + DisplayName("displayName"), + Description("description"), + GlossaryKey("glossaryKey"), + ParentTermKey("parentTermKey"), + IsAllowedToHaveChildTerms("isAllowedToHaveChildTerms"), + Path("path"), + LifecycleState("lifecycleState"), + TimeCreated("timeCreated"), + WorkflowStatus("workflowStatus"), + AssociatedObjectCount("associatedObjectCount"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTermsRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + parentTermKey(o.getParentTermKey()); + isAllowedToHaveChildTerms(o.getIsAllowedToHaveChildTerms()); + workflowStatus(o.getWorkflowStatus()); + path(o.getPath()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTermsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListTermsRequest + */ + public ListTermsRequest build() { + ListTermsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTypesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTypesRequest.java new file mode 100644 index 00000000000..e9bb348eca7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListTypesRequest.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListTypesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * Indicates whether the type is internal, making it unavailable for use by metadata elements. + */ + private String isInternal; + + /** + * Indicates whether the type can be used for tagging metadata elements. + */ + private String isTag; + + /** + * Indicates whether the type is approved for use as a classifying object. + */ + private String isApproved; + + /** + * Data type as defined in an external system. + */ + private String externalTypeName; + + /** + * Indicates the category of this type . For example, data assets or connections. + */ + private String typeCategory; + + /** + * Specifies the fields to return in a type summary response. + * + */ + private java.util.List fields; + + /** + * Specifies the fields to return in a type summary response. + * + **/ + public enum Fields { + Key("key"), + Description("description"), + Name("name"), + CatalogId("catalogId"), + LifecycleState("lifecycleState"), + TypeCategory("typeCategory"), + Uri("uri"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fields v : Fields.values()) { + map.put(v.getValue(), v); + } + } + + Fields(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fields create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid Fields: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTypesRequest o) { + catalogId(o.getCatalogId()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + isInternal(o.getIsInternal()); + isTag(o.getIsTag()); + isApproved(o.getIsApproved()); + externalTypeName(o.getExternalTypeName()); + typeCategory(o.getTypeCategory()); + fields(o.getFields()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListTypesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListTypesRequest + */ + public ListTypesRequest build() { + ListTypesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestErrorsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..dcb0e30700a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListWorkRequestErrorsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the asynchronous request. + */ + private String workRequestId; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMESTAMP is descending. Default order for CODE and MESSAGE is ascending. If no value is specified TIMESTAMP is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMESTAMP is descending. Default order for CODE and MESSAGE is ascending. If no value is specified TIMESTAMP is default. + * + **/ + public enum SortBy { + Code("CODE"), + 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 RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(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.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestLogsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..1100918da38 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the asynchronous request. + */ + private String workRequestId; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMESTAMP is descending. Default order for MESSAGE is ascending. If no value is specified TIMESTAMP is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMESTAMP is descending. Default order for MESSAGE is ascending. If no value is specified TIMESTAMP is default. + * + **/ + public enum SortBy { + Message("MESSAGE"), + 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 RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(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.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..06f825c8972 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListWorkRequestsRequest.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment where you want to list resources. + */ + private String compartmentId; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestsRequest + */ + public ListWorkRequestsRequest build() { + ListWorkRequestsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ObjectStatsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ObjectStatsRequest.java new file mode 100644 index 00000000000..9c1619a299c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ObjectStatsRequest.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ObjectStatsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ObjectStatsRequest o) { + catalogId(o.getCatalogId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ObjectStatsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ObjectStatsRequest + */ + public ObjectStatsRequest build() { + ObjectStatsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ParseConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ParseConnectionRequest.java new file mode 100644 index 00000000000..c3c06b9a3a2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ParseConnectionRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ParseConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to parse the connections from payload or connection detail. + */ + private ParseConnectionDetails parseConnectionDetails; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ParseConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + parseConnectionDetails(o.getParseConnectionDetails()); + connectionKey(o.getConnectionKey()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ParseConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ParseConnectionRequest + */ + public ParseConnectionRequest build() { + ParseConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/SearchCriteriaRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/SearchCriteriaRequest.java new file mode 100644 index 00000000000..1562eaa236d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/SearchCriteriaRequest.java @@ -0,0 +1,211 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class SearchCriteriaRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The information used to create an extended search results. + */ + private SearchCriteria searchCriteriaDetails; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * Immutable resource name. + */ + private String name; + + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + private LifecycleState lifecycleState; + + /** + * A search timeout string (for example, timeout=4000ms), bounding the search request to be executed within the + * specified time value and bail with the hits accumulated up to that point when expired. + * Defaults to no timeout. + * + */ + private String timeout; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SearchCriteriaRequest o) { + catalogId(o.getCatalogId()); + searchCriteriaDetails(o.getSearchCriteriaDetails()); + displayName(o.getDisplayName()); + name(o.getName()); + lifecycleState(o.getLifecycleState()); + timeout(o.getTimeout()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SearchCriteriaRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of SearchCriteriaRequest + */ + public SearchCriteriaRequest build() { + SearchCriteriaRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/TestConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/TestConnectionRequest.java new file mode 100644 index 00000000000..8a1df570d06 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/TestConnectionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class TestConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(TestConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of TestConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of TestConnectionRequest + */ + public TestConnectionRequest build() { + TestConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateAttributeRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateAttributeRequest.java new file mode 100644 index 00000000000..5da81539206 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateAttributeRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateAttributeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * Unique attribute key. + */ + private String attributeKey; + + /** + * The information to be updated in the attribute. + */ + private UpdateAttributeDetails updateAttributeDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateAttributeRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + attributeKey(o.getAttributeKey()); + updateAttributeDetails(o.getUpdateAttributeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateAttributeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateAttributeRequest + */ + public UpdateAttributeRequest build() { + UpdateAttributeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateCatalogRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateCatalogRequest.java new file mode 100644 index 00000000000..6a589192954 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateCatalogRequest.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateCatalogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The data catalog information to be updated. + */ + private UpdateCatalogDetails updateCatalogDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCatalogRequest o) { + catalogId(o.getCatalogId()); + updateCatalogDetails(o.getUpdateCatalogDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateCatalogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateCatalogRequest + */ + public UpdateCatalogRequest build() { + UpdateCatalogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateConnectionRequest.java new file mode 100644 index 00000000000..613e7f88062 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateConnectionRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * The information to be updated in the connection. + */ + private UpdateConnectionDetails updateConnectionDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + updateConnectionDetails(o.getUpdateConnectionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateConnectionRequest + */ + public UpdateConnectionRequest build() { + UpdateConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateDataAssetRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateDataAssetRequest.java new file mode 100644 index 00000000000..1b1a2f4c5ff --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateDataAssetRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateDataAssetRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information to be updated in the data asset. + */ + private UpdateDataAssetDetails updateDataAssetDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDataAssetRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + updateDataAssetDetails(o.getUpdateDataAssetDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDataAssetRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateDataAssetRequest + */ + public UpdateDataAssetRequest build() { + UpdateDataAssetRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateEntityRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateEntityRequest.java new file mode 100644 index 00000000000..b1c5aa05265 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateEntityRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateEntityRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique entity key. + */ + private String entityKey; + + /** + * The information to be updated in the data entity. + */ + private UpdateEntityDetails updateEntityDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateEntityRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + entityKey(o.getEntityKey()); + updateEntityDetails(o.getUpdateEntityDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateEntityRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateEntityRequest + */ + public UpdateEntityRequest build() { + UpdateEntityRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateFolderRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateFolderRequest.java new file mode 100644 index 00000000000..07798a23704 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateFolderRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateFolderRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique folder key. + */ + private String folderKey; + + /** + * The information to be updated in the folder. + */ + private UpdateFolderDetails updateFolderDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateFolderRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + folderKey(o.getFolderKey()); + updateFolderDetails(o.getUpdateFolderDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateFolderRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateFolderRequest + */ + public UpdateFolderRequest build() { + UpdateFolderRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateGlossaryRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateGlossaryRequest.java new file mode 100644 index 00000000000..f47faf134e0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateGlossaryRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateGlossaryRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * The information to be updated in the glossary. + */ + private UpdateGlossaryDetails updateGlossaryDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateGlossaryRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + updateGlossaryDetails(o.getUpdateGlossaryDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateGlossaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateGlossaryRequest + */ + public UpdateGlossaryRequest build() { + UpdateGlossaryRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobDefinitionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobDefinitionRequest.java new file mode 100644 index 00000000000..79b45e838b8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobDefinitionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateJobDefinitionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job definition key. + */ + private String jobDefinitionKey; + + /** + * The information to be updated in the job definition. + */ + private UpdateJobDefinitionDetails updateJobDefinitionDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateJobDefinitionRequest o) { + catalogId(o.getCatalogId()); + jobDefinitionKey(o.getJobDefinitionKey()); + updateJobDefinitionDetails(o.getUpdateJobDefinitionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateJobDefinitionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateJobDefinitionRequest + */ + public UpdateJobDefinitionRequest build() { + UpdateJobDefinitionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobRequest.java new file mode 100644 index 00000000000..8de337b429c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateJobRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique job key. + */ + private String jobKey; + + /** + * The information to be updated in the job. + */ + private UpdateJobDetails updateJobDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateJobRequest o) { + catalogId(o.getCatalogId()); + jobKey(o.getJobKey()); + updateJobDetails(o.getUpdateJobDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateJobRequest + */ + public UpdateJobRequest build() { + UpdateJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRelationshipRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRelationshipRequest.java new file mode 100644 index 00000000000..a6ee3456fd1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRelationshipRequest.java @@ -0,0 +1,115 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateTermRelationshipRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * Unique glossary term relationship key. + */ + private String termRelationshipKey; + + /** + * The information to be updated in the term relationship. + */ + private UpdateTermRelationshipDetails updateTermRelationshipDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateTermRelationshipRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + termRelationshipKey(o.getTermRelationshipKey()); + updateTermRelationshipDetails(o.getUpdateTermRelationshipDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateTermRelationshipRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateTermRelationshipRequest + */ + public UpdateTermRelationshipRequest build() { + UpdateTermRelationshipRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRequest.java new file mode 100644 index 00000000000..5f42bbe17af --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UpdateTermRequest.java @@ -0,0 +1,109 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateTermRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique glossary key. + */ + private String glossaryKey; + + /** + * Unique glossary term key. + */ + private String termKey; + + /** + * The information to be updated in the term. + */ + private UpdateTermDetails updateTermDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateTermRequest o) { + catalogId(o.getCatalogId()); + glossaryKey(o.getGlossaryKey()); + termKey(o.getTermKey()); + updateTermDetails(o.getUpdateTermDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateTermRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateTermRequest + */ + public UpdateTermRequest build() { + UpdateTermRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UploadCredentialsRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UploadCredentialsRequest.java new file mode 100644 index 00000000000..b30d34da986 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UploadCredentialsRequest.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UploadCredentialsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * Unique connection key. + */ + private String connectionKey; + + /** + * The information used to upload the credentials file and metadata for updating this connection. + */ + private UploadCredentialsDetails uploadCredentialsDetails; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UploadCredentialsRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + connectionKey(o.getConnectionKey()); + uploadCredentialsDetails(o.getUploadCredentialsDetails()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UploadCredentialsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UploadCredentialsRequest + */ + public UploadCredentialsRequest build() { + UploadCredentialsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UsersRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UsersRequest.java new file mode 100644 index 00000000000..83a32684761 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/UsersRequest.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UsersRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default. + * + **/ + public enum SortBy { + Timecreated("TIMECREATED"), + Displayname("DISPLAYNAME"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UsersRequest o) { + catalogId(o.getCatalogId()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UsersRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UsersRequest + */ + public UsersRequest build() { + UsersRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ValidateConnectionRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ValidateConnectionRequest.java new file mode 100644 index 00000000000..8f933fa7fc1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ValidateConnectionRequest.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ValidateConnectionRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique catalog identifier. + */ + private String catalogId; + + /** + * Unique data asset key. + */ + private String dataAssetKey; + + /** + * The information used to validate the connections. + */ + private ValidateConnectionDetails validateConnectionDetails; + + /** + * The client request ID for tracing. + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateConnectionRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + validateConnectionDetails(o.getValidateConnectionDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ValidateConnectionRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ValidateConnectionRequest + */ + public ValidateConnectionRequest build() { + ValidateConnectionRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ChangeCatalogCompartmentResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ChangeCatalogCompartmentResponse.java new file mode 100644 index 00000000000..fe09ab6b413 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ChangeCatalogCompartmentResponse.java @@ -0,0 +1,39 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ChangeCatalogCompartmentResponse { + + /** + * Unique 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 asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeCatalogCompartmentResponse o) { + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeResponse.java new file mode 100644 index 00000000000..b109fb89655 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateAttributeResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Attribute instance. + */ + private Attribute attribute; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateAttributeResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attribute(o.getAttribute()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeTagResponse.java new file mode 100644 index 00000000000..7687da75138 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateAttributeTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateAttributeTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned AttributeTag instance. + */ + private AttributeTag attributeTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateAttributeTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attributeTag(o.getAttributeTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateCatalogResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateCatalogResponse.java new file mode 100644 index 00000000000..c7dd5087106 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateCatalogResponse.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateCatalogResponse { + + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + private String 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateCatalogResponse o) { + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateConnectionResponse.java new file mode 100644 index 00000000000..ed7ee7287dd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Connection instance. + */ + private Connection connection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + connection(o.getConnection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetResponse.java new file mode 100644 index 00000000000..1666a07a4aa --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateDataAssetResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned DataAsset instance. + */ + private DataAsset dataAsset; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDataAssetResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dataAsset(o.getDataAsset()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetTagResponse.java new file mode 100644 index 00000000000..aea85fdd357 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateDataAssetTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateDataAssetTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned DataAssetTag instance. + */ + private DataAssetTag dataAssetTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDataAssetTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dataAssetTag(o.getDataAssetTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityResponse.java new file mode 100644 index 00000000000..9db17a4405b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateEntityResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Entity instance. + */ + private Entity entity; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEntityResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + entity(o.getEntity()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityTagResponse.java new file mode 100644 index 00000000000..8f4151156cf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateEntityTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateEntityTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned EntityTag instance. + */ + private EntityTag entityTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateEntityTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + entityTag(o.getEntityTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderResponse.java new file mode 100644 index 00000000000..ab199f95055 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateFolderResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Folder instance. + */ + private Folder folder; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateFolderResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + folder(o.getFolder()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderTagResponse.java new file mode 100644 index 00000000000..9d7accb63e5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateFolderTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateFolderTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned FolderTag instance. + */ + private FolderTag folderTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateFolderTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + folderTag(o.getFolderTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateGlossaryResponse.java new file mode 100644 index 00000000000..132b37ce499 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateGlossaryResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Glossary instance. + */ + private Glossary glossary; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + glossary(o.getGlossary()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobDefinitionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobDefinitionResponse.java new file mode 100644 index 00000000000..ea8c2596a88 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobDefinitionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateJobDefinitionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobDefinition instance. + */ + private JobDefinition jobDefinition; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobDefinitionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobDefinition(o.getJobDefinition()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobExecutionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobExecutionResponse.java new file mode 100644 index 00000000000..9a71c368c52 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobExecutionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateJobExecutionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobExecution instance. + */ + private JobExecution jobExecution; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobExecutionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobExecution(o.getJobExecution()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobResponse.java new file mode 100644 index 00000000000..e72a8cf09a7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateJobResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateJobResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Job instance. + */ + private Job job; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateJobResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + job(o.getJob()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermRelationshipResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermRelationshipResponse.java new file mode 100644 index 00000000000..a4c0f696953 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermRelationshipResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateTermRelationshipResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned TermRelationship instance. + */ + private TermRelationship termRelationship; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateTermRelationshipResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + termRelationship(o.getTermRelationship()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermResponse.java new file mode 100644 index 00000000000..21a54e11e1a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/CreateTermResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateTermResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Term instance. + */ + private Term term; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateTermResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + term(o.getTerm()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeResponse.java new file mode 100644 index 00000000000..172c72dca93 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteAttributeResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteAttributeResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeTagResponse.java new file mode 100644 index 00000000000..3400d936f62 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteAttributeTagResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteAttributeTagResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteAttributeTagResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteCatalogResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteCatalogResponse.java new file mode 100644 index 00000000000..866c14f98ca --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteCatalogResponse.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteCatalogResponse { + + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + private String 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteCatalogResponse o) { + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteConnectionResponse.java new file mode 100644 index 00000000000..64cbfbe7f45 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteConnectionResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteConnectionResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteConnectionResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetResponse.java new file mode 100644 index 00000000000..2fb5398556b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteDataAssetResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataAssetResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetTagResponse.java new file mode 100644 index 00000000000..e61de72a858 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteDataAssetTagResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteDataAssetTagResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteDataAssetTagResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityResponse.java new file mode 100644 index 00000000000..89ae4455547 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteEntityResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteEntityResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityTagResponse.java new file mode 100644 index 00000000000..aed3e0284f8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteEntityTagResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteEntityTagResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteEntityTagResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderResponse.java new file mode 100644 index 00000000000..3503969f0d1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteFolderResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteFolderResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderTagResponse.java new file mode 100644 index 00000000000..f1f0794c10b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteFolderTagResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteFolderTagResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteFolderTagResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteGlossaryResponse.java new file mode 100644 index 00000000000..32ab67c9357 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteGlossaryResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteGlossaryResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteGlossaryResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobDefinitionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobDefinitionResponse.java new file mode 100644 index 00000000000..804df6d5270 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobDefinitionResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteJobDefinitionResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteJobDefinitionResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobResponse.java new file mode 100644 index 00000000000..32beded2b8d --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteJobResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteJobResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteJobResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermRelationshipResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermRelationshipResponse.java new file mode 100644 index 00000000000..e54ceb630ca --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermRelationshipResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteTermRelationshipResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteTermRelationshipResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermResponse.java new file mode 100644 index 00000000000..02679ecab65 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/DeleteTermResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteTermResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteTermResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExpandTreeForGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExpandTreeForGlossaryResponse.java new file mode 100644 index 00000000000..4522a63cd2e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExpandTreeForGlossaryResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ExpandTreeForGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of GlossaryTreeElement instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExpandTreeForGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExportGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExportGlossaryResponse.java new file mode 100644 index 00000000000..fdc043a6175 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ExportGlossaryResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ExportGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned String instance. + */ + private String value; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ExportGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + value(o.getValue()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeResponse.java new file mode 100644 index 00000000000..aca0d59ad7b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetAttributeResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Attribute instance. + */ + private Attribute attribute; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAttributeResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attribute(o.getAttribute()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeTagResponse.java new file mode 100644 index 00000000000..efe1888976b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetAttributeTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetAttributeTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned AttributeTag instance. + */ + private AttributeTag attributeTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAttributeTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attributeTag(o.getAttributeTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetCatalogResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetCatalogResponse.java new file mode 100644 index 00000000000..ffdbaf4ebd1 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetCatalogResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetCatalogResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Catalog instance. + */ + private Catalog catalog; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCatalogResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + catalog(o.getCatalog()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetConnectionResponse.java new file mode 100644 index 00000000000..9af60e6fb0f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Connection instance. + */ + private Connection connection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + connection(o.getConnection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetResponse.java new file mode 100644 index 00000000000..0b26ceda65f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetDataAssetResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned DataAsset instance. + */ + private DataAsset dataAsset; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataAssetResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dataAsset(o.getDataAsset()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetTagResponse.java new file mode 100644 index 00000000000..a6776915251 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetDataAssetTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetDataAssetTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned DataAssetTag instance. + */ + private DataAssetTag dataAssetTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataAssetTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dataAssetTag(o.getDataAssetTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityResponse.java new file mode 100644 index 00000000000..3b623da21d7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetEntityResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Entity instance. + */ + private Entity entity; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEntityResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + entity(o.getEntity()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityTagResponse.java new file mode 100644 index 00000000000..291433ea22c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetEntityTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetEntityTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned EntityTag instance. + */ + private EntityTag entityTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetEntityTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + entityTag(o.getEntityTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderResponse.java new file mode 100644 index 00000000000..544822dace8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetFolderResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Folder instance. + */ + private Folder folder; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetFolderResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + folder(o.getFolder()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderTagResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderTagResponse.java new file mode 100644 index 00000000000..d7f67a34505 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetFolderTagResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetFolderTagResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned FolderTag instance. + */ + private FolderTag folderTag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetFolderTagResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + folderTag(o.getFolderTag()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetGlossaryResponse.java new file mode 100644 index 00000000000..6ef54e347fc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetGlossaryResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Glossary instance. + */ + private Glossary glossary; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + glossary(o.getGlossary()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobDefinitionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobDefinitionResponse.java new file mode 100644 index 00000000000..63075cbfc85 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobDefinitionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetJobDefinitionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobDefinition instance. + */ + private JobDefinition jobDefinition; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobDefinitionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobDefinition(o.getJobDefinition()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobExecutionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobExecutionResponse.java new file mode 100644 index 00000000000..f82ff0ecc04 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobExecutionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetJobExecutionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobExecution instance. + */ + private JobExecution jobExecution; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobExecutionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobExecution(o.getJobExecution()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobLogResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobLogResponse.java new file mode 100644 index 00000000000..e44b416f41f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobLogResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetJobLogResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobLog instance. + */ + private JobLog jobLog; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobLogResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobLog(o.getJobLog()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobMetricsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobMetricsResponse.java new file mode 100644 index 00000000000..a3581dc8fd4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobMetricsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetJobMetricsResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobMetric instance. + */ + private JobMetric jobMetric; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobMetricsResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobMetric(o.getJobMetric()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobResponse.java new file mode 100644 index 00000000000..417559ebe0e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetJobResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetJobResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Job instance. + */ + private Job job; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetJobResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + job(o.getJob()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermRelationshipResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermRelationshipResponse.java new file mode 100644 index 00000000000..32e5773cfcc --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermRelationshipResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetTermRelationshipResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned TermRelationship instance. + */ + private TermRelationship termRelationship; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTermRelationshipResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + termRelationship(o.getTermRelationship()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermResponse.java new file mode 100644 index 00000000000..60c251ea4ac --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTermResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetTermResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Term instance. + */ + private Term term; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTermResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + term(o.getTerm()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTypeResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTypeResponse.java new file mode 100644 index 00000000000..fc4c89a46c2 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetTypeResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetTypeResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Type instance. + */ + private Type type; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetTypeResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + type(o.getType()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetWorkRequestResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..89e23ac0959 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/GetWorkRequestResponse.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetWorkRequestResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A non-negative integer representing the number of seconds the client should wait + * before polling this endpoint again. + * + */ + private Integer retryAfter; + + /** + * The returned WorkRequest instance. + */ + private WorkRequest workRequest; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportConnectionResponse.java new file mode 100644 index 00000000000..ab278d9180c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ImportConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Connection instance. + */ + private Connection connection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ImportConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + connection(o.getConnection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportGlossaryResponse.java new file mode 100644 index 00000000000..f18bd92b0d5 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportGlossaryResponse.java @@ -0,0 +1,38 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ImportGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ImportGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributeTagsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributeTagsResponse.java new file mode 100644 index 00000000000..9c375c3e831 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributeTagsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListAttributeTagsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned AttributeTagCollection instance. + */ + private AttributeTagCollection attributeTagCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAttributeTagsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + attributeTagCollection(o.getAttributeTagCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributesResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributesResponse.java new file mode 100644 index 00000000000..f05d4bec64c --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListAttributesResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListAttributesResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned AttributeCollection instance. + */ + private AttributeCollection attributeCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAttributesResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + attributeCollection(o.getAttributeCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListCatalogsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListCatalogsResponse.java new file mode 100644 index 00000000000..55b19d70ad4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListCatalogsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListCatalogsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * A list of CatalogSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCatalogsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListConnectionsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListConnectionsResponse.java new file mode 100644 index 00000000000..18fc8bf5908 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListConnectionsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListConnectionsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned ConnectionCollection instance. + */ + private ConnectionCollection connectionCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListConnectionsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + connectionCollection(o.getConnectionCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetTagsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetTagsResponse.java new file mode 100644 index 00000000000..0baa447b24a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetTagsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListDataAssetTagsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned DataAssetTagCollection instance. + */ + private DataAssetTagCollection dataAssetTagCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataAssetTagsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataAssetTagCollection(o.getDataAssetTagCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetsResponse.java new file mode 100644 index 00000000000..ae7f5fe09d6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListDataAssetsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListDataAssetsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned DataAssetCollection instance. + */ + private DataAssetCollection dataAssetCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataAssetsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataAssetCollection(o.getDataAssetCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntitiesResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntitiesResponse.java new file mode 100644 index 00000000000..a6a6892a09a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntitiesResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListEntitiesResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned EntityCollection instance. + */ + private EntityCollection entityCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListEntitiesResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + entityCollection(o.getEntityCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntityTagsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntityTagsResponse.java new file mode 100644 index 00000000000..5c2f96ec883 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListEntityTagsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListEntityTagsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned EntityTagCollection instance. + */ + private EntityTagCollection entityTagCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListEntityTagsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + entityTagCollection(o.getEntityTagCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFolderTagsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFolderTagsResponse.java new file mode 100644 index 00000000000..78e578c79e0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFolderTagsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListFolderTagsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned FolderTagCollection instance. + */ + private FolderTagCollection folderTagCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListFolderTagsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + folderTagCollection(o.getFolderTagCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFoldersResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFoldersResponse.java new file mode 100644 index 00000000000..f58b1c4c150 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListFoldersResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListFoldersResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned FolderCollection instance. + */ + private FolderCollection folderCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListFoldersResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + folderCollection(o.getFolderCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListGlossariesResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListGlossariesResponse.java new file mode 100644 index 00000000000..98cad4e396a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListGlossariesResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListGlossariesResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned GlossaryCollection instance. + */ + private GlossaryCollection glossaryCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListGlossariesResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + glossaryCollection(o.getGlossaryCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobDefinitionsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobDefinitionsResponse.java new file mode 100644 index 00000000000..28686905050 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobDefinitionsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListJobDefinitionsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned JobDefinitionCollection instance. + */ + private JobDefinitionCollection jobDefinitionCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobDefinitionsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + jobDefinitionCollection(o.getJobDefinitionCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobExecutionsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobExecutionsResponse.java new file mode 100644 index 00000000000..442063973a0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobExecutionsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListJobExecutionsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned JobExecutionCollection instance. + */ + private JobExecutionCollection jobExecutionCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobExecutionsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + jobExecutionCollection(o.getJobExecutionCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobLogsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobLogsResponse.java new file mode 100644 index 00000000000..61d51778ed8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobLogsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListJobLogsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned JobLogCollection instance. + */ + private JobLogCollection jobLogCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobLogsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + jobLogCollection(o.getJobLogCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobMetricsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobMetricsResponse.java new file mode 100644 index 00000000000..157f4303c1f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobMetricsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListJobMetricsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned JobMetricCollection instance. + */ + private JobMetricCollection jobMetricCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobMetricsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + jobMetricCollection(o.getJobMetricCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobsResponse.java new file mode 100644 index 00000000000..af33d8f96d0 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListJobsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListJobsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned JobCollection instance. + */ + private JobCollection jobCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListJobsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + jobCollection(o.getJobCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTagsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTagsResponse.java new file mode 100644 index 00000000000..ed72210e527 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTagsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListTagsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned TermCollection instance. + */ + private TermCollection termCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTagsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + termCollection(o.getTermCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermRelationshipsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermRelationshipsResponse.java new file mode 100644 index 00000000000..a7551b23195 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermRelationshipsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListTermRelationshipsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned TermRelationshipCollection instance. + */ + private TermRelationshipCollection termRelationshipCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTermRelationshipsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + termRelationshipCollection(o.getTermRelationshipCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermsResponse.java new file mode 100644 index 00000000000..3a3c10c0d1a --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTermsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListTermsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned TermCollection instance. + */ + private TermCollection termCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTermsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + termCollection(o.getTermCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTypesResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTypesResponse.java new file mode 100644 index 00000000000..18a0c9efec7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListTypesResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListTypesResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned TypeCollection instance. + */ + private TypeCollection typeCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListTypesResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + typeCollection(o.getTypeCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestErrorsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..81257d10398 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListWorkRequestErrorsResponse { + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of WorkRequestError instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsResponse o) { + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestLogsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..7b91ac41439 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListWorkRequestLogsResponse { + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of WorkRequestLog instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsResponse o) { + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..f3b6ec359b7 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ListWorkRequestsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListWorkRequestsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * A list of WorkRequest instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ObjectStatsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ObjectStatsResponse.java new file mode 100644 index 00000000000..7029dc2b494 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ObjectStatsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ObjectStatsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned String instance. + */ + private String value; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ObjectStatsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + value(o.getValue()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ParseConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ParseConnectionResponse.java new file mode 100644 index 00000000000..cc0efffb745 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ParseConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ParseConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of ConnectionAliasSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ParseConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/SearchCriteriaResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/SearchCriteriaResponse.java new file mode 100644 index 00000000000..9aa5be509f6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/SearchCriteriaResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class SearchCriteriaResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned SearchResultCollection instance. + */ + private SearchResultCollection searchResultCollection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SearchCriteriaResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + searchResultCollection(o.getSearchResultCollection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/TestConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/TestConnectionResponse.java new file mode 100644 index 00000000000..adb5c4d9589 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/TestConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class TestConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ValidateConnectionResult instance. + */ + private ValidateConnectionResult validateConnectionResult; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(TestConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + validateConnectionResult(o.getValidateConnectionResult()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateAttributeResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateAttributeResponse.java new file mode 100644 index 00000000000..e7fb19fffd6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateAttributeResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateAttributeResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Attribute instance. + */ + private Attribute attribute; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateAttributeResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + attribute(o.getAttribute()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateCatalogResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateCatalogResponse.java new file mode 100644 index 00000000000..d1a630afdcd --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateCatalogResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateCatalogResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Catalog instance. + */ + private Catalog catalog; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateCatalogResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + catalog(o.getCatalog()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateConnectionResponse.java new file mode 100644 index 00000000000..0669229f6e8 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Connection instance. + */ + private Connection connection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + connection(o.getConnection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateDataAssetResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateDataAssetResponse.java new file mode 100644 index 00000000000..87dcae247f6 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateDataAssetResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateDataAssetResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned DataAsset instance. + */ + private DataAsset dataAsset; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDataAssetResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + dataAsset(o.getDataAsset()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateEntityResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateEntityResponse.java new file mode 100644 index 00000000000..fb55a2a5279 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateEntityResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateEntityResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Entity instance. + */ + private Entity entity; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateEntityResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + entity(o.getEntity()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateFolderResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateFolderResponse.java new file mode 100644 index 00000000000..c8bfc080fcf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateFolderResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateFolderResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Folder instance. + */ + private Folder folder; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateFolderResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + folder(o.getFolder()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateGlossaryResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateGlossaryResponse.java new file mode 100644 index 00000000000..c14d4784bff --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateGlossaryResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateGlossaryResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Glossary instance. + */ + private Glossary glossary; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateGlossaryResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + glossary(o.getGlossary()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobDefinitionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobDefinitionResponse.java new file mode 100644 index 00000000000..6f30ca6261e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobDefinitionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateJobDefinitionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned JobDefinition instance. + */ + private JobDefinition jobDefinition; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateJobDefinitionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + jobDefinition(o.getJobDefinition()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobResponse.java new file mode 100644 index 00000000000..8d7d7cf5131 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateJobResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateJobResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Job instance. + */ + private Job job; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateJobResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + job(o.getJob()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermRelationshipResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermRelationshipResponse.java new file mode 100644 index 00000000000..3acf78025a4 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermRelationshipResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateTermRelationshipResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned TermRelationship instance. + */ + private TermRelationship termRelationship; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateTermRelationshipResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + termRelationship(o.getTermRelationship()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermResponse.java new file mode 100644 index 00000000000..53d30381dcf --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UpdateTermResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateTermResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Term instance. + */ + private Term term; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateTermResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + term(o.getTerm()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UploadCredentialsResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UploadCredentialsResponse.java new file mode 100644 index 00000000000..86fa9f4fd18 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UploadCredentialsResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UploadCredentialsResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Connection instance. + */ + private Connection connection; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UploadCredentialsResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + connection(o.getConnection()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UsersResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UsersResponse.java new file mode 100644 index 00000000000..2e2b318c09f --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/UsersResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UsersResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * The returned String instance. + */ + private String value; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UsersResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + value(o.getValue()); + + return this; + } + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ValidateConnectionResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ValidateConnectionResponse.java new file mode 100644 index 00000000000..bbc347b70cb --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ValidateConnectionResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ValidateConnectionResponse { + + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ValidateConnectionResult instance. + */ + private ValidateConnectionResult validateConnectionResult; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ValidateConnectionResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + validateConnectionResult(o.getValidateConnectionResult()); + + return this; + } + } +} diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml new file mode 100644 index 00000000000..df0a3d17ced --- /dev/null +++ b/bmc-dataflow/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + com.oracle.oci.sdk + oci-java-sdk + 1.12.4 + ../pom.xml + + oci-java-sdk-dataflow + Oracle Cloud Infrastructure SDK - Data Flow + This project contains the SDK used for Oracle Cloud Infrastructure Data Flow + https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm + + + com.oracle.oci.sdk + oci-java-sdk-common + 1.12.4 + + + \ No newline at end of file diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlow.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlow.java new file mode 100644 index 00000000000..6d67aeadb3a --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlow.java @@ -0,0 +1,163 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +public interface DataFlow extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Creates an application. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + CreateApplicationResponse createApplication(CreateApplicationRequest request); + + /** + * Creates a run for an application. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + CreateRunResponse createRun(CreateRunRequest request); + + /** + * Deletes an application using an `applicationId`. + * + * @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. + */ + DeleteApplicationResponse deleteApplication(DeleteApplicationRequest request); + + /** + * Cancels the specified run if it has not already completed or was previously cancelled. + * If a run is in progress, the executing job will be killed. + * + * @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. + */ + DeleteRunResponse deleteRun(DeleteRunRequest request); + + /** + * Retrieves an application using an `applicationId`. + * + * @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. + */ + GetApplicationResponse getApplication(GetApplicationRequest request); + + /** + * Retrieves the run for the specified `runId`. + * + * @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. + */ + GetRunResponse getRun(GetRunRequest request); + + /** + * Retrieves the content of an run log. + * + * @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. + */ + GetRunLogResponse getRunLog(GetRunLogRequest request); + + /** + * Lists all applications in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListApplicationsResponse listApplications(ListApplicationsRequest request); + + /** + * Retrieves summaries of the run's logs. + * + * @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. + */ + ListRunLogsResponse listRunLogs(ListRunLogsRequest request); + + /** + * Lists all runs of an application in the specified compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListRunsResponse listRuns(ListRunsRequest request); + + /** + * Updates an application using an `applicationId`. + * + * @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. + */ + UpdateApplicationResponse updateApplication(UpdateApplicationRequest request); + + /** + * Updates a run using a `runId`. + * + * @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. + */ + UpdateRunResponse updateRun(UpdateRunRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DataFlowWaiters 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. + */ + DataFlowPaginators getPaginators(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsync.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsync.java new file mode 100644 index 00000000000..34558079688 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsync.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +public interface DataFlowAsync extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Creates an application. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createApplication( + CreateApplicationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateApplicationRequest, CreateApplicationResponse> + handler); + + /** + * Creates a run for an application. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createRun( + CreateRunRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Deletes an application using an `applicationId`. + * + * + * @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 deleteApplication( + DeleteApplicationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteApplicationRequest, DeleteApplicationResponse> + handler); + + /** + * Cancels the specified run if it has not already completed or was previously cancelled. + * If a run is in progress, the executing job will be killed. + * + * + * @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 deleteRun( + DeleteRunRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Retrieves an application using an `applicationId`. + * + * + * @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 getApplication( + GetApplicationRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Retrieves the run for the specified `runId`. + * + * + * @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 getRun( + GetRunRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Retrieves the content of an run log. + * + * + * @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 getRunLog( + GetRunLogRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Lists all applications in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listApplications( + ListApplicationsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Retrieves summaries of the run's logs. + * + * + * @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 listRunLogs( + ListRunLogsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Lists all runs of an application in the specified compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listRuns( + ListRunsRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates an application using an `applicationId`. + * + * + * @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 updateApplication( + UpdateApplicationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateApplicationRequest, UpdateApplicationResponse> + handler); + + /** + * Updates a run using a `runId`. + * + * + * @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 updateRun( + UpdateRunRequest request, + com.oracle.bmc.responses.AsyncHandler handler); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java new file mode 100644 index 00000000000..f00f4893820 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java @@ -0,0 +1,1237 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import java.util.Locale; +import com.oracle.bmc.dataflow.internal.http.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +/** + * Async client implementation for DataFlow service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class DataFlowAsyncClient implements DataFlowAsync { + /** + * Service instance for DataFlow. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DATAFLOW") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dataflow.{region}.oci.{secondLevelDomain}") + .build(); + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DataFlowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public DataFlowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public DataFlowAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public DataFlowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + this.client = restClientFactory.create(defaultRequestSigner, requestSigners, configuration); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DataFlowAsyncClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DataFlowAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + additionalClientConfigurators, + endpoint); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future createApplication( + final CreateApplicationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateApplicationRequest, CreateApplicationResponse> + handler) { + LOG.trace("Called async createApplication"); + final CreateApplicationRequest interceptedRequest = + CreateApplicationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateApplicationConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateApplicationConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateApplicationRequest, CreateApplicationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateApplicationResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createRun( + final CreateRunRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createRun"); + final CreateRunRequest interceptedRequest = CreateRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateRunConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateRunConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateRunRequest, CreateRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateRunDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateRunDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateRunResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateRunDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteApplication( + final DeleteApplicationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteApplicationRequest, DeleteApplicationResponse> + handler) { + LOG.trace("Called async deleteApplication"); + final DeleteApplicationRequest interceptedRequest = + DeleteApplicationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteApplicationConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteApplicationConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteApplicationRequest, DeleteApplicationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteApplicationResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteRun( + final DeleteRunRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteRun"); + final DeleteRunRequest interceptedRequest = DeleteRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRunConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteRunConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteRunRequest, DeleteRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteRunResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getApplication( + final GetApplicationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetApplicationRequest, GetApplicationResponse> + handler) { + LOG.trace("Called async getApplication"); + final GetApplicationRequest interceptedRequest = + GetApplicationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetApplicationConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetApplicationConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetApplicationRequest, GetApplicationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetApplicationResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getRun( + final GetRunRequest request, + final com.oracle.bmc.responses.AsyncHandler handler) { + LOG.trace("Called async getRun"); + final GetRunRequest interceptedRequest = GetRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRunConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetRunConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetRunRequest, GetRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetRunResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getRunLog( + final GetRunLogRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getRunLog"); + final GetRunLogRequest interceptedRequest = GetRunLogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRunLogConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetRunLogConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetRunLogRequest, GetRunLogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetRunLogResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listApplications( + final ListApplicationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListApplicationsRequest, ListApplicationsResponse> + handler) { + LOG.trace("Called async listApplications"); + final ListApplicationsRequest interceptedRequest = + ListApplicationsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListApplicationsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListApplicationsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListApplicationsRequest, ListApplicationsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListApplicationsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listRunLogs( + final ListRunLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listRunLogs"); + final ListRunLogsRequest interceptedRequest = + ListRunLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRunLogsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListRunLogsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListRunLogsRequest, ListRunLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListRunLogsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listRuns( + final ListRunsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listRuns"); + final ListRunsRequest interceptedRequest = ListRunsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRunsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListRunsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListRunsRequest, ListRunsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListRunsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateApplication( + final UpdateApplicationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateApplicationRequest, UpdateApplicationResponse> + handler) { + LOG.trace("Called async updateApplication"); + final UpdateApplicationRequest interceptedRequest = + UpdateApplicationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateApplicationConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateApplicationConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateApplicationRequest, UpdateApplicationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateApplicationResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateApplicationDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateRun( + final UpdateRunRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateRun"); + final UpdateRunRequest interceptedRequest = UpdateRunConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRunConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateRunConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateRunRequest, UpdateRunResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateRunDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateRunDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateRunResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateRunDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowClient.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowClient.java new file mode 100644 index 00000000000..97d9e947871 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowClient.java @@ -0,0 +1,736 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import java.util.Locale; +import com.oracle.bmc.dataflow.internal.http.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class DataFlowClient implements DataFlow { + /** + * Service instance for DataFlow. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("DATAFLOW") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://dataflow.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private final DataFlowWaiters waiters; + + private final DataFlowPaginators paginators; + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DataFlowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public DataFlowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public DataFlowClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + */ + public DataFlowClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + final com.oracle.bmc.ClientConfiguration clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + this.client = + restClientFactory.create( + defaultRequestSigner, requestSigners, clientConfigurationToUse); + + 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(), + new com.google.common.util.concurrent.ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("DataFlow-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new DataFlowWaiters(executorService, this); + + this.paginators = new DataFlowPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public DataFlowClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new DataFlowClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public CreateApplicationResponse createApplication(CreateApplicationRequest request) { + LOG.trace("Called createApplication"); + final CreateApplicationRequest interceptedRequest = + CreateApplicationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateApplicationConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateApplicationConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateApplicationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateRunResponse createRun(CreateRunRequest request) { + LOG.trace("Called createRun"); + final CreateRunRequest interceptedRequest = CreateRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateRunConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + CreateRunConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateRunDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteApplicationResponse deleteApplication(DeleteApplicationRequest request) { + LOG.trace("Called deleteApplication"); + final DeleteApplicationRequest interceptedRequest = + DeleteApplicationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteApplicationConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteApplicationConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteRunResponse deleteRun(DeleteRunRequest request) { + LOG.trace("Called deleteRun"); + final DeleteRunRequest interceptedRequest = DeleteRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRunConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + DeleteRunConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetApplicationResponse getApplication(GetApplicationRequest request) { + LOG.trace("Called getApplication"); + final GetApplicationRequest interceptedRequest = + GetApplicationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetApplicationConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetApplicationConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetRunResponse getRun(GetRunRequest request) { + LOG.trace("Called getRun"); + final GetRunRequest interceptedRequest = GetRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRunConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetRunConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetRunLogResponse getRunLog(GetRunLogRequest request) { + LOG.trace("Called getRunLog"); + final GetRunLogRequest interceptedRequest = GetRunLogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRunLogConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + GetRunLogConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListApplicationsResponse listApplications(ListApplicationsRequest request) { + LOG.trace("Called listApplications"); + final ListApplicationsRequest interceptedRequest = + ListApplicationsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListApplicationsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListApplicationsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListRunLogsResponse listRunLogs(ListRunLogsRequest request) { + LOG.trace("Called listRunLogs"); + final ListRunLogsRequest interceptedRequest = + ListRunLogsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRunLogsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListRunLogsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListRunsResponse listRuns(ListRunsRequest request) { + LOG.trace("Called listRuns"); + final ListRunsRequest interceptedRequest = ListRunsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRunsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + ListRunsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateApplicationResponse updateApplication(UpdateApplicationRequest request) { + LOG.trace("Called updateApplication"); + final UpdateApplicationRequest interceptedRequest = + UpdateApplicationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateApplicationConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateApplicationConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateApplicationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateRunResponse updateRun(UpdateRunRequest request) { + LOG.trace("Called updateRun"); + final UpdateRunRequest interceptedRequest = UpdateRunConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRunConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function transformer = + UpdateRunConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateRunDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DataFlowWaiters getWaiters() { + return waiters; + } + + @Override + public DataFlowPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowPaginators.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowPaginators.java new file mode 100644 index 00000000000..1995af111b5 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowPaginators.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of DataFlow where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.RequiredArgsConstructor +public class DataFlowPaginators { + private final DataFlow client; + + /** + * Creates a new iterable which will iterate over the responses received from the listApplications 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 listApplicationsResponseIterator( + final ListApplicationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListApplicationsRequest.Builder, ListApplicationsRequest, ListApplicationsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListApplicationsRequest.Builder get() { + return ListApplicationsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListApplicationsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplicationsRequest.Builder>, + ListApplicationsRequest>() { + @Override + public ListApplicationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplicationsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListApplicationsRequest, ListApplicationsResponse>() { + @Override + public ListApplicationsResponse apply(ListApplicationsRequest request) { + return client.listApplications(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.dataflow.model.ApplicationSummary} objects + * contained in responses from the listApplications 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.dataflow.model.ApplicationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listApplicationsRecordIterator(final ListApplicationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListApplicationsRequest.Builder, ListApplicationsRequest, ListApplicationsResponse, + com.oracle.bmc.dataflow.model.ApplicationSummary>( + new com.google.common.base.Supplier() { + @Override + public ListApplicationsRequest.Builder get() { + return ListApplicationsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListApplicationsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplicationsRequest.Builder>, + ListApplicationsRequest>() { + @Override + public ListApplicationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplicationsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListApplicationsRequest, ListApplicationsResponse>() { + @Override + public ListApplicationsResponse apply(ListApplicationsRequest request) { + return client.listApplications(request); + } + }, + new com.google.common.base.Function< + ListApplicationsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListApplicationsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listRunLogs 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 listRunLogsResponseIterator( + final ListRunLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRunLogsRequest.Builder, ListRunLogsRequest, ListRunLogsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListRunLogsRequest.Builder get() { + return ListRunLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRunLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunLogsRequest.Builder>, + ListRunLogsRequest>() { + @Override + public ListRunLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunLogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListRunLogsResponse apply(ListRunLogsRequest request) { + return client.listRunLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.dataflow.model.RunLogSummary} objects + * contained in responses from the listRunLogs 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.dataflow.model.RunLogSummary} objects + * contained in responses received from the service. + */ + public Iterable listRunLogsRecordIterator( + final ListRunLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRunLogsRequest.Builder, ListRunLogsRequest, ListRunLogsResponse, + com.oracle.bmc.dataflow.model.RunLogSummary>( + new com.google.common.base.Supplier() { + @Override + public ListRunLogsRequest.Builder get() { + return ListRunLogsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRunLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunLogsRequest.Builder>, + ListRunLogsRequest>() { + @Override + public ListRunLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunLogsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListRunLogsResponse apply(ListRunLogsRequest request) { + return client.listRunLogs(request); + } + }, + new com.google.common.base.Function< + ListRunLogsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListRunLogsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listRuns 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 listRunsResponseIterator(final ListRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListRunsRequest.Builder, ListRunsRequest, ListRunsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListRunsRequest.Builder get() { + return ListRunsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunsRequest.Builder>, + ListRunsRequest>() { + @Override + public ListRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListRunsResponse apply(ListRunsRequest request) { + return client.listRuns(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.dataflow.model.RunSummary} objects + * contained in responses from the listRuns 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.dataflow.model.RunSummary} objects + * contained in responses received from the service. + */ + public Iterable listRunsRecordIterator( + final ListRunsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListRunsRequest.Builder, ListRunsRequest, ListRunsResponse, + com.oracle.bmc.dataflow.model.RunSummary>( + new com.google.common.base.Supplier() { + @Override + public ListRunsRequest.Builder get() { + return ListRunsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListRunsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunsRequest.Builder>, + ListRunsRequest>() { + @Override + public ListRunsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListRunsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function() { + @Override + public ListRunsResponse apply(ListRunsRequest request) { + return client.listRuns(request); + } + }, + new com.google.common.base.Function< + ListRunsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListRunsResponse response) { + return response.getItems(); + } + }); + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowWaiters.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowWaiters.java new file mode 100644 index 00000000000..1886a301598 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowWaiters.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow; + +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of DataFlow. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.RequiredArgsConstructor +public class DataFlowWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final DataFlow client; + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forApplication( + GetApplicationRequest request, + com.oracle.bmc.dataflow.model.ApplicationLifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forApplication( + 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 + forApplication( + GetApplicationRequest request, + com.oracle.bmc.dataflow.model.ApplicationLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forApplication( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forApplication( + GetApplicationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.dataflow.model.ApplicationLifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forApplication( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Application. + private com.oracle.bmc.waiter.Waiter + forApplication( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetApplicationRequest request, + final com.oracle.bmc.dataflow.model.ApplicationLifecycleState... 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( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetApplicationRequest, GetApplicationResponse>() { + @Override + public GetApplicationResponse apply(GetApplicationRequest request) { + return client.getApplication(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetApplicationResponse response) { + return targetStatesSet.contains( + response.getApplication().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.dataflow.model.ApplicationLifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forRun( + GetRunRequest request, + com.oracle.bmc.dataflow.model.RunLifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forRun(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 forRun( + GetRunRequest request, + com.oracle.bmc.dataflow.model.RunLifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forRun( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forRun( + GetRunRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.dataflow.model.RunLifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forRun( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Run. + private com.oracle.bmc.waiter.Waiter forRun( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetRunRequest request, + final com.oracle.bmc.dataflow.model.RunLifecycleState... 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( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function() { + @Override + public GetRunResponse apply(GetRunRequest request) { + return client.getRun(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetRunResponse response) { + return targetStatesSet.contains( + response.getRun().getLifecycleState()); + } + }, + false), + request); + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateApplicationConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateApplicationConverter.java new file mode 100644 index 00000000000..1ebae99b5f4 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateApplicationConverter.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class CreateApplicationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateApplicationRequest interceptRequest(CreateApplicationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateApplicationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateApplicationDetails(), "createApplicationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200129").path("applications"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplicationResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplicationResponse>() { + @Override + public CreateApplicationResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateApplicationResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Application>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Application.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateApplicationResponse.Builder builder = + CreateApplicationResponse.builder(); + + builder.application(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateApplicationResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateRunConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateRunConverter.java new file mode 100644 index 00000000000..df115a0f27b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/CreateRunConverter.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class CreateRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateRunRequest interceptRequest(CreateRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, CreateRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreateRunDetails(), "createRunDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200129").path("runs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateRunResponse>() { + @Override + public CreateRunResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for CreateRunResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Run.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateRunResponse.Builder builder = CreateRunResponse.builder(); + + builder.run(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + CreateRunResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteApplicationConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteApplicationConverter.java new file mode 100644 index 00000000000..f5be846e95a --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteApplicationConverter.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class DeleteApplicationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteApplicationRequest interceptRequest(DeleteApplicationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteApplicationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getApplicationId(), "applicationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("applications") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplicationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplicationResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplicationResponse>() { + @Override + public DeleteApplicationResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteApplicationResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteApplicationResponse.Builder builder = + DeleteApplicationResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteApplicationResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteRunConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteRunConverter.java new file mode 100644 index 00000000000..2c18fb50205 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/DeleteRunConverter.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class DeleteRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteRunRequest interceptRequest(DeleteRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, DeleteRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRunId(), "runId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("runs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRunId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteRunResponse>() { + @Override + public DeleteRunResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for DeleteRunResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteRunResponse.Builder builder = DeleteRunResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteRunResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetApplicationConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetApplicationConverter.java new file mode 100644 index 00000000000..379233f235b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetApplicationConverter.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class GetApplicationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetApplicationRequest interceptRequest(GetApplicationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetApplicationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getApplicationId(), "applicationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("applications") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplicationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetApplicationResponse>() { + @Override + public GetApplicationResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetApplicationResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Application>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Application.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetApplicationResponse.Builder builder = + GetApplicationResponse.builder(); + + builder.application(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetApplicationResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunConverter.java new file mode 100644 index 00000000000..0acee2b14f1 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunConverter.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class GetRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetRunRequest interceptRequest(GetRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRunId(), "runId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("runs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRunId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetRunResponse>() { + @Override + public GetRunResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetRunResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Run.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetRunResponse.Builder builder = GetRunResponse.builder(); + + builder.run(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + GetRunResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunLogConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunLogConverter.java new file mode 100644 index 00000000000..3541419ac82 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/GetRunLogConverter.java @@ -0,0 +1,157 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class GetRunLogConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetRunLogRequest interceptRequest(GetRunLogRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetRunLogRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRunId(), "runId must not be blank"); + Validate.notBlank(request.getName(), "name must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("runs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRunId())) + .path("logs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getName())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept("application/octet-stream"); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetRunLogResponse>() { + @Override + public GetRunLogResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for GetRunLogResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.io.InputStream>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + java.io.InputStream.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetRunLogResponse.Builder builder = GetRunLogResponse.builder(); + + builder.inputStream(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + contentLengthHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "content-length"); + if (contentLengthHeader.isPresent()) { + builder.contentLength( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-length", + contentLengthHeader.get().get(0), + Long.class)); + } + + com.google.common.base.Optional> + contentTypeHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "content-type"); + if (contentTypeHeader.isPresent()) { + builder.contentType( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-type", + contentTypeHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + contentEncodingHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "content-encoding"); + if (contentEncodingHeader.isPresent()) { + builder.contentEncoding( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-encoding", + contentEncodingHeader.get().get(0), + String.class)); + } + + java.util.Map opcMeta = new java.util.HashMap<>(); + String opcMetaPattern = + "opc-meta-".toLowerCase(java.util.Locale.ROOT); + for (java.util.Map.Entry> header : + headers.entrySet()) { + if (header.getKey() + .toLowerCase(java.util.Locale.ROOT) + .startsWith(opcMetaPattern)) { + opcMeta.put(header.getKey(), header.getValue().get(0)); + } + } + if (opcMeta.size() > 0) { + builder.opcMeta(opcMeta); + } + + GetRunLogResponse responseWrapper = builder.build(); + + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListApplicationsConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListApplicationsConverter.java new file mode 100644 index 00000000000..623552dde4f --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListApplicationsConverter.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class ListApplicationsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListApplicationsRequest interceptRequest(ListApplicationsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListApplicationsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200129").path("applications"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getOwnerPrincipalId() != null) { + target = + target.queryParam( + "ownerPrincipalId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOwnerPrincipalId())); + } + + if (request.getDisplayNameStartsWith() != null) { + target = + target.queryParam( + "displayNameStartsWith", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameStartsWith())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplicationsResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplicationsResponse>() { + @Override + public ListApplicationsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListApplicationsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ApplicationSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListApplicationsResponse.Builder builder = + ListApplicationsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ListApplicationsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunLogsConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunLogsConverter.java new file mode 100644 index 00000000000..13279e0c650 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunLogsConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class ListRunLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListRunLogsRequest interceptRequest(ListRunLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListRunLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRunId(), "runId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("runs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRunId())) + .path("logs"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListRunLogsResponse>() { + @Override + public ListRunLogsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListRunLogsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + RunLogSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListRunLogsResponse.Builder builder = ListRunLogsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListRunLogsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunsConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunsConverter.java new file mode 100644 index 00000000000..81ed6e87bd8 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/ListRunsConverter.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class ListRunsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListRunsRequest interceptRequest(ListRunsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, ListRunsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20200129").path("runs"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getApplicationId() != null) { + target = + target.queryParam( + "applicationId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getApplicationId())); + } + + if (request.getOwnerPrincipalId() != null) { + target = + target.queryParam( + "ownerPrincipalId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOwnerPrincipalId())); + } + + if (request.getDisplayNameStartsWith() != null) { + target = + target.queryParam( + "displayNameStartsWith", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayNameStartsWith())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getTimeCreatedGreaterThan() != null) { + target = + target.queryParam( + "timeCreatedGreaterThan", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreatedGreaterThan())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListRunsResponse>() { + @Override + public ListRunsResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for ListRunsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List>() {}); + + com.oracle.bmc.http.internal.WithHeaders> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListRunsResponse.Builder builder = ListRunsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ListRunsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateApplicationConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateApplicationConverter.java new file mode 100644 index 00000000000..e2d103e5a83 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateApplicationConverter.java @@ -0,0 +1,113 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class UpdateApplicationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateApplicationRequest interceptRequest(UpdateApplicationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateApplicationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateApplicationDetails(), "updateApplicationDetails is required"); + Validate.notBlank(request.getApplicationId(), "applicationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("applications") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplicationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplicationResponse> + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplicationResponse>() { + @Override + public UpdateApplicationResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UpdateApplicationResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + Application>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + Application.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateApplicationResponse.Builder builder = + UpdateApplicationResponse.builder(); + + builder.application(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateApplicationResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateRunConverter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateRunConverter.java new file mode 100644 index 00000000000..1df4f9b703c --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/internal/http/UpdateRunConverter.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dataflow.model.*; +import com.oracle.bmc.dataflow.requests.*; +import com.oracle.bmc.dataflow.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public class UpdateRunConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateRunRequest interceptRequest(UpdateRunRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, UpdateRunRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getUpdateRunDetails(), "updateRunDetails is required"); + Validate.notBlank(request.getRunId(), "runId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20200129") + .path("runs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRunId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function + fromResponse() { + final com.google.common.base.Function + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateRunResponse>() { + @Override + public UpdateRunResponse apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace("Transform function invoked for UpdateRunResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(Run.class); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateRunResponse.Builder builder = UpdateRunResponse.builder(); + + builder.run(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + UpdateRunResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Application.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Application.java new file mode 100644 index 00000000000..bec46e3ef95 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Application.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * A data flow application object. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Application.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Application { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("className") + private String className; + + public Builder className(String className) { + this.className = className; + this.__explicitlySet__.add("className"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private java.util.Map configuration; + + public Builder configuration(java.util.Map configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + 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("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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("driverShape") + private String driverShape; + + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + private String fileUri; + + public Builder fileUri(String fileUri) { + this.fileUri = fileUri; + this.__explicitlySet__.add("fileUri"); + 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("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("language") + private ApplicationLanguage language; + + public Builder language(ApplicationLanguage language) { + this.language = language; + this.__explicitlySet__.add("language"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ApplicationLifecycleState lifecycleState; + + public Builder lifecycleState(ApplicationLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + private String logsBucketUri; + + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + private String ownerPrincipalId; + + public Builder ownerPrincipalId(String ownerPrincipalId) { + this.ownerPrincipalId = ownerPrincipalId; + this.__explicitlySet__.add("ownerPrincipalId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + private String ownerUserName; + + public Builder ownerUserName(String ownerUserName) { + this.ownerUserName = ownerUserName; + this.__explicitlySet__.add("ownerUserName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + private String sparkVersion; + + public Builder sparkVersion(String sparkVersion) { + this.sparkVersion = sparkVersion; + this.__explicitlySet__.add("sparkVersion"); + 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("warehouseBucketUri") + private String warehouseBucketUri; + + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Application build() { + Application __instance__ = + new Application( + arguments, + className, + configuration, + compartmentId, + definedTags, + description, + displayName, + driverShape, + executorShape, + fileUri, + freeformTags, + id, + language, + lifecycleState, + logsBucketUri, + numExecutors, + ownerPrincipalId, + ownerUserName, + parameters, + sparkVersion, + timeCreated, + timeUpdated, + warehouseBucketUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Application o) { + Builder copiedBuilder = + arguments(o.getArguments()) + .className(o.getClassName()) + .configuration(o.getConfiguration()) + .compartmentId(o.getCompartmentId()) + .definedTags(o.getDefinedTags()) + .description(o.getDescription()) + .displayName(o.getDisplayName()) + .driverShape(o.getDriverShape()) + .executorShape(o.getExecutorShape()) + .fileUri(o.getFileUri()) + .freeformTags(o.getFreeformTags()) + .id(o.getId()) + .language(o.getLanguage()) + .lifecycleState(o.getLifecycleState()) + .logsBucketUri(o.getLogsBucketUri()) + .numExecutors(o.getNumExecutors()) + .ownerPrincipalId(o.getOwnerPrincipalId()) + .ownerUserName(o.getOwnerUserName()) + .parameters(o.getParameters()) + .sparkVersion(o.getSparkVersion()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .warehouseBucketUri(o.getWarehouseBucketUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The arguments passed to the running application as command line arguments. An argument is + * either a plain text or a placeholder. Placeholders are replaced using values from the parameters + * map. Each placeholder specified must be represented in the parameters map else the request + * (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as + * `Service Api Spec`, where `name` is the name of the parameter. + * Example: `[ \"--input\", \"${input_file}\", \"--name\", \"John Doe\" ]` + * If \"input_file\" has a value of \"mydata.xml\", then the value above will be translated to + * `--input mydata.xml --name \"John Doe\"` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + java.util.List arguments; + + /** + * The class for the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("className") + String className; + + /** + * The Spark configuration passed to the running process. + * See https://spark.apache.org/docs/latest/configuration.html#available-properties + * Example: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" } + * Note: Not all Spark properties are permitted to be set. Attempting to set a property that is + * not allowed to be overwritten will cause a 400 status to be returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + java.util.Map configuration; + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly description. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly name. This name is not necessarily unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The VM shape for the driver. Sets the driver cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + String driverShape; + + /** + * The VM shape for the executors. Sets the executor cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + String executorShape; + + /** + * An Oracle Cloud Infrastructure URI of the file containing the application to execute. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + String fileUri; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * The application ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * The Spark language. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("language") + ApplicationLanguage language; + + /** + * The current state of this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + ApplicationLifecycleState lifecycleState; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + String logsBucketUri; + + /** + * The number of executor VMs requested. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + Integer numExecutors; + + /** + * The OCID of the user who created the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + String ownerPrincipalId; + + /** + * The username of the user who created the resource. If the username of the owner does not exist, + * `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + String ownerUserName; + + /** + * An array of name/value pairs used to fill placeholders found in properties like + * `Application.arguments`. The name must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. + * Example: [ { name: \"iterations\", value: \"10\"}, { name: \"input_file\", value: \"mydata.xml\" }, { name: \"variable_x\", value: \"${x}\"} ] + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + java.util.List parameters; + + /** + * The Spark version utilized to run the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + String sparkVersion; + + /** + * The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + String warehouseBucketUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLanguage.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLanguage.java new file mode 100644 index 00000000000..5d2ed4683ee --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLanguage.java @@ -0,0 +1,55 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The Spark language. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public enum ApplicationLanguage { + Scala("SCALA"), + Java("JAVA"), + Python("PYTHON"), + Sql("SQL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ApplicationLanguage v : ApplicationLanguage.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ApplicationLanguage(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ApplicationLanguage create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ApplicationLanguage', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLifecycleState.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLifecycleState.java new file mode 100644 index 00000000000..e28dc02644f --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationLifecycleState.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The lifecycle state of an application. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public enum ApplicationLifecycleState { + Active("ACTIVE"), + Deleted("DELETED"), + Inactive("INACTIVE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ApplicationLifecycleState v : ApplicationLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ApplicationLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ApplicationLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ApplicationLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationParameter.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationParameter.java new file mode 100644 index 00000000000..585a4b1697f --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationParameter.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The parameter of an application. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApplicationParameter.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ApplicationParameter { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + 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("value") + private String value; + + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApplicationParameter build() { + ApplicationParameter __instance__ = new ApplicationParameter(name, value); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApplicationParameter o) { + Builder copiedBuilder = name(o.getName()).value(o.getValue()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The name of the parameter. It must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). + * Examples: \"iterations\", \"input_file\" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * The value of the parameter. It must be a string of 0 or more characters of any kind. + * Examples: \"\" (empty string), \"10\", \"mydata.xml\", \"${x}\" + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("value") + String value; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationSummary.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationSummary.java new file mode 100644 index 00000000000..ef435f86ce6 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/ApplicationSummary.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * A data flow application object used in bulk listings. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApplicationSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ApplicationSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @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("language") + private ApplicationLanguage language; + + public Builder language(ApplicationLanguage language) { + this.language = language; + this.__explicitlySet__.add("language"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ApplicationLifecycleState lifecycleState; + + public Builder lifecycleState(ApplicationLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + private String ownerPrincipalId; + + public Builder ownerPrincipalId(String ownerPrincipalId) { + this.ownerPrincipalId = ownerPrincipalId; + this.__explicitlySet__.add("ownerPrincipalId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + private String ownerUserName; + + public Builder ownerUserName(String ownerUserName) { + this.ownerUserName = ownerUserName; + this.__explicitlySet__.add("ownerUserName"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApplicationSummary build() { + ApplicationSummary __instance__ = + new ApplicationSummary( + compartmentId, + definedTags, + displayName, + freeformTags, + id, + language, + lifecycleState, + ownerPrincipalId, + ownerUserName, + timeCreated, + timeUpdated); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApplicationSummary o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .id(o.getId()) + .language(o.getLanguage()) + .lifecycleState(o.getLifecycleState()) + .ownerPrincipalId(o.getOwnerPrincipalId()) + .ownerUserName(o.getOwnerUserName()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly name. This name is not necessarily unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * The application ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * The Spark language. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("language") + ApplicationLanguage language; + + /** + * The current state of this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + ApplicationLifecycleState lifecycleState; + + /** + * The OCID of the user who created the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + String ownerPrincipalId; + + /** + * The username of the user who created the resource. If the username of the owner does not exist, + * `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + String ownerUserName; + + /** + * The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateApplicationDetails.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateApplicationDetails.java new file mode 100644 index 00000000000..0eefa653ae6 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateApplicationDetails.java @@ -0,0 +1,384 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The create application details. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateApplicationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateApplicationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("className") + private String className; + + public Builder className(String className) { + this.className = className; + this.__explicitlySet__.add("className"); + 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("configuration") + private java.util.Map configuration; + + public Builder configuration(java.util.Map configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("driverShape") + private String driverShape; + + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + private String fileUri; + + public Builder fileUri(String fileUri) { + this.fileUri = fileUri; + this.__explicitlySet__.add("fileUri"); + 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("language") + private ApplicationLanguage language; + + public Builder language(ApplicationLanguage language) { + this.language = language; + this.__explicitlySet__.add("language"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + private String logsBucketUri; + + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + private String sparkVersion; + + public Builder sparkVersion(String sparkVersion) { + this.sparkVersion = sparkVersion; + this.__explicitlySet__.add("sparkVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private String warehouseBucketUri; + + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateApplicationDetails build() { + CreateApplicationDetails __instance__ = + new CreateApplicationDetails( + arguments, + className, + compartmentId, + configuration, + definedTags, + description, + displayName, + driverShape, + executorShape, + fileUri, + freeformTags, + language, + logsBucketUri, + numExecutors, + parameters, + sparkVersion, + warehouseBucketUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateApplicationDetails o) { + Builder copiedBuilder = + arguments(o.getArguments()) + .className(o.getClassName()) + .compartmentId(o.getCompartmentId()) + .configuration(o.getConfiguration()) + .definedTags(o.getDefinedTags()) + .description(o.getDescription()) + .displayName(o.getDisplayName()) + .driverShape(o.getDriverShape()) + .executorShape(o.getExecutorShape()) + .fileUri(o.getFileUri()) + .freeformTags(o.getFreeformTags()) + .language(o.getLanguage()) + .logsBucketUri(o.getLogsBucketUri()) + .numExecutors(o.getNumExecutors()) + .parameters(o.getParameters()) + .sparkVersion(o.getSparkVersion()) + .warehouseBucketUri(o.getWarehouseBucketUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The arguments passed to the running application as command line arguments. An argument is + * either a plain text or a placeholder. Placeholders are replaced using values from the parameters + * map. Each placeholder specified must be represented in the parameters map else the request + * (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as + * `Service Api Spec`, where `name` is the name of the parameter. + * Example: `[ \"--input\", \"${input_file}\", \"--name\", \"John Doe\" ]` + * If \"input_file\" has a value of \"mydata.xml\", then the value above will be translated to + * `--input mydata.xml --name \"John Doe\"` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + java.util.List arguments; + + /** + * The class for the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("className") + String className; + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The Spark configuration passed to the running process. + * See https://spark.apache.org/docs/latest/configuration.html#available-properties + * Example: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" } + * Note: Not all Spark properties are permitted to be set. Attempting to set a property that is + * not allowed to be overwritten will cause a 400 status to be returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + java.util.Map configuration; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly description. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly name. It does not have to be unique. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The VM shape for the driver. Sets the driver cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + String driverShape; + + /** + * The VM shape for the executors. Sets the executor cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + String executorShape; + + /** + * An Oracle Cloud Infrastructure URI of the file containing the application to execute. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + String fileUri; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * The Spark language. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("language") + ApplicationLanguage language; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + String logsBucketUri; + + /** + * The number of executor VMs requested. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + Integer numExecutors; + + /** + * An array of name/value pairs used to fill placeholders found in properties like + * `Application.arguments`. The name must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. + * Example: [ { name: \"iterations\", value: \"10\"}, { name: \"input_file\", value: \"mydata.xml\" }, { name: \"variable_x\", value: \"${x}\"} ] + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + java.util.List parameters; + + /** + * The Spark version utilized to run the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + String sparkVersion; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + String warehouseBucketUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateRunDetails.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateRunDetails.java new file mode 100644 index 00000000000..a243b1c4a6e --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/CreateRunDetails.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The create run details. The following properties are optional and override the default values + * set in the associated application: + * - arguments + * - configuration + * - definedTags + * - driverShape + * - executorShape + * - freeformTags + * - logsBucketUri + * - numExecutors + * - parameters + * - warehouseBucketUri + * If the optional properties are not specified, they are copied over from the parent application. + * Once a run is created, its properties (except for definedTags and freeformTags) cannot be changed. + * If the parent application's properties (including definedTags and freeformTags) are updated, + * the corresponding properties of the run will not update. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateRunDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateRunDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + private String applicationId; + + public Builder applicationId(String applicationId) { + this.applicationId = applicationId; + this.__explicitlySet__.add("applicationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + 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("configuration") + private java.util.Map configuration; + + public Builder configuration(java.util.Map configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + private String driverShape; + + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + 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("logsBucketUri") + private String logsBucketUri; + + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private String warehouseBucketUri; + + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateRunDetails build() { + CreateRunDetails __instance__ = + new CreateRunDetails( + applicationId, + arguments, + compartmentId, + configuration, + definedTags, + displayName, + driverShape, + executorShape, + freeformTags, + logsBucketUri, + numExecutors, + parameters, + warehouseBucketUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateRunDetails o) { + Builder copiedBuilder = + applicationId(o.getApplicationId()) + .arguments(o.getArguments()) + .compartmentId(o.getCompartmentId()) + .configuration(o.getConfiguration()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .driverShape(o.getDriverShape()) + .executorShape(o.getExecutorShape()) + .freeformTags(o.getFreeformTags()) + .logsBucketUri(o.getLogsBucketUri()) + .numExecutors(o.getNumExecutors()) + .parameters(o.getParameters()) + .warehouseBucketUri(o.getWarehouseBucketUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The application ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + String applicationId; + + /** + * The arguments passed to the running application as command line arguments. An argument is + * either a plain text or a placeholder. Placeholders are replaced using values from the parameters + * map. Each placeholder specified must be represented in the parameters map else the request + * (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as + * `Service Api Spec`, where `name` is the name of the parameter. + * Example: `[ \"--input\", \"${input_file}\", \"--name\", \"John Doe\" ]` + * If \"input_file\" has a value of \"mydata.xml\", then the value above will be translated to + * `--input mydata.xml --name \"John Doe\"` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + java.util.List arguments; + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The Spark configuration passed to the running process. + * See https://spark.apache.org/docs/latest/configuration.html#available-properties + * Example: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" } + * Note: Not all Spark properties are permitted to be set. Attempting to set a property that is + * not allowed to be overwritten will cause a 400 status to be returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + java.util.Map configuration; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly name. It does not have to be unique. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The VM shape for the driver. Sets the driver cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + String driverShape; + + /** + * The VM shape for the executors. Sets the executor cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + String executorShape; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + String logsBucketUri; + + /** + * The number of executor VMs requested. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + Integer numExecutors; + + /** + * An array of name/value pairs used to fill placeholders found in properties like + * `Application.arguments`. The name must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. + * Example: [ { name: \"iterations\", value: \"10\"}, { name: \"input_file\", value: \"mydata.xml\" }, { name: \"variable_x\", value: \"${x}\"} ] + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + java.util.List parameters; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + String warehouseBucketUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Run.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Run.java new file mode 100644 index 00000000000..2b0bb2d178b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/Run.java @@ -0,0 +1,602 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * A run object. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Run.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class Run { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + private String applicationId; + + public Builder applicationId(String applicationId) { + this.applicationId = applicationId; + this.__explicitlySet__.add("applicationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("className") + private String className; + + public Builder className(String className) { + this.className = className; + this.__explicitlySet__.add("className"); + 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("configuration") + private java.util.Map configuration; + + public Builder configuration(java.util.Map configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataReadInBytes") + private Long dataReadInBytes; + + public Builder dataReadInBytes(Long dataReadInBytes) { + this.dataReadInBytes = dataReadInBytes; + this.__explicitlySet__.add("dataReadInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataWrittenInBytes") + private Long dataWrittenInBytes; + + public Builder dataWrittenInBytes(Long dataWrittenInBytes) { + this.dataWrittenInBytes = dataWrittenInBytes; + this.__explicitlySet__.add("dataWrittenInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + private String driverShape; + + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + private String fileUri; + + public Builder fileUri(String fileUri) { + this.fileUri = fileUri; + this.__explicitlySet__.add("fileUri"); + 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("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("language") + private ApplicationLanguage language; + + public Builder language(ApplicationLanguage language) { + this.language = language; + this.__explicitlySet__.add("language"); + 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("lifecycleState") + private RunLifecycleState lifecycleState; + + public Builder lifecycleState(RunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + private String logsBucketUri; + + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private String opcRequestId; + + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + this.__explicitlySet__.add("opcRequestId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + private String ownerPrincipalId; + + public Builder ownerPrincipalId(String ownerPrincipalId) { + this.ownerPrincipalId = ownerPrincipalId; + this.__explicitlySet__.add("ownerPrincipalId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + private String ownerUserName; + + public Builder ownerUserName(String ownerUserName) { + this.ownerUserName = ownerUserName; + this.__explicitlySet__.add("ownerUserName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runDurationInMilliseconds") + private Long runDurationInMilliseconds; + + public Builder runDurationInMilliseconds(Long runDurationInMilliseconds) { + this.runDurationInMilliseconds = runDurationInMilliseconds; + this.__explicitlySet__.add("runDurationInMilliseconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + private String sparkVersion; + + public Builder sparkVersion(String sparkVersion) { + this.sparkVersion = sparkVersion; + this.__explicitlySet__.add("sparkVersion"); + 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("totalOCpu") + private Integer totalOCpu; + + public Builder totalOCpu(Integer totalOCpu) { + this.totalOCpu = totalOCpu; + this.__explicitlySet__.add("totalOCpu"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private String warehouseBucketUri; + + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Run build() { + Run __instance__ = + new Run( + arguments, + applicationId, + className, + compartmentId, + configuration, + dataReadInBytes, + dataWrittenInBytes, + definedTags, + displayName, + driverShape, + executorShape, + fileUri, + freeformTags, + id, + language, + lifecycleDetails, + lifecycleState, + logsBucketUri, + numExecutors, + opcRequestId, + ownerPrincipalId, + ownerUserName, + parameters, + runDurationInMilliseconds, + sparkVersion, + timeCreated, + timeUpdated, + totalOCpu, + warehouseBucketUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Run o) { + Builder copiedBuilder = + arguments(o.getArguments()) + .applicationId(o.getApplicationId()) + .className(o.getClassName()) + .compartmentId(o.getCompartmentId()) + .configuration(o.getConfiguration()) + .dataReadInBytes(o.getDataReadInBytes()) + .dataWrittenInBytes(o.getDataWrittenInBytes()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .driverShape(o.getDriverShape()) + .executorShape(o.getExecutorShape()) + .fileUri(o.getFileUri()) + .freeformTags(o.getFreeformTags()) + .id(o.getId()) + .language(o.getLanguage()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .logsBucketUri(o.getLogsBucketUri()) + .numExecutors(o.getNumExecutors()) + .opcRequestId(o.getOpcRequestId()) + .ownerPrincipalId(o.getOwnerPrincipalId()) + .ownerUserName(o.getOwnerUserName()) + .parameters(o.getParameters()) + .runDurationInMilliseconds(o.getRunDurationInMilliseconds()) + .sparkVersion(o.getSparkVersion()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()) + .totalOCpu(o.getTotalOCpu()) + .warehouseBucketUri(o.getWarehouseBucketUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The arguments passed to the running application as command line arguments. An argument is + * either a plain text or a placeholder. Placeholders are replaced using values from the parameters + * map. Each placeholder specified must be represented in the parameters map else the request + * (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as + * `Service Api Spec`, where `name` is the name of the parameter. + * Example: `[ \"--input\", \"${input_file}\", \"--name\", \"John Doe\" ]` + * If \"input_file\" has a value of \"mydata.xml\", then the value above will be translated to + * `--input mydata.xml --name \"John Doe\"` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + java.util.List arguments; + + /** + * The application ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + String applicationId; + + /** + * The class for the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("className") + String className; + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The Spark configuration passed to the running process. + * See https://spark.apache.org/docs/latest/configuration.html#available-properties + * Example: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" } + * Note: Not all Spark properties are permitted to be set. Attempting to set a property that is + * not allowed to be overwritten will cause a 400 status to be returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + java.util.Map configuration; + + /** + * The data read by the run in bytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataReadInBytes") + Long dataReadInBytes; + + /** + * The data written by the run in bytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataWrittenInBytes") + Long dataWrittenInBytes; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly name. This name is not necessarily unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The VM shape for the driver. Sets the driver cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + String driverShape; + + /** + * The VM shape for the executors. Sets the executor cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + String executorShape; + + /** + * An Oracle Cloud Infrastructure URI of the file containing the application to execute. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileUri") + String fileUri; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * The ID of a run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * The Spark language. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("language") + ApplicationLanguage language; + + /** + * The detailed messages about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * The current state of this run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + RunLifecycleState lifecycleState; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + String logsBucketUri; + + /** + * The number of executor VMs requested. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + Integer numExecutors; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + String opcRequestId; + + /** + * The OCID of the user who created the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + String ownerPrincipalId; + + /** + * The username of the user who created the resource. If the username of the owner does not exist, + * `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + String ownerUserName; + + /** + * An array of name/value pairs used to fill placeholders found in properties like + * `Application.arguments`. The name must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. + * Example: [ { name: \"iterations\", value: \"10\"}, { name: \"input_file\", value: \"mydata.xml\" }, { name: \"variable_x\", value: \"${x}\"} ] + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + java.util.List parameters; + + /** + * The duration of the run in milliseconds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runDurationInMilliseconds") + Long runDurationInMilliseconds; + + /** + * The Spark version utilized to run the application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sparkVersion") + String sparkVersion; + + /** + * The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + /** + * The total number of oCPU requested by the run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalOCpu") + Integer totalOCpu; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + String warehouseBucketUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLifecycleState.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLifecycleState.java new file mode 100644 index 00000000000..0e0f070a3f7 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLifecycleState.java @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The lifecycle state of a run. + * + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.extern.slf4j.Slf4j +public enum RunLifecycleState { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Canceling("CANCELING"), + Canceled("CANCELED"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RunLifecycleState v : RunLifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RunLifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RunLifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RunLifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLogSummary.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLogSummary.java new file mode 100644 index 00000000000..b916714c683 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunLogSummary.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * A summary of a log associated with a particular run. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RunLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class RunLogSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + 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("runId") + private String runId; + + public Builder runId(String runId) { + this.runId = runId; + this.__explicitlySet__.add("runId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private Source source; + + public Builder source(Source source) { + this.source = source; + this.__explicitlySet__.add("source"); + 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("type") + private Type type; + + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RunLogSummary build() { + RunLogSummary __instance__ = + new RunLogSummary(name, runId, sizeInBytes, source, timeCreated, type); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RunLogSummary o) { + Builder copiedBuilder = + name(o.getName()) + .runId(o.getRunId()) + .sizeInBytes(o.getSizeInBytes()) + .source(o.getSource()) + .timeCreated(o.getTimeCreated()) + .type(o.getType()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The name of the log. + * Example: spark_driver_stderr_20190917T114000Z.log.gz + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + String name; + + /** + * The runId associated with the log. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runId") + String runId; + + /** + * The size of the object in bytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + Long sizeInBytes; + /** + * The source of the log such as driver and executor. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum Source { + Application("APPLICATION"), + Driver("DRIVER"), + Executor("EXECUTOR"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Source v : Source.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Source(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Source create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The source of the log such as driver and executor. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("source") + Source source; + + /** + * The date and time the object was created, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + /** + * The type of log such as stdout and stderr. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum Type { + Stderr("STDERR"), + Stdout("STDOUT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * The type of log such as stdout and stderr. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + Type type; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunSummary.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunSummary.java new file mode 100644 index 00000000000..62cacbc5579 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/RunSummary.java @@ -0,0 +1,386 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * A summary of the run. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RunSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class RunSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + private String applicationId; + + public Builder applicationId(String applicationId) { + this.applicationId = applicationId; + this.__explicitlySet__.add("applicationId"); + 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("dataReadInBytes") + private Long dataReadInBytes; + + public Builder dataReadInBytes(Long dataReadInBytes) { + this.dataReadInBytes = dataReadInBytes; + this.__explicitlySet__.add("dataReadInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataWrittenInBytes") + private Long dataWrittenInBytes; + + public Builder dataWrittenInBytes(Long dataWrittenInBytes) { + this.dataWrittenInBytes = dataWrittenInBytes; + this.__explicitlySet__.add("dataWrittenInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @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("language") + private ApplicationLanguage language; + + public Builder language(ApplicationLanguage language) { + this.language = language; + this.__explicitlySet__.add("language"); + 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("lifecycleState") + private RunLifecycleState lifecycleState; + + public Builder lifecycleState(RunLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + private String opcRequestId; + + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + this.__explicitlySet__.add("opcRequestId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + private String ownerPrincipalId; + + public Builder ownerPrincipalId(String ownerPrincipalId) { + this.ownerPrincipalId = ownerPrincipalId; + this.__explicitlySet__.add("ownerPrincipalId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + private String ownerUserName; + + public Builder ownerUserName(String ownerUserName) { + this.ownerUserName = ownerUserName; + this.__explicitlySet__.add("ownerUserName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("runDurationInMilliseconds") + private Long runDurationInMilliseconds; + + public Builder runDurationInMilliseconds(Long runDurationInMilliseconds) { + this.runDurationInMilliseconds = runDurationInMilliseconds; + this.__explicitlySet__.add("runDurationInMilliseconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("totalOCpu") + private Integer totalOCpu; + + public Builder totalOCpu(Integer totalOCpu) { + this.totalOCpu = totalOCpu; + this.__explicitlySet__.add("totalOCpu"); + 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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RunSummary build() { + RunSummary __instance__ = + new RunSummary( + applicationId, + compartmentId, + dataReadInBytes, + dataWrittenInBytes, + definedTags, + displayName, + freeformTags, + id, + language, + lifecycleDetails, + lifecycleState, + opcRequestId, + ownerPrincipalId, + ownerUserName, + runDurationInMilliseconds, + totalOCpu, + timeCreated, + timeUpdated); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RunSummary o) { + Builder copiedBuilder = + applicationId(o.getApplicationId()) + .compartmentId(o.getCompartmentId()) + .dataReadInBytes(o.getDataReadInBytes()) + .dataWrittenInBytes(o.getDataWrittenInBytes()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .id(o.getId()) + .language(o.getLanguage()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .opcRequestId(o.getOpcRequestId()) + .ownerPrincipalId(o.getOwnerPrincipalId()) + .ownerUserName(o.getOwnerUserName()) + .runDurationInMilliseconds(o.getRunDurationInMilliseconds()) + .totalOCpu(o.getTotalOCpu()) + .timeCreated(o.getTimeCreated()) + .timeUpdated(o.getTimeUpdated()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The application ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applicationId") + String applicationId; + + /** + * The OCID of the compartment that contains this application. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The data read by the run in bytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataReadInBytes") + Long dataReadInBytes; + + /** + * The data written by the run in bytes. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataWrittenInBytes") + Long dataWrittenInBytes; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly name. This name is not necessarily unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * The ID of a run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * The Spark language. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("language") + ApplicationLanguage language; + + /** + * The detailed messages about the lifecycle state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * The current state of this run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + RunLifecycleState lifecycleState; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("opcRequestId") + String opcRequestId; + + /** + * The OCID of the user who created the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerPrincipalId") + String ownerPrincipalId; + + /** + * The username of the user who created the resource. If the username of the owner does not exist, + * `null` will be returned and the caller should refer to the ownerPrincipalId value instead. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ownerUserName") + String ownerUserName; + + /** + * The duration of the run in milliseconds. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("runDurationInMilliseconds") + Long runDurationInMilliseconds; + + /** + * The total number of oCPU requested by the run. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalOCpu") + Integer totalOCpu; + + /** + * The date and time a application was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The date and time a application was updated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + * Example: `2018-04-03T21:10:29.600Z` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + java.util.Date timeUpdated; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateApplicationDetails.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateApplicationDetails.java new file mode 100644 index 00000000000..f4680c577f6 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateApplicationDetails.java @@ -0,0 +1,293 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The update application details. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateApplicationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateApplicationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + private java.util.List arguments; + + public Builder arguments(java.util.List arguments) { + this.arguments = arguments; + this.__explicitlySet__.add("arguments"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + private java.util.Map configuration; + + public Builder configuration(java.util.Map configuration) { + this.configuration = configuration; + this.__explicitlySet__.add("configuration"); + 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("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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("driverShape") + private String driverShape; + + public Builder driverShape(String driverShape) { + this.driverShape = driverShape; + this.__explicitlySet__.add("driverShape"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + private String executorShape; + + public Builder executorShape(String executorShape) { + this.executorShape = executorShape; + this.__explicitlySet__.add("executorShape"); + 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("logsBucketUri") + private String logsBucketUri; + + public Builder logsBucketUri(String logsBucketUri) { + this.logsBucketUri = logsBucketUri; + this.__explicitlySet__.add("logsBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + private Integer numExecutors; + + public Builder numExecutors(Integer numExecutors) { + this.numExecutors = numExecutors; + this.__explicitlySet__.add("numExecutors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + private java.util.List parameters; + + public Builder parameters(java.util.List parameters) { + this.parameters = parameters; + this.__explicitlySet__.add("parameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + private String warehouseBucketUri; + + public Builder warehouseBucketUri(String warehouseBucketUri) { + this.warehouseBucketUri = warehouseBucketUri; + this.__explicitlySet__.add("warehouseBucketUri"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateApplicationDetails build() { + UpdateApplicationDetails __instance__ = + new UpdateApplicationDetails( + arguments, + configuration, + definedTags, + description, + displayName, + driverShape, + executorShape, + freeformTags, + logsBucketUri, + numExecutors, + parameters, + warehouseBucketUri); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateApplicationDetails o) { + Builder copiedBuilder = + arguments(o.getArguments()) + .configuration(o.getConfiguration()) + .definedTags(o.getDefinedTags()) + .description(o.getDescription()) + .displayName(o.getDisplayName()) + .driverShape(o.getDriverShape()) + .executorShape(o.getExecutorShape()) + .freeformTags(o.getFreeformTags()) + .logsBucketUri(o.getLogsBucketUri()) + .numExecutors(o.getNumExecutors()) + .parameters(o.getParameters()) + .warehouseBucketUri(o.getWarehouseBucketUri()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The arguments passed to the running application as command line arguments. An argument is + * either a plain text or a placeholder. Placeholders are replaced using values from the parameters + * map. Each placeholder specified must be represented in the parameters map else the request + * (POST or PUT) will fail with a HTTP 400 status code. Placeholders are specified as + * `Service Api Spec`, where `name` is the name of the parameter. + * Example: `[ \"--input\", \"${input_file}\", \"--name\", \"John Doe\" ]` + * If \"input_file\" has a value of \"mydata.xml\", then the value above will be translated to + * `--input mydata.xml --name \"John Doe\"` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("arguments") + java.util.List arguments; + + /** + * The Spark configuration passed to the running process. + * See https://spark.apache.org/docs/latest/configuration.html#available-properties + * Example: { \"spark.app.name\" : \"My App Name\", \"spark.shuffle.io.maxRetries\" : \"4\" } + * Note: Not all Spark properties are permitted to be set. Attempting to set a property that is + * not allowed to be overwritten will cause a 400 status to be returned. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configuration") + java.util.Map configuration; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * A user-friendly description. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + String description; + + /** + * A user-friendly name. It does not have to be unique. Avoid entering confidential information. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The VM shape for the driver. Sets the driver cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("driverShape") + String driverShape; + + /** + * The VM shape for the executors. Sets the executor cores and memory. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("executorShape") + String executorShape; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logsBucketUri") + String logsBucketUri; + + /** + * The number of executor VMs requested. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numExecutors") + Integer numExecutors; + + /** + * An array of name/value pairs used to fill placeholders found in properties like + * `Application.arguments`. The name must be a string of one or more word characters + * (a-z, A-Z, 0-9, _). The value can be a string of 0 or more characters of any kind. + * Example: [ { name: \"iterations\", value: \"10\"}, { name: \"input_file\", value: \"mydata.xml\" }, { name: \"variable_x\", value: \"${x}\"} ] + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("parameters") + java.util.List parameters; + + /** + * An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory + * for BATCH SQL runs. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warehouseBucketUri") + String warehouseBucketUri; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateRunDetails.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateRunDetails.java new file mode 100644 index 00000000000..6335ca42e0d --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/model/UpdateRunDetails.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.model; + +/** + * The update run details. Only the tags of a run can be updated. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateRunDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateRunDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @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("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.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateRunDetails build() { + UpdateRunDetails __instance__ = new UpdateRunDetails(definedTags, freeformTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateRunDetails o) { + Builder copiedBuilder = + definedTags(o.getDefinedTags()).freeformTags(o.getFreeformTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateApplicationRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateApplicationRequest.java new file mode 100644 index 00000000000..4f7dd77f0ca --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateApplicationRequest.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateApplicationRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details to create an application. + * + */ + private CreateApplicationDetails createApplicationDetails; + + /** + * 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; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateApplicationRequest o) { + createApplicationDetails(o.getCreateApplicationDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateApplicationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateApplicationRequest + */ + public CreateApplicationRequest build() { + CreateApplicationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateRunRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateRunRequest.java new file mode 100644 index 00000000000..2da893fea80 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/CreateRunRequest.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details for creating a run of an application. + * + */ + private CreateRunDetails createRunDetails; + + /** + * 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; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateRunRequest o) { + createRunDetails(o.getCreateRunDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateRunRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateRunRequest + */ + public CreateRunRequest build() { + CreateRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteApplicationRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteApplicationRequest.java new file mode 100644 index 00000000000..753612110c4 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteApplicationRequest.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteApplicationRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for an application. + * + */ + private String applicationId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, + * set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteApplicationRequest o) { + applicationId(o.getApplicationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteApplicationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteApplicationRequest + */ + public DeleteApplicationRequest build() { + DeleteApplicationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteRunRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteRunRequest.java new file mode 100644 index 00000000000..240854a7e49 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/DeleteRunRequest.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for the run + * + */ + private String runId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, + * set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteRunRequest o) { + runId(o.getRunId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteRunRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteRunRequest + */ + public DeleteRunRequest build() { + DeleteRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetApplicationRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetApplicationRequest.java new file mode 100644 index 00000000000..cf89d91b8e8 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetApplicationRequest.java @@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetApplicationRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for an application. + * + */ + private String applicationId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetApplicationRequest o) { + applicationId(o.getApplicationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetApplicationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetApplicationRequest + */ + public GetApplicationRequest build() { + GetApplicationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunLogRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunLogRequest.java new file mode 100644 index 00000000000..0dcc46e30d7 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunLogRequest.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetRunLogRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for the run + * + */ + private String runId; + + /** + * The name of the log. Avoid entering confidential information. + * + */ + private String name; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetRunLogRequest o) { + runId(o.getRunId()); + name(o.getName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetRunLogRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetRunLogRequest + */ + public GetRunLogRequest build() { + GetRunLogRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunRequest.java new file mode 100644 index 00000000000..5465b43f2a5 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/GetRunRequest.java @@ -0,0 +1,83 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for the run + * + */ + private String runId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetRunRequest o) { + runId(o.getRunId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetRunRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetRunRequest + */ + public GetRunRequest build() { + GetRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListApplicationsRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListApplicationsRequest.java new file mode 100644 index 00000000000..79de1d4192b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListApplicationsRequest.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListApplicationsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment. + * + */ + private String compartmentId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * The maximum number of results to return in a paginated `List` call. + * + */ + private Integer limit; + + /** + * The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call + * to sent back to server for getting the next page of results. + * + */ + private String page; + + /** + * The field used to sort the results. Multiple fields are not supported. + * + */ + private SortBy sortBy; + + /** + * The field used to sort the results. Multiple fields are not supported. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + Language("language"), + ; + + 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 RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The ordering of results in ascending or descending order. + * + */ + private SortOrder sortOrder; + + /** + * The ordering of results in ascending or descending order. + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The query parameter for the Spark application name. + * + */ + private String displayName; + + /** + * The OCID of the user who created the resource. + * + */ + private String ownerPrincipalId; + + /** + * The displayName prefix. + * + */ + private String displayNameStartsWith; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListApplicationsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + ownerPrincipalId(o.getOwnerPrincipalId()); + displayNameStartsWith(o.getDisplayNameStartsWith()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListApplicationsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListApplicationsRequest + */ + public ListApplicationsRequest build() { + ListApplicationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunLogsRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunLogsRequest.java new file mode 100644 index 00000000000..0a34c90d008 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunLogsRequest.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListRunLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique ID for the run + * + */ + private String runId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * The maximum number of results to return in a paginated \"List\" call. + * + */ + private Integer limit; + + /** + * The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call + * to sent back to server for getting the next page of results. + * + */ + private String page; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListRunLogsRequest o) { + runId(o.getRunId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRunLogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListRunLogsRequest + */ + public ListRunLogsRequest build() { + ListRunLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunsRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunsRequest.java new file mode 100644 index 00000000000..9c089e526f8 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/ListRunsRequest.java @@ -0,0 +1,234 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListRunsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment. + * + */ + private String compartmentId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * The ID of the application. + * + */ + private String applicationId; + + /** + * The OCID of the user who created the resource. + * + */ + private String ownerPrincipalId; + + /** + * The displayName prefix. + * + */ + private String displayNameStartsWith; + + /** + * The LifecycleState of the run. + * + */ + private com.oracle.bmc.dataflow.model.RunLifecycleState lifecycleState; + + /** + * The epoch time that the resource was created. + * + */ + private java.util.Date timeCreatedGreaterThan; + + /** + * The maximum number of results to return in a paginated `List` call. + * + */ + private Integer limit; + + /** + * The value of the `opc-next-page` or `opc-prev-page` response header from the last `List` call + * to sent back to server for getting the next page of results. + * + */ + private String page; + + /** + * The field used to sort the results. Multiple fields are not supported. + * + */ + private SortBy sortBy; + + /** + * The field used to sort the results. Multiple fields are not supported. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + Language("language"), + RunDurationInMilliseconds("runDurationInMilliseconds"), + LifecycleState("lifecycleState"), + TotalOCpu("totalOCpu"), + DataReadInBytes("dataReadInBytes"), + DataWrittenInBytes("dataWrittenInBytes"), + ; + + 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 RuntimeException("Invalid SortBy: " + key); + } + }; + + /** + * The ordering of results in ascending or descending order. + * + */ + private SortOrder sortOrder; + + /** + * The ordering of results in ascending or descending order. + * + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + /** + * The query parameter for the Spark application name. + * + */ + private String displayName; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListRunsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + applicationId(o.getApplicationId()); + ownerPrincipalId(o.getOwnerPrincipalId()); + displayNameStartsWith(o.getDisplayNameStartsWith()); + lifecycleState(o.getLifecycleState()); + timeCreatedGreaterThan(o.getTimeCreatedGreaterThan()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListRunsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListRunsRequest + */ + public ListRunsRequest build() { + ListRunsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateApplicationRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateApplicationRequest.java new file mode 100644 index 00000000000..103ffbff2e1 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateApplicationRequest.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateApplicationRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details for updating an application. + * + */ + private UpdateApplicationDetails updateApplicationDetails; + + /** + * The unique ID for an application. + * + */ + private String applicationId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, + * set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateApplicationRequest o) { + updateApplicationDetails(o.getUpdateApplicationDetails()); + applicationId(o.getApplicationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateApplicationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateApplicationRequest + */ + public UpdateApplicationRequest build() { + UpdateApplicationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateRunRequest.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateRunRequest.java new file mode 100644 index 00000000000..cf8a8d62de2 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/requests/UpdateRunRequest.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.requests; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateRunRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Details for updating a run. + * + */ + private UpdateRunDetails updateRunDetails; + + /** + * The unique ID for the run + * + */ + private String runId; + + /** + * Unique identifier for the request. If provided, the returned request ID will include this value. + * Otherwise, a random request ID will be generated by the service. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, + * set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateRunRequest o) { + updateRunDetails(o.getUpdateRunDetails()); + runId(o.getRunId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateRunRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateRunRequest + */ + public UpdateRunRequest build() { + UpdateRunRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateApplicationResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateApplicationResponse.java new file mode 100644 index 00000000000..f2c3ae6229e --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateApplicationResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateApplicationResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Application instance. + */ + private Application application; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateApplicationResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + application(o.getApplication()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateRunResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateRunResponse.java new file mode 100644 index 00000000000..04cddc4693b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/CreateRunResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateRunResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Run instance. + */ + private Run run; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateRunResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + run(o.getRun()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteApplicationResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteApplicationResponse.java new file mode 100644 index 00000000000..7c3e0047a17 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteApplicationResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteApplicationResponse { + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteApplicationResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteRunResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteRunResponse.java new file mode 100644 index 00000000000..8be595b5167 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/DeleteRunResponse.java @@ -0,0 +1,31 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteRunResponse { + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteRunResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetApplicationResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetApplicationResponse.java new file mode 100644 index 00000000000..0c5584575ec --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetApplicationResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetApplicationResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Application instance. + */ + private Application application; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetApplicationResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + application(o.getApplication()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunLogResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunLogResponse.java new file mode 100644 index 00000000000..c5220ec89fb --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunLogResponse.java @@ -0,0 +1,73 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetRunLogResponse { + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Indicates the size of the data as described in RFC 2616, section 14.13. + * + */ + private Long contentLength; + + /** + * Specifies the media type of the underlying data as described in RFC 2616, section 14.17. + * + */ + private String contentType; + + /** + * Indicates the encoding of the data, as described in RFC 2616, section 14.11. + * + */ + private String contentEncoding; + + /** + * The user-defined metadata for the log. + * + */ + private java.util.Map opcMeta; + + /** + * The returned java.io.InputStream instance. + */ + private java.io.InputStream inputStream; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetRunLogResponse o) { + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + contentLength(o.getContentLength()); + contentType(o.getContentType()); + contentEncoding(o.getContentEncoding()); + opcMeta(o.getOpcMeta()); + inputStream(o.getInputStream()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunResponse.java new file mode 100644 index 00000000000..a4264f37888 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/GetRunResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetRunResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Run instance. + */ + private Run run; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetRunResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + run(o.getRun()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListApplicationsResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListApplicationsResponse.java new file mode 100644 index 00000000000..8c22f839232 --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListApplicationsResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListApplicationsResponse { + + /** + * Retrieves the previous page of results. + * When this header appears in the response, previous pages of results exist. + * See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the next page of results. When this header appears in the response, + * additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of ApplicationSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListApplicationsResponse o) { + opcPrevPage(o.getOpcPrevPage()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunLogsResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunLogsResponse.java new file mode 100644 index 00000000000..290dacfaaea --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunLogsResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListRunLogsResponse { + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Retrieves the previous page of results. + * When this header appears in the response, previous pages of results exist. + * See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the next page of results. When this header appears in the response, + * additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * A list of RunLogSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListRunLogsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcPrevPage(o.getOpcPrevPage()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunsResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunsResponse.java new file mode 100644 index 00000000000..cac33db9f7b --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/ListRunsResponse.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListRunsResponse { + + /** + * Retrieves the previous page of results. + * When this header appears in the response, previous pages of results exist. + * See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcPrevPage; + + /** + * Retrieves the next page of results. When this header appears in the response, + * additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of RunSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListRunsResponse o) { + opcPrevPage(o.getOpcPrevPage()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateApplicationResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateApplicationResponse.java new file mode 100644 index 00000000000..7214784badb --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateApplicationResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateApplicationResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Application instance. + */ + private Application application; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateApplicationResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + application(o.getApplication()); + + return this; + } + } +} diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateRunResponse.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateRunResponse.java new file mode 100644 index 00000000000..4707bed007c --- /dev/null +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/responses/UpdateRunResponse.java @@ -0,0 +1,45 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dataflow.responses; + +import com.oracle.bmc.dataflow.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200129") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateRunResponse { + + /** + * For optimistic concurrency control. + * See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned Run instance. + */ + private Run run; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateRunResponse o) { + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + run(o.getRun()); + + return this; + } + } +} diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index bf6ba86d19e..16ef12aeb28 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index d6ddc6999a0..d2166c8370c 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJob.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJob.java new file mode 100644 index 00000000000..b3e55b9f642 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJob.java @@ -0,0 +1,106 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +public interface ApplianceExportJob extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Moves a ApplianceExportJob into a different compartment. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ChangeApplianceExportJobCompartmentResponse changeApplianceExportJobCompartment( + ChangeApplianceExportJobCompartmentRequest request); + + /** + * Creates a new Appliance Export Job that corresponds with customer's logical dataset + * @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. + */ + CreateApplianceExportJobResponse createApplianceExportJob( + CreateApplianceExportJobRequest request); + + /** + * deletes a Appliance Export Job + * @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. + */ + DeleteApplianceExportJobResponse deleteApplianceExportJob( + DeleteApplianceExportJobRequest request); + + /** + * Describes a Appliance Export Job in detail + * @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. + */ + GetApplianceExportJobResponse getApplianceExportJob(GetApplianceExportJobRequest request); + + /** + * Lists Appliance Export Jobs in a given compartment + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + */ + ListApplianceExportJobsResponse listApplianceExportJobs(ListApplianceExportJobsRequest request); + + /** + * Updates a Appliance Export Job that corresponds with customer's logical dataset. + * @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. + */ + UpdateApplianceExportJobResponse updateApplianceExportJob( + UpdateApplianceExportJobRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + ApplianceExportJobWaiters 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. + */ + ApplianceExportJobPaginators getPaginators(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsync.java new file mode 100644 index 00000000000..a50d93f6bc8 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsync.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +public interface ApplianceExportJobAsync extends AutoCloseable { + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * 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); + + /** + * Moves a ApplianceExportJob into a different compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeApplianceExportJobCompartment( + ChangeApplianceExportJobCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeApplianceExportJobCompartmentRequest, + ChangeApplianceExportJobCompartmentResponse> + handler); + + /** + * Creates a new Appliance Export Job that corresponds with customer's logical dataset + * + * @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 createApplianceExportJob( + CreateApplianceExportJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateApplianceExportJobRequest, CreateApplianceExportJobResponse> + handler); + + /** + * deletes a Appliance Export Job + * + * @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 deleteApplianceExportJob( + DeleteApplianceExportJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteApplianceExportJobRequest, DeleteApplianceExportJobResponse> + handler); + + /** + * Describes a Appliance Export Job in detail + * + * @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 getApplianceExportJob( + GetApplianceExportJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetApplianceExportJobRequest, GetApplianceExportJobResponse> + handler); + + /** + * Lists Appliance Export Jobs in a given 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 listApplianceExportJobs( + ListApplianceExportJobsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse> + handler); + + /** + * Updates a Appliance Export Job that corresponds with customer's logical dataset. + * + * @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 updateApplianceExportJob( + UpdateApplianceExportJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateApplianceExportJobRequest, UpdateApplianceExportJobResponse> + handler); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java new file mode 100644 index 00000000000..57db9fd89a7 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java @@ -0,0 +1,813 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import java.util.Locale; +import com.oracle.bmc.dts.internal.http.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +/** + * Async client implementation for ApplianceExportJob service.
+ * There are two ways to use async client: + * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like + * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, + * because the stream will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, + * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler + * is used, it is still safe to use the Future to determine whether or not the request was completed via + * Future.isDone/isCancelled.
+ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class ApplianceExportJobAsyncClient implements ApplianceExportJobAsync { + /** + * Service instance for ApplianceExportJob. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("APPLIANCEEXPORTJOB") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datatransfer.{region}.{secondLevelDomain}") + .build(); + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public ApplianceExportJobAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public ApplianceExportJobAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public ApplianceExportJobAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public ApplianceExportJobAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + this.client = restClientFactory.create(defaultRequestSigner, requestSigners, configuration); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder< + Builder, ApplianceExportJobAsyncClient> { + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public ApplianceExportJobAsyncClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ApplianceExportJobAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + additionalClientConfigurators, + endpoint); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + changeApplianceExportJobCompartment( + final ChangeApplianceExportJobCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeApplianceExportJobCompartmentRequest, + ChangeApplianceExportJobCompartmentResponse> + handler) { + LOG.trace("Called async changeApplianceExportJobCompartment"); + final ChangeApplianceExportJobCompartmentRequest interceptedRequest = + ChangeApplianceExportJobCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeApplianceExportJobCompartmentConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeApplianceExportJobCompartmentResponse> + transformer = ChangeApplianceExportJobCompartmentConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ChangeApplianceExportJobCompartmentRequest, + ChangeApplianceExportJobCompartmentResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ChangeApplianceExportJobCompartmentRequest, + ChangeApplianceExportJobCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest + .getChangeApplianceExportJobCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getChangeApplianceExportJobCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ChangeApplianceExportJobCompartmentResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest + .getChangeApplianceExportJobCompartmentDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future createApplianceExportJob( + final CreateApplianceExportJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateApplianceExportJobRequest, CreateApplianceExportJobResponse> + handler) { + LOG.trace("Called async createApplianceExportJob"); + final CreateApplianceExportJobRequest interceptedRequest = + CreateApplianceExportJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateApplianceExportJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplianceExportJobResponse> + transformer = CreateApplianceExportJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + CreateApplianceExportJobRequest, CreateApplianceExportJobResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + CreateApplianceExportJobRequest, CreateApplianceExportJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.post( + ib, + interceptedRequest.getCreateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.post( + ib, + interceptedRequest.getCreateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, CreateApplianceExportJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.post( + ib, + interceptedRequest.getCreateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future deleteApplianceExportJob( + final DeleteApplianceExportJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteApplianceExportJobRequest, DeleteApplianceExportJobResponse> + handler) { + LOG.trace("Called async deleteApplianceExportJob"); + final DeleteApplianceExportJobRequest interceptedRequest = + DeleteApplianceExportJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteApplianceExportJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplianceExportJobResponse> + transformer = DeleteApplianceExportJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeleteApplianceExportJobRequest, DeleteApplianceExportJobResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + DeleteApplianceExportJobRequest, DeleteApplianceExportJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.delete(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.delete(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, DeleteApplianceExportJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.delete(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future getApplianceExportJob( + final GetApplianceExportJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetApplianceExportJobRequest, GetApplianceExportJobResponse> + handler) { + LOG.trace("Called async getApplianceExportJob"); + final GetApplianceExportJobRequest interceptedRequest = + GetApplianceExportJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetApplianceExportJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetApplianceExportJobResponse> + transformer = GetApplianceExportJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetApplianceExportJobRequest, GetApplianceExportJobResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + GetApplianceExportJobRequest, GetApplianceExportJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, GetApplianceExportJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future listApplianceExportJobs( + final ListApplianceExportJobsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse> + handler) { + LOG.trace("Called async listApplianceExportJobs"); + final ListApplianceExportJobsRequest interceptedRequest = + ListApplianceExportJobsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListApplianceExportJobsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplianceExportJobsResponse> + transformer = ListApplianceExportJobsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListApplianceExportJobsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + + @Override + public java.util.concurrent.Future updateApplianceExportJob( + final UpdateApplianceExportJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateApplianceExportJobRequest, UpdateApplianceExportJobResponse> + handler) { + LOG.trace("Called async updateApplianceExportJob"); + final UpdateApplianceExportJobRequest interceptedRequest = + UpdateApplianceExportJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateApplianceExportJobConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplianceExportJobResponse> + transformer = UpdateApplianceExportJobConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateApplianceExportJobRequest, UpdateApplianceExportJobResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + UpdateApplianceExportJobRequest, UpdateApplianceExportJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.put( + ib, + interceptedRequest.getUpdateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.put( + ib, + interceptedRequest.getUpdateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, UpdateApplianceExportJobResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.put( + ib, + interceptedRequest.getUpdateApplianceExportJobDetails(), + interceptedRequest, + onSuccess, + onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobClient.java new file mode 100644 index 00000000000..492859cc437 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobClient.java @@ -0,0 +1,578 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import java.util.Locale; +import com.oracle.bmc.dts.internal.http.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class ApplianceExportJobClient implements ApplianceExportJob { + /** + * Service instance for ApplianceExportJob. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName("APPLIANCEEXPORTJOB") + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://datatransfer.{region}.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private final ApplianceExportJobWaiters waiters; + + private final ApplianceExportJobPaginators paginators; + + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) + private final com.oracle.bmc.http.internal.RestClient client; + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public ApplianceExportJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public ApplianceExportJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public ApplianceExportJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

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

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

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

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

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + */ + public ApplianceExportJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + com.oracle.bmc.http.internal.RestClientFactory restClientFactory = + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(additionalClientConfigurators) + .build(); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + final com.oracle.bmc.ClientConfiguration clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + this.client = + restClientFactory.create( + defaultRequestSigner, requestSigners, clientConfigurationToUse); + + 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(), + new com.google.common.util.concurrent.ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("ApplianceExportJob-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new ApplianceExportJobWaiters(executorService, this); + + this.paginators = new ApplianceExportJobPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Set the ExecutorService for the client to be created. + * @param executorService executorService + * @return this builder + */ + public Builder executorService(java.util.concurrent.ExecutorService executorService) { + this.executorService = executorService; + return this; + } + + /** + * Build the client. + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public ApplianceExportJobClient build( + @lombok.NonNull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new ApplianceExportJobClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService); + } + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + client.setEndpoint(endpoint); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + com.google.common.base.Optional endpoint = region.getEndpoint(SERVICE); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(Locale.ENGLISH); + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeApplianceExportJobCompartmentResponse changeApplianceExportJobCompartment( + ChangeApplianceExportJobCompartmentRequest request) { + LOG.trace("Called changeApplianceExportJobCompartment"); + final ChangeApplianceExportJobCompartmentRequest interceptedRequest = + ChangeApplianceExportJobCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeApplianceExportJobCompartmentConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeApplianceExportJobCompartmentResponse> + transformer = ChangeApplianceExportJobCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeApplianceExportJobCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateApplianceExportJobResponse createApplianceExportJob( + CreateApplianceExportJobRequest request) { + LOG.trace("Called createApplianceExportJob"); + final CreateApplianceExportJobRequest interceptedRequest = + CreateApplianceExportJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateApplianceExportJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateApplianceExportJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateApplianceExportJobDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteApplianceExportJobResponse deleteApplianceExportJob( + DeleteApplianceExportJobRequest request) { + LOG.trace("Called deleteApplianceExportJob"); + final DeleteApplianceExportJobRequest interceptedRequest = + DeleteApplianceExportJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteApplianceExportJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteApplianceExportJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetApplianceExportJobResponse getApplianceExportJob( + GetApplianceExportJobRequest request) { + LOG.trace("Called getApplianceExportJob"); + final GetApplianceExportJobRequest interceptedRequest = + GetApplianceExportJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetApplianceExportJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetApplianceExportJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListApplianceExportJobsResponse listApplianceExportJobs( + ListApplianceExportJobsRequest request) { + LOG.trace("Called listApplianceExportJobs"); + final ListApplianceExportJobsRequest interceptedRequest = + ListApplianceExportJobsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListApplianceExportJobsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListApplianceExportJobsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateApplianceExportJobResponse updateApplianceExportJob( + UpdateApplianceExportJobRequest request) { + LOG.trace("Called updateApplianceExportJob"); + final UpdateApplianceExportJobRequest interceptedRequest = + UpdateApplianceExportJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateApplianceExportJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateApplianceExportJobConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateApplianceExportJobDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ApplianceExportJobWaiters getWaiters() { + return waiters; + } + + @Override + public ApplianceExportJobPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobPaginators.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobPaginators.java new file mode 100644 index 00000000000..8f0d64c0dcc --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobPaginators.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of ApplianceExportJob where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.RequiredArgsConstructor +public class ApplianceExportJobPaginators { + private final ApplianceExportJob client; + + /** + * Creates a new iterable which will iterate over the responses received from the listApplianceExportJobs 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 listApplianceExportJobsResponseIterator( + final ListApplianceExportJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListApplianceExportJobsRequest.Builder, ListApplianceExportJobsRequest, + ListApplianceExportJobsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListApplianceExportJobsRequest.Builder get() { + return ListApplianceExportJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListApplianceExportJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplianceExportJobsRequest.Builder>, + ListApplianceExportJobsRequest>() { + @Override + public ListApplianceExportJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplianceExportJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse>() { + @Override + public ListApplianceExportJobsResponse apply( + ListApplianceExportJobsRequest request) { + return client.listApplianceExportJobs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.dts.model.ApplianceExportJobSummary} objects + * contained in responses from the listApplianceExportJobs 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.dts.model.ApplianceExportJobSummary} objects + * contained in responses received from the service. + */ + public Iterable + listApplianceExportJobsRecordIterator(final ListApplianceExportJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListApplianceExportJobsRequest.Builder, ListApplianceExportJobsRequest, + ListApplianceExportJobsResponse, + com.oracle.bmc.dts.model.ApplianceExportJobSummary>( + new com.google.common.base.Supplier() { + @Override + public ListApplianceExportJobsRequest.Builder get() { + return ListApplianceExportJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListApplianceExportJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplianceExportJobsRequest.Builder>, + ListApplianceExportJobsRequest>() { + @Override + public ListApplianceExportJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListApplianceExportJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListApplianceExportJobsRequest, ListApplianceExportJobsResponse>() { + @Override + public ListApplianceExportJobsResponse apply( + ListApplianceExportJobsRequest request) { + return client.listApplianceExportJobs(request); + } + }, + new com.google.common.base.Function< + ListApplianceExportJobsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListApplianceExportJobsResponse response) { + return response.getItems(); + } + }); + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobWaiters.java new file mode 100644 index 00000000000..b6657fe41a9 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobWaiters.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of ApplianceExportJob. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.RequiredArgsConstructor +public class ApplianceExportJobWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final ApplianceExportJob 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 + forApplianceExportJob( + GetApplianceExportJobRequest request, + com.oracle.bmc.dts.model.ApplianceExportJob.LifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forApplianceExportJob( + 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 + forApplianceExportJob( + GetApplianceExportJobRequest request, + com.oracle.bmc.dts.model.ApplianceExportJob.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forApplianceExportJob( + 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 + forApplianceExportJob( + GetApplianceExportJobRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.dts.model.ApplianceExportJob.LifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forApplianceExportJob( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for ApplianceExportJob. + private com.oracle.bmc.waiter.Waiter< + GetApplianceExportJobRequest, GetApplianceExportJobResponse> + forApplianceExportJob( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetApplianceExportJobRequest request, + final com.oracle.bmc.dts.model.ApplianceExportJob.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( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetApplianceExportJobRequest, GetApplianceExportJobResponse>() { + @Override + public GetApplianceExportJobResponse apply( + GetApplianceExportJobRequest request) { + return client.getApplianceExportJob(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetApplianceExportJobResponse response) { + return targetStatesSet.contains( + response.getApplianceExportJob().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.dts.model.ApplianceExportJob.LifecycleState + .Deleted)), + request); + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendors.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendors.java index 7b05630addf..384b9f36341 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendors.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendors.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface ShippingVendors extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsync.java index 10967fa379e..e6ea63d6439 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface ShippingVendorsAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java index ccca421bcf3..946378d91e2 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ShippingVendorsAsyncClient implements ShippingVendorsAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsClient.java index 0c6c1014152..d0f6ba11c1d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ShippingVendorsClient implements ShippingVendors { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferAppliance.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferAppliance.java index 6899a3b2b28..fe9b1b7a239 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferAppliance.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferAppliance.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferAppliance extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsync.java index cb239d68b65..ee098e24899 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferApplianceAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java index cf864e76533..d800ebf9a78 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferApplianceAsyncClient implements TransferApplianceAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceClient.java index f0da1c65bd5..eef95abf3eb 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferApplianceClient implements TransferAppliance { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlement.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlement.java index 802571d88aa..f79b5b516e4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlement.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlement.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferApplianceEntitlement extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsync.java index 7f78af27dd7..7e63c18496c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferApplianceEntitlementAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java index 8faa6263157..384a277c399 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferApplianceEntitlementAsyncClient implements TransferApplianceEntitlementAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementClient.java index 8f6bce032c3..70b0d490167 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferApplianceEntitlementClient implements TransferApplianceEntitlement { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementWaiters.java index 3cba20fe3dd..125963ff438 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementWaiters.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementWaiters.java @@ -12,7 +12,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.RequiredArgsConstructor public class TransferApplianceEntitlementWaiters { private final java.util.concurrent.ExecutorService executorService; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceWaiters.java index 10cddef6a75..87cd78cd458 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceWaiters.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceWaiters.java @@ -12,7 +12,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.RequiredArgsConstructor public class TransferApplianceWaiters { private final java.util.concurrent.ExecutorService executorService; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDevice.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDevice.java index 9070aba974b..95d10c4e350 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDevice.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDevice.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferDevice extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsync.java index 0dbe7f240a4..3bf19a96feb 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferDeviceAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java index 0002082227a..7d269b7a4d9 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferDeviceAsyncClient implements TransferDeviceAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceClient.java index 1887a713062..9e4b88c74f1 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferDeviceClient implements TransferDevice { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceWaiters.java index f00f7e03366..35f4cd4e33d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceWaiters.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceWaiters.java @@ -12,7 +12,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.RequiredArgsConstructor public class TransferDeviceWaiters { private final java.util.concurrent.ExecutorService executorService; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJob.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJob.java index 7abafa31ec8..62f039fe692 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJob.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJob.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferJob extends AutoCloseable { /** @@ -91,4 +91,13 @@ ChangeTransferJobCompartmentResponse changeTransferJobCompartment( * @return The service waiters. */ TransferJobWaiters 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. + */ + TransferJobPaginators getPaginators(); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsync.java index f8c535a6fc4..0faae927441 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferJobAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java index 190674f499c..5c867b2fe8c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferJobAsyncClient implements TransferJobAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobClient.java index ddd0fdf39b6..d514406c02b 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferJobClient implements TransferJob { /** @@ -25,6 +25,8 @@ public class TransferJobClient implements TransferJob { private final TransferJobWaiters waiters; + private final TransferJobPaginators paginators; + @lombok.Getter(value = lombok.AccessLevel.PACKAGE) private final com.oracle.bmc.http.internal.RestClient client; @@ -264,6 +266,8 @@ public TransferJobClient( } this.waiters = new TransferJobWaiters(executorService, this); + this.paginators = new TransferJobPaginators(this); + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; @@ -560,4 +564,9 @@ public UpdateTransferJobResponse updateTransferJob(UpdateTransferJobRequest requ public TransferJobWaiters getWaiters() { return waiters; } + + @Override + public TransferJobPaginators getPaginators() { + return paginators; + } } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobPaginators.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobPaginators.java new file mode 100644 index 00000000000..5d8621b2d63 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobPaginators.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts; + +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of TransferJob where multiple pages of data may be fetched. + * Two styles of iteration are supported: + * + *

    + *
  • Iterating over the Response objects returned by the list operation. These are referred to as ResponseIterators, and the methods are suffixed with ResponseIterator. For example: listUsersResponseIterator
  • + *
  • Iterating over the resources/records being listed. These are referred to as RecordIterators, and the methods are suffixed with RecordIterator. For example: listUsersRecordIterator
  • + *
+ * + * These iterables abstract away the need to write code to manually handle pagination via looping and using the page tokens. + * They will automatically fetch more data from the service when required. + * + * As an example, if we were using the ListUsers operation in IdentityService, then the {@link java.lang.Iterable} returned by calling a + * ResponseIterator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the {@link java.lang.Iterable} + * returned by calling a RecordIterator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.RequiredArgsConstructor +public class TransferJobPaginators { + private final TransferJob client; + + /** + * Creates a new iterable which will iterate over the responses received from the listTransferJobs 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 listTransferJobsResponseIterator( + final ListTransferJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTransferJobsRequest.Builder, ListTransferJobsRequest, ListTransferJobsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTransferJobsRequest.Builder get() { + return ListTransferJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTransferJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTransferJobsRequest.Builder>, + ListTransferJobsRequest>() { + @Override + public ListTransferJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTransferJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListTransferJobsRequest, ListTransferJobsResponse>() { + @Override + public ListTransferJobsResponse apply(ListTransferJobsRequest request) { + return client.listTransferJobs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.dts.model.TransferJobSummary} objects + * contained in responses from the listTransferJobs 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.dts.model.TransferJobSummary} objects + * contained in responses received from the service. + */ + public Iterable listTransferJobsRecordIterator( + final ListTransferJobsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTransferJobsRequest.Builder, ListTransferJobsRequest, ListTransferJobsResponse, + com.oracle.bmc.dts.model.TransferJobSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTransferJobsRequest.Builder get() { + return ListTransferJobsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTransferJobsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTransferJobsRequest.Builder>, + ListTransferJobsRequest>() { + @Override + public ListTransferJobsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTransferJobsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListTransferJobsRequest, ListTransferJobsResponse>() { + @Override + public ListTransferJobsResponse apply(ListTransferJobsRequest request) { + return client.listTransferJobs(request); + } + }, + new com.google.common.base.Function< + ListTransferJobsResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListTransferJobsResponse response) { + return response.getItems(); + } + }); + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobWaiters.java index 7a293b45f4d..2ed8b2770bb 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobWaiters.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobWaiters.java @@ -12,7 +12,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.RequiredArgsConstructor public class TransferJobWaiters { private final java.util.concurrent.ExecutorService executorService; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackage.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackage.java index d2463ee6cd0..cb7ff92a3e4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackage.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackage.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferPackage extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsync.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsync.java index fc7547f51f6..f9ce0506c6e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsync.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsync.java @@ -6,7 +6,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") public interface TransferPackageAsync extends AutoCloseable { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java index 434b47ca492..308b9bbdfd4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java @@ -21,7 +21,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferPackageAsyncClient implements TransferPackageAsync { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageClient.java index c00a76db4c6..16740d0c28d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageClient.java @@ -8,7 +8,7 @@ import com.oracle.bmc.dts.requests.*; import com.oracle.bmc.dts.responses.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class TransferPackageClient implements TransferPackage { /** diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageWaiters.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageWaiters.java index b4c26a268d4..31729abe080 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageWaiters.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageWaiters.java @@ -12,7 +12,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.RequiredArgsConstructor public class TransferPackageWaiters { private final java.util.concurrent.ExecutorService executorService; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/AttachDevicesToTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/AttachDevicesToTransferPackageConverter.java index e41306e32d0..ef3d0b66143 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/AttachDevicesToTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/AttachDevicesToTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class AttachDevicesToTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeApplianceExportJobCompartmentConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeApplianceExportJobCompartmentConverter.java new file mode 100644 index 00000000000..1c7b3bbc063 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeApplianceExportJobCompartmentConverter.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class ChangeApplianceExportJobCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ChangeApplianceExportJobCompartmentRequest interceptRequest( + ChangeApplianceExportJobCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + ChangeApplianceExportJobCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getApplianceExportJobId(), "applianceExportJobId must not be blank"); + Validate.notNull( + request.getChangeApplianceExportJobCompartmentDetails(), + "changeApplianceExportJobCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20171001") + .path("applianceExportJobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplianceExportJobId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeApplianceExportJobCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeApplianceExportJobCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeApplianceExportJobCompartmentResponse>() { + @Override + public ChangeApplianceExportJobCompartmentResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ChangeApplianceExportJobCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ChangeApplianceExportJobCompartmentResponse.Builder builder = + ChangeApplianceExportJobCompartmentResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ChangeApplianceExportJobCompartmentResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeTransferJobCompartmentConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeTransferJobCompartmentConverter.java index 5c5c94900bf..0aeacec0e6c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeTransferJobCompartmentConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ChangeTransferJobCompartmentConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ChangeTransferJobCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateApplianceExportJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateApplianceExportJobConverter.java new file mode 100644 index 00000000000..e98e758a88a --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateApplianceExportJobConverter.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class CreateApplianceExportJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static CreateApplianceExportJobRequest interceptRequest( + CreateApplianceExportJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + CreateApplianceExportJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateApplianceExportJobDetails(), + "createApplianceExportJobDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20171001").path("applianceExportJobs"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplianceExportJobResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplianceExportJobResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, CreateApplianceExportJobResponse>() { + @Override + public CreateApplianceExportJobResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for CreateApplianceExportJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ApplianceExportJob>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ApplianceExportJob.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + CreateApplianceExportJobResponse.Builder builder = + CreateApplianceExportJobResponse.builder(); + + builder.applianceExportJob(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + CreateApplianceExportJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceAdminCredentialsConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceAdminCredentialsConverter.java index 574a52e4c31..b104349cdc7 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceAdminCredentialsConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceAdminCredentialsConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferApplianceAdminCredentialsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceConverter.java index dd5a32c47fc..7b2075f8969 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferApplianceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceEntitlementConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceEntitlementConverter.java index 5734155f997..ad0d2191912 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceEntitlementConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferApplianceEntitlementConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferApplianceEntitlementConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferDeviceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferDeviceConverter.java index c50c14c5a43..5c756f5fa90 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferDeviceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferDeviceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferDeviceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferJobConverter.java index fb554c2db6f..27066f645df 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferJobConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferJobConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory @@ -38,6 +38,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-retry-token", request.getOpcRetryToken()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + return ib; } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferPackageConverter.java index 0e556df6027..381189d09e1 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/CreateTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class CreateTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteApplianceExportJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteApplianceExportJobConverter.java new file mode 100644 index 00000000000..9cbc6b451d5 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteApplianceExportJobConverter.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class DeleteApplianceExportJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static DeleteApplianceExportJobRequest interceptRequest( + DeleteApplianceExportJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + DeleteApplianceExportJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getApplianceExportJobId(), "applianceExportJobId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20171001") + .path("applianceExportJobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplianceExportJobId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplianceExportJobResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplianceExportJobResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteApplianceExportJobResponse>() { + @Override + public DeleteApplianceExportJobResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for DeleteApplianceExportJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + DeleteApplianceExportJobResponse.Builder builder = + DeleteApplianceExportJobResponse.builder(); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + DeleteApplianceExportJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferApplianceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferApplianceConverter.java index 425d811ce1a..baa83e850af 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferApplianceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferApplianceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class DeleteTransferApplianceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferDeviceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferDeviceConverter.java index c1e2ac1df1e..d22443eda61 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferDeviceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferDeviceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class DeleteTransferDeviceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferJobConverter.java index 76d8a017fcb..72c1c425375 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferJobConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferJobConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class DeleteTransferJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory @@ -38,6 +38,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + return ib; } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferPackageConverter.java index f8628a4156e..6eb04908f86 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DeleteTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class DeleteTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DetachDevicesFromTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DetachDevicesFromTransferPackageConverter.java index 80bf4157a33..9a953163261 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DetachDevicesFromTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/DetachDevicesFromTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class DetachDevicesFromTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetApplianceExportJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetApplianceExportJobConverter.java new file mode 100644 index 00000000000..057bdbc43e5 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetApplianceExportJobConverter.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class GetApplianceExportJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static GetApplianceExportJobRequest interceptRequest( + GetApplianceExportJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, GetApplianceExportJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getApplianceExportJobId(), "applianceExportJobId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20171001") + .path("applianceExportJobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplianceExportJobId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, GetApplianceExportJobResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetApplianceExportJobResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, GetApplianceExportJobResponse>() { + @Override + public GetApplianceExportJobResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for GetApplianceExportJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ApplianceExportJob>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ApplianceExportJob.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + GetApplianceExportJobResponse.Builder builder = + GetApplianceExportJobResponse.builder(); + + builder.applianceExportJob(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + GetApplianceExportJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceCertificateAuthorityCertificateConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceCertificateAuthorityCertificateConverter.java index e51baac67e6..711e3d5b687 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceCertificateAuthorityCertificateConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceCertificateAuthorityCertificateConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferApplianceCertificateAuthorityCertificateConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceConverter.java index c10c78e2985..f38a76d4ae8 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferApplianceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEncryptionPassphraseConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEncryptionPassphraseConverter.java index e4c0230e4c4..fc7019c606c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEncryptionPassphraseConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEncryptionPassphraseConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferApplianceEncryptionPassphraseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEntitlementConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEntitlementConverter.java index 8a2c6d67ce9..ee7b0607c64 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEntitlementConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferApplianceEntitlementConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferApplianceEntitlementConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferDeviceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferDeviceConverter.java index 831e7b890fb..76cb0e8716b 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferDeviceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferDeviceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferDeviceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferJobConverter.java index eaa0f8d79db..296a49c8e46 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferJobConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferJobConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory @@ -38,6 +38,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + return ib; } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferPackageConverter.java index 5a91d567bfe..c16eb019a3d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/GetTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class GetTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListApplianceExportJobsConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListApplianceExportJobsConverter.java new file mode 100644 index 00000000000..58e4690dba2 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListApplianceExportJobsConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class ListApplianceExportJobsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListApplianceExportJobsRequest interceptRequest( + ListApplianceExportJobsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + ListApplianceExportJobsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20171001").path("applianceExportJobs"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplianceExportJobsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplianceExportJobsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListApplianceExportJobsResponse>() { + @Override + public ListApplianceExportJobsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListApplianceExportJobsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ApplianceExportJobSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListApplianceExportJobsResponse.Builder builder = + ListApplianceExportJobsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + ListApplianceExportJobsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListShippingVendorsConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListShippingVendorsConverter.java index 5bbd6b5bc32..e30ecf8d8cb 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListShippingVendorsConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListShippingVendorsConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListShippingVendorsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferApplianceEntitlementConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferApplianceEntitlementConverter.java index 6473fee4dbd..218dfba52fb 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferApplianceEntitlementConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferApplianceEntitlementConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListTransferApplianceEntitlementConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferAppliancesConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferAppliancesConverter.java index 94c9ace1faa..9f56ecf8fe4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferAppliancesConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferAppliancesConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListTransferAppliancesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferDevicesConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferDevicesConverter.java index 4a98a414d50..005a566ba7e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferDevicesConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferDevicesConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListTransferDevicesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferJobsConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferJobsConverter.java index 75f877825b4..d48134799e1 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferJobsConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferJobsConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListTransferJobsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory @@ -51,10 +51,30 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDisplayName())); } + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + return ib; } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferPackagesConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferPackagesConverter.java index 49483ac82fd..23007b5c094 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferPackagesConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/ListTransferPackagesConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class ListTransferPackagesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateApplianceExportJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateApplianceExportJobConverter.java new file mode 100644 index 00000000000..e48b63de541 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateApplianceExportJobConverter.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.dts.model.*; +import com.oracle.bmc.dts.requests.*; +import com.oracle.bmc.dts.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.extern.slf4j.Slf4j +public class UpdateApplianceExportJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static UpdateApplianceExportJobRequest interceptRequest( + UpdateApplianceExportJobRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + UpdateApplianceExportJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getApplianceExportJobId(), "applianceExportJobId must not be blank"); + Validate.notNull( + request.getUpdateApplianceExportJobDetails(), + "updateApplianceExportJobDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20171001") + .path("applianceExportJobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getApplianceExportJobId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplianceExportJobResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplianceExportJobResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateApplianceExportJobResponse>() { + @Override + public UpdateApplianceExportJobResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for UpdateApplianceExportJobResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ApplianceExportJob>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ApplianceExportJob.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + UpdateApplianceExportJobResponse.Builder builder = + UpdateApplianceExportJobResponse.builder(); + + builder.applianceExportJob(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + UpdateApplianceExportJobResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferApplianceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferApplianceConverter.java index 183159400cf..7a9b188b894 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferApplianceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferApplianceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class UpdateTransferApplianceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferDeviceConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferDeviceConverter.java index 1e07d1abf30..8ba217d0ec2 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferDeviceConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferDeviceConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class UpdateTransferDeviceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferJobConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferJobConverter.java index 09c1413d8bc..f68269fa912 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferJobConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferJobConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class UpdateTransferJobConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory @@ -44,6 +44,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("if-match", request.getIfMatch()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + return ib; } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferPackageConverter.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferPackageConverter.java index b36f478a257..c6200418378 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferPackageConverter.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/internal/http/UpdateTransferPackageConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.dts.responses.*; import org.apache.commons.lang3.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.extern.slf4j.Slf4j public class UpdateTransferPackageConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJob.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJob.java new file mode 100644 index 00000000000..1d79cdaabfd --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJob.java @@ -0,0 +1,571 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApplianceExportJob.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ApplianceExportJob { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + 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("creationTime") + private java.util.Date creationTime; + + public Builder creationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + this.__explicitlySet__.add("creationTime"); + 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("lifecycleStateDetails") + private String lifecycleStateDetails; + + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applianceSerialNumber") + private String applianceSerialNumber; + + public Builder applianceSerialNumber(String applianceSerialNumber) { + this.applianceSerialNumber = applianceSerialNumber; + this.__explicitlySet__.add("applianceSerialNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applianceDecryptionPassphrase") + private String applianceDecryptionPassphrase; + + public Builder applianceDecryptionPassphrase(String applianceDecryptionPassphrase) { + this.applianceDecryptionPassphrase = applianceDecryptionPassphrase; + this.__explicitlySet__.add("applianceDecryptionPassphrase"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applianceDeliveryVendor") + private String applianceDeliveryVendor; + + public Builder applianceDeliveryVendor(String applianceDeliveryVendor) { + this.applianceDeliveryVendor = applianceDeliveryVendor; + this.__explicitlySet__.add("applianceDeliveryVendor"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applianceDeliveryTrackingNumber") + private String applianceDeliveryTrackingNumber; + + public Builder applianceDeliveryTrackingNumber(String applianceDeliveryTrackingNumber) { + this.applianceDeliveryTrackingNumber = applianceDeliveryTrackingNumber; + this.__explicitlySet__.add("applianceDeliveryTrackingNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("applianceReturnDeliveryTrackingNumber") + private String applianceReturnDeliveryTrackingNumber; + + public Builder applianceReturnDeliveryTrackingNumber( + String applianceReturnDeliveryTrackingNumber) { + this.applianceReturnDeliveryTrackingNumber = applianceReturnDeliveryTrackingNumber; + this.__explicitlySet__.add("applianceReturnDeliveryTrackingNumber"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sendingSecurityTie") + private String sendingSecurityTie; + + public Builder sendingSecurityTie(String sendingSecurityTie) { + this.sendingSecurityTie = sendingSecurityTie; + this.__explicitlySet__.add("sendingSecurityTie"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("receivingSecurityTie") + private String receivingSecurityTie; + + public Builder receivingSecurityTie(String receivingSecurityTie) { + this.receivingSecurityTie = receivingSecurityTie; + this.__explicitlySet__.add("receivingSecurityTie"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + private String rangeStart; + + public Builder rangeStart(String rangeStart) { + this.rangeStart = rangeStart; + this.__explicitlySet__.add("rangeStart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + private String rangeEnd; + + public Builder rangeEnd(String rangeEnd) { + this.rangeEnd = rangeEnd; + this.__explicitlySet__.add("rangeEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + private String numberOfObjects; + + public Builder numberOfObjects(String numberOfObjects) { + this.numberOfObjects = numberOfObjects; + this.__explicitlySet__.add("numberOfObjects"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("totalSizeInBytes") + private String totalSizeInBytes; + + public Builder totalSizeInBytes(String totalSizeInBytes) { + this.totalSizeInBytes = totalSizeInBytes; + this.__explicitlySet__.add("totalSizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("firstObject") + private String firstObject; + + public Builder firstObject(String firstObject) { + this.firstObject = firstObject; + this.__explicitlySet__.add("firstObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastObject") + private String lastObject; + + public Builder lastObject(String lastObject) { + this.lastObject = lastObject; + this.__explicitlySet__.add("lastObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nextObject") + private String nextObject; + + public Builder nextObject(String nextObject) { + this.nextObject = nextObject; + this.__explicitlySet__.add("nextObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("manifestFile") + private String manifestFile; + + public Builder manifestFile(String manifestFile) { + this.manifestFile = manifestFile; + this.__explicitlySet__.add("manifestFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("manifestMd5") + private String manifestMd5; + + public Builder manifestMd5(String manifestMd5) { + this.manifestMd5 = manifestMd5; + this.__explicitlySet__.add("manifestMd5"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucketAccessPolicies") + private java.util.List bucketAccessPolicies; + + public Builder bucketAccessPolicies(java.util.List bucketAccessPolicies) { + this.bucketAccessPolicies = bucketAccessPolicies; + this.__explicitlySet__.add("bucketAccessPolicies"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + private ShippingAddress customerShippingAddress; + + public Builder customerShippingAddress(ShippingAddress customerShippingAddress) { + this.customerShippingAddress = customerShippingAddress; + this.__explicitlySet__.add("customerShippingAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApplianceExportJob build() { + ApplianceExportJob __instance__ = + new ApplianceExportJob( + id, + compartmentId, + bucketName, + displayName, + creationTime, + lifecycleState, + lifecycleStateDetails, + applianceSerialNumber, + applianceDecryptionPassphrase, + applianceDeliveryVendor, + applianceDeliveryTrackingNumber, + applianceReturnDeliveryTrackingNumber, + sendingSecurityTie, + receivingSecurityTie, + prefix, + rangeStart, + rangeEnd, + numberOfObjects, + totalSizeInBytes, + firstObject, + lastObject, + nextObject, + manifestFile, + manifestMd5, + bucketAccessPolicies, + customerShippingAddress, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApplianceExportJob o) { + Builder copiedBuilder = + id(o.getId()) + .compartmentId(o.getCompartmentId()) + .bucketName(o.getBucketName()) + .displayName(o.getDisplayName()) + .creationTime(o.getCreationTime()) + .lifecycleState(o.getLifecycleState()) + .lifecycleStateDetails(o.getLifecycleStateDetails()) + .applianceSerialNumber(o.getApplianceSerialNumber()) + .applianceDecryptionPassphrase(o.getApplianceDecryptionPassphrase()) + .applianceDeliveryVendor(o.getApplianceDeliveryVendor()) + .applianceDeliveryTrackingNumber(o.getApplianceDeliveryTrackingNumber()) + .applianceReturnDeliveryTrackingNumber( + o.getApplianceReturnDeliveryTrackingNumber()) + .sendingSecurityTie(o.getSendingSecurityTie()) + .receivingSecurityTie(o.getReceivingSecurityTie()) + .prefix(o.getPrefix()) + .rangeStart(o.getRangeStart()) + .rangeEnd(o.getRangeEnd()) + .numberOfObjects(o.getNumberOfObjects()) + .totalSizeInBytes(o.getTotalSizeInBytes()) + .firstObject(o.getFirstObject()) + .lastObject(o.getLastObject()) + .nextObject(o.getNextObject()) + .manifestFile(o.getManifestFile()) + .manifestMd5(o.getManifestMd5()) + .bucketAccessPolicies(o.getBucketAccessPolicies()) + .customerShippingAddress(o.getCustomerShippingAddress()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + String bucketName; + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + @com.fasterxml.jackson.annotation.JsonProperty("creationTime") + java.util.Date creationTime; + /** + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inprogress("INPROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + Cancelled("CANCELLED"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * A property that can contain details on the lifecycle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + String lifecycleStateDetails; + + /** + * Serial Number of the Appliance associated with this Export Job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applianceSerialNumber") + String applianceSerialNumber; + + /** + * Passphrase associated with the Appliance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applianceDecryptionPassphrase") + String applianceDecryptionPassphrase; + + /** + * Shipping Vendor selected to ship the Appliance associated with this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applianceDeliveryVendor") + String applianceDeliveryVendor; + + /** + * Tracking number associated with the shipment while shipping the Appliance to Customer. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applianceDeliveryTrackingNumber") + String applianceDeliveryTrackingNumber; + + /** + * Tracking number associated with the shipment while shipping the Appliance back to Oracle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applianceReturnDeliveryTrackingNumber") + String applianceReturnDeliveryTrackingNumber; + + /** + * Unique number associated with the security tie used to seal the Appliance case. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sendingSecurityTie") + String sendingSecurityTie; + + /** + * Unique number associated with the return security tie used to seal the Appliance case. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("receivingSecurityTie") + String receivingSecurityTie; + + /** + * List of objects with names matching this prefix would be part of this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + String prefix; + + /** + * The name of the first object in the range of objects that are expected to be part of this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + String rangeStart; + + /** + * The name of the last object in the range of objects that are expected to be part of this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + String rangeEnd; + + /** + * Total number of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + String numberOfObjects; + + /** + * Total size of objects in Bytes that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSizeInBytes") + String totalSizeInBytes; + + /** + * First object in the list of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firstObject") + String firstObject; + + /** + * Last object in the list of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastObject") + String lastObject; + + /** + * First object from which the next potential export job could start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nextObject") + String nextObject; + + /** + * Url of the Manifest File associated with this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manifestFile") + String manifestFile; + + /** + * md5 digest of the manifest file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manifestMd5") + String manifestMd5; + + /** + * Polices to grant Data Transfer Service to access objects in the Bucket + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bucketAccessPolicies") + java.util.List bucketAccessPolicies; + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + ShippingAddress customerShippingAddress; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJobSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJobSummary.java new file mode 100644 index 00000000000..3bc43e5b6be --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ApplianceExportJobSummary.java @@ -0,0 +1,235 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ApplianceExportJobSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ApplianceExportJobSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + 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("creationTime") + private java.util.Date creationTime; + + public Builder creationTime(java.util.Date creationTime) { + this.creationTime = creationTime; + this.__explicitlySet__.add("creationTime"); + 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("lifecycleStateDetails") + private String lifecycleStateDetails; + + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ApplianceExportJobSummary build() { + ApplianceExportJobSummary __instance__ = + new ApplianceExportJobSummary( + id, + bucketName, + displayName, + creationTime, + lifecycleState, + lifecycleStateDetails, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ApplianceExportJobSummary o) { + Builder copiedBuilder = + id(o.getId()) + .bucketName(o.getBucketName()) + .displayName(o.getDisplayName()) + .creationTime(o.getCreationTime()) + .lifecycleState(o.getLifecycleState()) + .lifecycleStateDetails(o.getLifecycleStateDetails()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + String bucketName; + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + @com.fasterxml.jackson.annotation.JsonProperty("creationTime") + java.util.Date creationTime; + /** + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inprogress("INPROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + Cancelled("CANCELLED"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * A property that can contain details on the lifecycle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + String lifecycleStateDetails; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/AttachDevicesDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/AttachDevicesDetails.java index 1c42eab0bb5..0771f055c30 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/AttachDevicesDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/AttachDevicesDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeApplianceExportJobCompartmentDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeApplianceExportJobCompartmentDetails.java new file mode 100644 index 00000000000..85953d62e9c --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeApplianceExportJobCompartmentDetails.java @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeApplianceExportJobCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ChangeApplianceExportJobCompartmentDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeApplianceExportJobCompartmentDetails build() { + ChangeApplianceExportJobCompartmentDetails __instance__ = + new ChangeApplianceExportJobCompartmentDetails(compartmentId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeApplianceExportJobCompartmentDetails o) { + Builder copiedBuilder = compartmentId(o.getCompartmentId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID] (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resources should be moved. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeTransferJobCompartmentDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeTransferJobCompartmentDetails.java index ed83d74e4d5..5c2d9897c83 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeTransferJobCompartmentDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ChangeTransferJobCompartmentDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateApplianceExportJobDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateApplianceExportJobDetails.java new file mode 100644 index 00000000000..52b996747e3 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateApplianceExportJobDetails.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateApplianceExportJobDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateApplianceExportJobDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + 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("prefix") + private String prefix; + + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + private String rangeStart; + + public Builder rangeStart(String rangeStart) { + this.rangeStart = rangeStart; + this.__explicitlySet__.add("rangeStart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + private String rangeEnd; + + public Builder rangeEnd(String rangeEnd) { + this.rangeEnd = rangeEnd; + this.__explicitlySet__.add("rangeEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + private ShippingAddress customerShippingAddress; + + public Builder customerShippingAddress(ShippingAddress customerShippingAddress) { + this.customerShippingAddress = customerShippingAddress; + this.__explicitlySet__.add("customerShippingAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateApplianceExportJobDetails build() { + CreateApplianceExportJobDetails __instance__ = + new CreateApplianceExportJobDetails( + compartmentId, + bucketName, + displayName, + prefix, + rangeStart, + rangeEnd, + customerShippingAddress, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateApplianceExportJobDetails o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .bucketName(o.getBucketName()) + .displayName(o.getDisplayName()) + .prefix(o.getPrefix()) + .rangeStart(o.getRangeStart()) + .rangeEnd(o.getRangeEnd()) + .customerShippingAddress(o.getCustomerShippingAddress()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + String bucketName; + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * List of objects with names matching this prefix would be part of this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + String prefix; + + /** + * Object names returned by a list query must be greater or equal to this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + String rangeStart; + + /** + * Object names returned by a list query must be strictly less than this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + String rangeEnd; + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + ShippingAddress customerShippingAddress; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceDetails.java index ddcc44310c9..3bc9e3de5ba 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceEntitlementDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceEntitlementDetails.java index aceaf807d6c..bc2c1574adc 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceEntitlementDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferApplianceEntitlementDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -130,16 +130,20 @@ public static Builder builder() { String requestorEmail; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferDeviceDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferDeviceDetails.java index 00f95bab3b0..ce418517c76 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferDeviceDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferDeviceDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferJobDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferJobDetails.java index 911c98ab0e9..654f26d90bc 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferJobDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferJobDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -164,16 +164,20 @@ public static DeviceType create(String key) { DeviceType deviceType; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferPackageDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferPackageDetails.java index 5ad8dbba59a..3628acdf089 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferPackageDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/CreateTransferPackageDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/DetachDevicesDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/DetachDevicesDetails.java index 7bb125405da..e71fba735a0 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/DetachDevicesDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/DetachDevicesDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferAppliances.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferAppliances.java index 633d96e34b1..c0633a4dfbd 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferAppliances.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferAppliances.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferDevices.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferDevices.java index a86fe5c4db5..a004b8eeb42 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferDevices.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferDevices.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferPackages.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferPackages.java index 81373aded34..10585d377b5 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferPackages.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/MultipleTransferPackages.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/NewTransferDevice.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/NewTransferDevice.java index 2e495d1d6a1..e029b205d7a 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/NewTransferDevice.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/NewTransferDevice.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingAddress.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingAddress.java index f4fec056437..c88c32ef773 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingAddress.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingAddress.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ShippingAddress.Builder.class) diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingVendors.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingVendors.java index 17a04dd1e82..3505a2b5922 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingVendors.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/ShippingVendors.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ShippingVendors.Builder.class) diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliance.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliance.java index 3fdcc4d7398..9755287ba80 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliance.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliance.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceCertificate.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceCertificate.java index d8bb6e06b65..d8357769e1f 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceCertificate.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceCertificate.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEncryptionPassphrase.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEncryptionPassphrase.java index a442842f613..8fa0ed1cc59 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEncryptionPassphrase.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEncryptionPassphrase.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlement.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlement.java index 67337746a2e..414c80b7e02 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlement.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlement.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -250,16 +250,20 @@ public static LifecycleState create(String key) { java.util.Date updateTime; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlementSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlementSummary.java index c74a8c87fe5..45d597eaa1e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlementSummary.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceEntitlementSummary.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -175,16 +175,20 @@ public static Builder builder() { String lifecycleStateDetails; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliancePublicKey.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliancePublicKey.java index 681388f38eb..589774bcaac 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliancePublicKey.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferAppliancePublicKey.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceSummary.java index 76b5de65fb1..bb3ef7bbd08 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceSummary.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferApplianceSummary.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDevice.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDevice.java index 00fc3d63a8f..840ea1c1434 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDevice.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDevice.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TransferDevice.Builder.class) diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDeviceSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDeviceSummary.java index 0492317e0c5..77b37e9061f 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDeviceSummary.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferDeviceSummary.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJob.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJob.java index 0911398db49..3c510084b0e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJob.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJob.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TransferJob.Builder.class) @@ -331,16 +331,20 @@ public static LifecycleState create(String key) { java.util.List attachedTransferDeviceLabels; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJobSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJobSummary.java index a788f38fa44..2e99ac10ee4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJobSummary.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferJobSummary.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -265,16 +265,20 @@ public static LifecycleState create(String key) { LifecycleState lifecycleState; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackage.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackage.java index f712a7b0a62..8293223c33d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackage.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackage.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = TransferPackage.Builder.class) diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackageSummary.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackageSummary.java index d2de119901e..9abfec2efa5 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackageSummary.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/TransferPackageSummary.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateApplianceExportJobDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateApplianceExportJobDetails.java new file mode 100644 index 00000000000..4b2abe02240 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateApplianceExportJobDetails.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.model; + +/** + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateApplianceExportJobDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateApplianceExportJobDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + private String bucketName; + + public Builder bucketName(String bucketName) { + this.bucketName = bucketName; + this.__explicitlySet__.add("bucketName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private String prefix; + + public Builder prefix(String prefix) { + this.prefix = prefix; + this.__explicitlySet__.add("prefix"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + private String rangeStart; + + public Builder rangeStart(String rangeStart) { + this.rangeStart = rangeStart; + this.__explicitlySet__.add("rangeStart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + private String rangeEnd; + + public Builder rangeEnd(String rangeEnd) { + this.rangeEnd = rangeEnd; + this.__explicitlySet__.add("rangeEnd"); + 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("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + private String lifecycleStateDetails; + + public Builder lifecycleStateDetails(String lifecycleStateDetails) { + this.lifecycleStateDetails = lifecycleStateDetails; + this.__explicitlySet__.add("lifecycleStateDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("manifestFile") + private String manifestFile; + + public Builder manifestFile(String manifestFile) { + this.manifestFile = manifestFile; + this.__explicitlySet__.add("manifestFile"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("manifestMd5") + private String manifestMd5; + + public Builder manifestMd5(String manifestMd5) { + this.manifestMd5 = manifestMd5; + this.__explicitlySet__.add("manifestMd5"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + private String numberOfObjects; + + public Builder numberOfObjects(String numberOfObjects) { + this.numberOfObjects = numberOfObjects; + this.__explicitlySet__.add("numberOfObjects"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("totalSizeInBytes") + private String totalSizeInBytes; + + public Builder totalSizeInBytes(String totalSizeInBytes) { + this.totalSizeInBytes = totalSizeInBytes; + this.__explicitlySet__.add("totalSizeInBytes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("firstObject") + private String firstObject; + + public Builder firstObject(String firstObject) { + this.firstObject = firstObject; + this.__explicitlySet__.add("firstObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lastObject") + private String lastObject; + + public Builder lastObject(String lastObject) { + this.lastObject = lastObject; + this.__explicitlySet__.add("lastObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nextObject") + private String nextObject; + + public Builder nextObject(String nextObject) { + this.nextObject = nextObject; + this.__explicitlySet__.add("nextObject"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + private ShippingAddress customerShippingAddress; + + public Builder customerShippingAddress(ShippingAddress customerShippingAddress) { + this.customerShippingAddress = customerShippingAddress; + this.__explicitlySet__.add("customerShippingAddress"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateApplianceExportJobDetails build() { + UpdateApplianceExportJobDetails __instance__ = + new UpdateApplianceExportJobDetails( + bucketName, + prefix, + rangeStart, + rangeEnd, + displayName, + lifecycleState, + lifecycleStateDetails, + manifestFile, + manifestMd5, + numberOfObjects, + totalSizeInBytes, + firstObject, + lastObject, + nextObject, + customerShippingAddress, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateApplianceExportJobDetails o) { + Builder copiedBuilder = + bucketName(o.getBucketName()) + .prefix(o.getPrefix()) + .rangeStart(o.getRangeStart()) + .rangeEnd(o.getRangeEnd()) + .displayName(o.getDisplayName()) + .lifecycleState(o.getLifecycleState()) + .lifecycleStateDetails(o.getLifecycleStateDetails()) + .manifestFile(o.getManifestFile()) + .manifestMd5(o.getManifestMd5()) + .numberOfObjects(o.getNumberOfObjects()) + .totalSizeInBytes(o.getTotalSizeInBytes()) + .firstObject(o.getFirstObject()) + .lastObject(o.getLastObject()) + .nextObject(o.getNextObject()) + .customerShippingAddress(o.getCustomerShippingAddress()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @com.fasterxml.jackson.annotation.JsonProperty("bucketName") + String bucketName; + + /** + * List of objects with names matching this prefix would be part of this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + String prefix; + + /** + * Object names returned by a list query must be greater or equal to this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") + String rangeStart; + + /** + * Object names returned by a list query must be strictly less than this parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") + String rangeEnd; + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + /** + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inprogress("INPROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + Cancelled("CANCELLED"), + Deleted("DELETED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid LifecycleState: " + key); + } + }; + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * A property that can contain details on the lifecycle. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleStateDetails") + String lifecycleStateDetails; + + /** + * Manifest File associated with this export job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manifestFile") + String manifestFile; + + /** + * md5 digest of the manifest file. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("manifestMd5") + String manifestMd5; + + /** + * Total number of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("numberOfObjects") + String numberOfObjects; + + /** + * Total size of objects in Bytes that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalSizeInBytes") + String totalSizeInBytes; + + /** + * First object in the list of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("firstObject") + String firstObject; + + /** + * Last object in the list of objects that are exported in this job. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastObject") + String lastObject; + + /** + * First object from which the next potential export job could start. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("nextObject") + String nextObject; + + @com.fasterxml.jackson.annotation.JsonProperty("customerShippingAddress") + ShippingAddress customerShippingAddress; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferApplianceDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferApplianceDetails.java index 6ca819a2983..ca829ca70b7 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferApplianceDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferApplianceDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferDeviceDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferDeviceDetails.java index e0955b38eae..56a0ad1619e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferDeviceDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferDeviceDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferJobDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferJobDetails.java index 9347c296de1..223cbb06f0e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferJobDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferJobDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( @@ -180,16 +180,20 @@ public static DeviceType create(String key) { DeviceType deviceType; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: `{\"bar-key\": \"value\"}` + * Free-form tags for this resource. Each tag is a simple key-value pair with no + * predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") java.util.Map freeformTags; /** - * Usage of predefined tag keys. These predefined keys are scoped to namespaces. - * Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}` + * Defined tags for this resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferPackageDetails.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferPackageDetails.java index 7a97a805a68..04939253076 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferPackageDetails.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/model/UpdateTransferPackageDetails.java @@ -13,7 +13,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/AttachDevicesToTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/AttachDevicesToTransferPackageRequest.java index 63323304706..37d85e347f4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/AttachDevicesToTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/AttachDevicesToTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class AttachDevicesToTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeApplianceExportJobCompartmentRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeApplianceExportJobCompartmentRequest.java new file mode 100644 index 00000000000..3974d72e706 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeApplianceExportJobCompartmentRequest.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ChangeApplianceExportJobCompartmentRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * ID of the Appliance Export Job + */ + private String applianceExportJobId; + + /** + * CompartmentId of the destination compartment + */ + private ChangeApplianceExportJobCompartmentDetails changeApplianceExportJobCompartmentDetails; + + /** + * The entity tag to match. Optional, if set, the update will be successful only if the + * object's tag matches the tag specified in the request. + * + */ + private String 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; + + /** + * 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 (e.g., 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeApplianceExportJobCompartmentRequest o) { + applianceExportJobId(o.getApplianceExportJobId()); + changeApplianceExportJobCompartmentDetails( + o.getChangeApplianceExportJobCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeApplianceExportJobCompartmentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeApplianceExportJobCompartmentRequest + */ + public ChangeApplianceExportJobCompartmentRequest build() { + ChangeApplianceExportJobCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeTransferJobCompartmentRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeTransferJobCompartmentRequest.java index ff9d7185dc5..c1308e30a74 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeTransferJobCompartmentRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ChangeTransferJobCompartmentRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ChangeTransferJobCompartmentRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateApplianceExportJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateApplianceExportJobRequest.java new file mode 100644 index 00000000000..15b3075e974 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateApplianceExportJobRequest.java @@ -0,0 +1,93 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateApplianceExportJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * Creates a new Appliance Export Job + */ + private CreateApplianceExportJobDetails createApplianceExportJobDetails; + + /** + * 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 (e.g., 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; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateApplianceExportJobRequest o) { + createApplianceExportJobDetails(o.getCreateApplianceExportJobDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateApplianceExportJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateApplianceExportJobRequest + */ + public CreateApplianceExportJobRequest build() { + CreateApplianceExportJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceAdminCredentialsRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceAdminCredentialsRequest.java index 322e83ce2b3..1b0c7d3429e 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceAdminCredentialsRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceAdminCredentialsRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferApplianceAdminCredentialsRequest diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceEntitlementRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceEntitlementRequest.java index 6078dfca169..b570adfa11a 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceEntitlementRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceEntitlementRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferApplianceEntitlementRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceRequest.java index b456ff9ce59..843b4643e41 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferApplianceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferApplianceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferDeviceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferDeviceRequest.java index 7e3f38a2965..fb69503e06a 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferDeviceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferDeviceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferDeviceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferJobRequest.java index d8b3583884f..cd6b59633f3 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferJobRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferJobRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferJobRequest extends com.oracle.bmc.requests.BmcRequest { @@ -20,6 +20,13 @@ public class CreateTransferJobRequest extends com.oracle.bmc.requests.BmcRequest */ private String opcRetryToken; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + public static class Builder { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; @@ -55,6 +62,7 @@ public Builder retryConfiguration( public Builder copy(CreateTransferJobRequest o) { createTransferJobDetails(o.getCreateTransferJobDetails()); opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferPackageRequest.java index 42b4af48d78..da4b33e80a1 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/CreateTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class CreateTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteApplianceExportJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteApplianceExportJobRequest.java new file mode 100644 index 00000000000..ac8df6e7a6d --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteApplianceExportJobRequest.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteApplianceExportJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * ID of the Appliance Export Job + */ + private String applianceExportJobId; + + /** + * The entity tag to match. Optional, if set, the update will be successful only if the + * object's tag matches the tag specified in the request. + * + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteApplianceExportJobRequest o) { + applianceExportJobId(o.getApplianceExportJobId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteApplianceExportJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteApplianceExportJobRequest + */ + public DeleteApplianceExportJobRequest build() { + DeleteApplianceExportJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferApplianceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferApplianceRequest.java index 823dc47823d..0a9d36d7848 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferApplianceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferApplianceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class DeleteTransferApplianceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferDeviceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferDeviceRequest.java index 6f8a6ad61e6..0b02a314897 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferDeviceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferDeviceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class DeleteTransferDeviceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferJobRequest.java index f43102fc82d..6e8daf040c9 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferJobRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferJobRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class DeleteTransferJobRequest extends com.oracle.bmc.requests.BmcRequest { @@ -15,6 +15,13 @@ public class DeleteTransferJobRequest extends com.oracle.bmc.requests.BmcRequest */ private String id; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + public static class Builder { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; @@ -49,6 +56,7 @@ public Builder retryConfiguration( */ public Builder copy(DeleteTransferJobRequest o) { id(o.getId()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferPackageRequest.java index c8d6909c749..c6f83ccab76 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DeleteTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class DeleteTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DetachDevicesFromTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DetachDevicesFromTransferPackageRequest.java index de904c021e6..56abff8367b 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DetachDevicesFromTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/DetachDevicesFromTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class DetachDevicesFromTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetApplianceExportJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetApplianceExportJobRequest.java new file mode 100644 index 00000000000..2c0457b7de7 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetApplianceExportJobRequest.java @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetApplianceExportJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * OCID of the Appliance Export Job + */ + private String applianceExportJobId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetApplianceExportJobRequest o) { + applianceExportJobId(o.getApplianceExportJobId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetApplianceExportJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetApplianceExportJobRequest + */ + public GetApplianceExportJobRequest build() { + GetApplianceExportJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceCertificateAuthorityCertificateRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceCertificateAuthorityCertificateRequest.java index 7e0a2653c5c..76fd57f64b8 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceCertificateAuthorityCertificateRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceCertificateAuthorityCertificateRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferApplianceCertificateAuthorityCertificateRequest diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEncryptionPassphraseRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEncryptionPassphraseRequest.java index d6c52f2fd1e..3a6b85ecb03 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEncryptionPassphraseRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEncryptionPassphraseRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferApplianceEncryptionPassphraseRequest diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEntitlementRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEntitlementRequest.java index 96dd4fb2e98..3796da10b03 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEntitlementRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceEntitlementRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferApplianceEntitlementRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceRequest.java index 80a95530533..e2e0ee52e73 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferApplianceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferApplianceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferDeviceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferDeviceRequest.java index 21c549f1aea..fcc5e2bc0b4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferDeviceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferDeviceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferDeviceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferJobRequest.java index 67042ef780a..b6ff8566ecf 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferJobRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferJobRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferJobRequest extends com.oracle.bmc.requests.BmcRequest { @@ -15,6 +15,13 @@ public class GetTransferJobRequest extends com.oracle.bmc.requests.BmcRequest { */ private String id; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + public static class Builder { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; @@ -49,6 +56,7 @@ public Builder retryConfiguration( */ public Builder copy(GetTransferJobRequest o) { id(o.getId()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferPackageRequest.java index 4a035bfe5e8..a770654aa28 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/GetTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class GetTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListApplianceExportJobsRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListApplianceExportJobsRequest.java new file mode 100644 index 00000000000..dd811f25e4a --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListApplianceExportJobsRequest.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListApplianceExportJobsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * compartment id + */ + private String compartmentId; + + /** + * filtering by lifecycleState + */ + private LifecycleState lifecycleState; + + /** + * filtering by lifecycleState + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inprogress("INPROGRESS"), + Succeeded("SUCCEEDED"), + Failed("FAILED"), + Cancelled("CANCELLED"), + Deleted("DELETED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid LifecycleState: " + key); + } + }; + + /** + * filtering by displayName + */ + private String displayName; + + /** + * 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: `50` + * + */ + private Integer limit; + + /** + * For list pagination. The value of the `opc-next-page` response header from the previous \"List\" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListApplianceExportJobsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListApplianceExportJobsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListApplianceExportJobsRequest + */ + public ListApplianceExportJobsRequest build() { + ListApplianceExportJobsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListShippingVendorsRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListShippingVendorsRequest.java index 01b46a33f24..c2b4d43d1b0 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListShippingVendorsRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListShippingVendorsRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListShippingVendorsRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferApplianceEntitlementRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferApplianceEntitlementRequest.java index 295ea0f200f..dc1ea20d3ac 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferApplianceEntitlementRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferApplianceEntitlementRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListTransferApplianceEntitlementRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferAppliancesRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferAppliancesRequest.java index f286142dc0b..0b6cea24338 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferAppliancesRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferAppliancesRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListTransferAppliancesRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferDevicesRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferDevicesRequest.java index 0623fb75915..e832761f88a 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferDevicesRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferDevicesRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListTransferDevicesRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferJobsRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferJobsRequest.java index e5ca7eaac54..2f3ee31e295 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferJobsRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferJobsRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListTransferJobsRequest extends com.oracle.bmc.requests.BmcRequest { @@ -64,6 +64,31 @@ public static LifecycleState create(String key) { */ private String displayName; + /** + * 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: `50` + * + */ + private Integer limit; + + /** + * For list pagination. The value of the `opc-next-page` response header from the previous \"List\" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + public static class Builder { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; @@ -100,6 +125,9 @@ public Builder copy(ListTransferJobsRequest o) { compartmentId(o.getCompartmentId()); lifecycleState(o.getLifecycleState()); displayName(o.getDisplayName()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferPackagesRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferPackagesRequest.java index 84ecbf68e79..bd4192713a4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferPackagesRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/ListTransferPackagesRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class ListTransferPackagesRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateApplianceExportJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateApplianceExportJobRequest.java new file mode 100644 index 00000000000..647e45898aa --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateApplianceExportJobRequest.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.requests; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateApplianceExportJobRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * ID of the Appliance Export Job + */ + private String applianceExportJobId; + + /** + * fields to update + */ + private UpdateApplianceExportJobDetails updateApplianceExportJobDetails; + + /** + * The entity tag to match. Optional, if set, the update will be successful only if the + * object's tag matches the tag specified in the request. + * + */ + private String 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; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateApplianceExportJobRequest o) { + applianceExportJobId(o.getApplianceExportJobId()); + updateApplianceExportJobDetails(o.getUpdateApplianceExportJobDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateApplianceExportJobRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateApplianceExportJobRequest + */ + public UpdateApplianceExportJobRequest build() { + UpdateApplianceExportJobRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferApplianceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferApplianceRequest.java index ae7cf07b3af..88344776ede 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferApplianceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferApplianceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class UpdateTransferApplianceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferDeviceRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferDeviceRequest.java index e64a2462b8b..d0f48de907b 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferDeviceRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferDeviceRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class UpdateTransferDeviceRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferJobRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferJobRequest.java index 67b8b61f739..37fac29b8ef 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferJobRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferJobRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class UpdateTransferJobRequest extends com.oracle.bmc.requests.BmcRequest { @@ -27,6 +27,13 @@ public class UpdateTransferJobRequest extends com.oracle.bmc.requests.BmcRequest */ private String 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; + public static class Builder { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; @@ -63,6 +70,7 @@ public Builder copy(UpdateTransferJobRequest o) { id(o.getId()); updateTransferJobDetails(o.getUpdateTransferJobDetails()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferPackageRequest.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferPackageRequest.java index b660eb00c06..6c5fcc4b3df 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferPackageRequest.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/requests/UpdateTransferPackageRequest.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") @lombok.Getter public class UpdateTransferPackageRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/AttachDevicesToTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/AttachDevicesToTransferPackageResponse.java index 818b1ee9b84..6881ac0cdef 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/AttachDevicesToTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/AttachDevicesToTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class AttachDevicesToTransferPackageResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeApplianceExportJobCompartmentResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeApplianceExportJobCompartmentResponse.java new file mode 100644 index 00000000000..e43934e156b --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeApplianceExportJobCompartmentResponse.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ChangeApplianceExportJobCompartmentResponse { + + /** + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeApplianceExportJobCompartmentResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeTransferJobCompartmentResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeTransferJobCompartmentResponse.java index 97ed149a0a7..c86d1360d67 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeTransferJobCompartmentResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ChangeTransferJobCompartmentResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ChangeTransferJobCompartmentResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateApplianceExportJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateApplianceExportJobResponse.java new file mode 100644 index 00000000000..c00bac26177 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateApplianceExportJobResponse.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateApplianceExportJobResponse { + + /** + * + */ + private String opcRequestId; + + /** + * + */ + private String etag; + + /** + * The returned ApplianceExportJob instance. + */ + private ApplianceExportJob applianceExportJob; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateApplianceExportJobResponse o) { + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + applianceExportJob(o.getApplianceExportJob()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceAdminCredentialsResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceAdminCredentialsResponse.java index a416520befd..3e98fd92ab2 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceAdminCredentialsResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceAdminCredentialsResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferApplianceAdminCredentialsResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceEntitlementResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceEntitlementResponse.java index e1a9f69ffe7..33ba3b7dd12 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceEntitlementResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceEntitlementResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferApplianceEntitlementResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceResponse.java index ab6f6e128db..febb6e57255 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferApplianceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferApplianceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferDeviceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferDeviceResponse.java index acdca5547f4..983f57392a4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferDeviceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferDeviceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferDeviceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferJobResponse.java index 22c1dc89ba1..d464b278670 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferJobResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferJobResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferJobResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferPackageResponse.java index e55e2c0be50..722b9bf6ecf 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/CreateTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class CreateTransferPackageResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteApplianceExportJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteApplianceExportJobResponse.java new file mode 100644 index 00000000000..03ba3800a27 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteApplianceExportJobResponse.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteApplianceExportJobResponse { + + /** + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteApplianceExportJobResponse o) { + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferApplianceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferApplianceResponse.java index 85b98cfb379..61c01d19b6d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferApplianceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferApplianceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class DeleteTransferApplianceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferDeviceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferDeviceResponse.java index c3d326d4d01..b0be73ba4ad 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferDeviceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferDeviceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class DeleteTransferDeviceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferJobResponse.java index eb300e33e1d..859cc3f7342 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferJobResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferJobResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class DeleteTransferJobResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferPackageResponse.java index ef5840b7454..921a6675806 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DeleteTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class DeleteTransferPackageResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DetachDevicesFromTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DetachDevicesFromTransferPackageResponse.java index d8f11d71a5c..96aa78a6366 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DetachDevicesFromTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/DetachDevicesFromTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class DetachDevicesFromTransferPackageResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetApplianceExportJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetApplianceExportJobResponse.java new file mode 100644 index 00000000000..1ab9901df85 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetApplianceExportJobResponse.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetApplianceExportJobResponse { + + /** + * + */ + private String opcRequestId; + + /** + * + */ + private String etag; + + /** + * The returned ApplianceExportJob instance. + */ + private ApplianceExportJob applianceExportJob; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetApplianceExportJobResponse o) { + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + applianceExportJob(o.getApplianceExportJob()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceCertificateAuthorityCertificateResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceCertificateAuthorityCertificateResponse.java index 83b53dfedd5..4f57efd1383 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceCertificateAuthorityCertificateResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceCertificateAuthorityCertificateResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferApplianceCertificateAuthorityCertificateResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEncryptionPassphraseResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEncryptionPassphraseResponse.java index 0f32d8ecb19..8535ccb4a33 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEncryptionPassphraseResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEncryptionPassphraseResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferApplianceEncryptionPassphraseResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEntitlementResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEntitlementResponse.java index 8b55588bcb0..cc1e3241344 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEntitlementResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceEntitlementResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferApplianceEntitlementResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceResponse.java index 3bee8c85666..9551da65f2d 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferApplianceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferApplianceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferDeviceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferDeviceResponse.java index d268cd4868a..f4249e891f6 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferDeviceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferDeviceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferDeviceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferJobResponse.java index ba9b195a54b..f904e32a259 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferJobResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferJobResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferJobResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferPackageResponse.java index d1e48b885ee..d80098ee4e0 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/GetTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class GetTransferPackageResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListApplianceExportJobsResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListApplianceExportJobsResponse.java new file mode 100644 index 00000000000..44631ae8e11 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListApplianceExportJobsResponse.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListApplianceExportJobsResponse { + + /** + * 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; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * A list of ApplianceExportJobSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListApplianceExportJobsResponse o) { + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListShippingVendorsResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListShippingVendorsResponse.java index 6ea4562d9d7..89af28d61a5 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListShippingVendorsResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListShippingVendorsResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListShippingVendorsResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferApplianceEntitlementResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferApplianceEntitlementResponse.java index 3a47904755e..e195cfba3c3 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferApplianceEntitlementResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferApplianceEntitlementResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListTransferApplianceEntitlementResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferAppliancesResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferAppliancesResponse.java index 672f9242406..1d27e569b4c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferAppliancesResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferAppliancesResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListTransferAppliancesResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferDevicesResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferDevicesResponse.java index 474b687107e..15b3e9076b4 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferDevicesResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferDevicesResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListTransferDevicesResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferJobsResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferJobsResponse.java index e1db3e3116c..3da4cddbed6 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferJobsResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferJobsResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListTransferJobsResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferPackagesResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferPackagesResponse.java index 12b46a964d4..cb27a3c3c5f 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferPackagesResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/ListTransferPackagesResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class ListTransferPackagesResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateApplianceExportJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateApplianceExportJobResponse.java new file mode 100644 index 00000000000..efe293e0281 --- /dev/null +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateApplianceExportJobResponse.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.dts.responses; + +import com.oracle.bmc.dts.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateApplianceExportJobResponse { + + /** + * + */ + private String opcRequestId; + + /** + * + */ + private String etag; + + /** + * The returned ApplianceExportJob instance. + */ + private ApplianceExportJob applianceExportJob; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateApplianceExportJobResponse o) { + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + applianceExportJob(o.getApplianceExportJob()); + + return this; + } + } +} diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferApplianceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferApplianceResponse.java index 259308c9cc7..fdcd84ab46a 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferApplianceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferApplianceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class UpdateTransferApplianceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferDeviceResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferDeviceResponse.java index 270f4245ebd..c60284379fc 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferDeviceResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferDeviceResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class UpdateTransferDeviceResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferJobResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferJobResponse.java index 4c964ba35f3..f5595d7953c 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferJobResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferJobResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class UpdateTransferJobResponse { diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferPackageResponse.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferPackageResponse.java index 3d893d26c7f..151a19b4e10 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferPackageResponse.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/responses/UpdateTransferPackageResponse.java @@ -5,7 +5,7 @@ import com.oracle.bmc.dts.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.011") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 1.0.014") @lombok.Builder(builderClassName = "Builder") @lombok.Getter public class UpdateTransferPackageResponse { diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 7c08679672d..aa068083eb6 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index e3c86ec3348..1b14342778a 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 671dc5ee0cf..26406be717a 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-examples @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.12.3 + 1.12.4 pom import @@ -176,5 +176,17 @@ com.oracle.oci.sdk oci-java-sdk-apigateway + + com.oracle.oci.sdk + oci-java-sdk-applicationmigration + + + com.oracle.oci.sdk + oci-java-sdk-datacatalog + + + com.oracle.oci.sdk + oci-java-sdk-dataflow + \ No newline at end of file diff --git a/bmc-examples/src/main/java/CreateLoadBalancerRuleSetExample.java b/bmc-examples/src/main/java/CreateLoadBalancerRuleSetExample.java index 32e9f163a70..11f56661f37 100644 --- a/bmc-examples/src/main/java/CreateLoadBalancerRuleSetExample.java +++ b/bmc-examples/src/main/java/CreateLoadBalancerRuleSetExample.java @@ -7,6 +7,10 @@ import com.oracle.bmc.loadbalancer.model.AddHttpRequestHeaderRule; import com.oracle.bmc.loadbalancer.model.AddHttpResponseHeaderRule; import com.oracle.bmc.loadbalancer.model.ControlAccessUsingHttpMethodsRule; +import com.oracle.bmc.loadbalancer.model.PathMatchCondition; +import com.oracle.bmc.loadbalancer.model.RedirectRule; +import com.oracle.bmc.loadbalancer.model.RedirectUri; +import com.oracle.bmc.loadbalancer.model.RuleCondition; import com.oracle.bmc.loadbalancer.model.CreateListenerDetails; import com.oracle.bmc.loadbalancer.model.CreateRuleSetDetails; import com.oracle.bmc.loadbalancer.model.ExtendHttpRequestHeaderValueRule; @@ -117,6 +121,18 @@ private static RuleSet createRuleSet( .allowedMethods(Arrays.asList("PUT", "POST")) .statusCode(403) .build()); + rules.add( + RedirectRule.builder() + .responseCode(302) + .conditions(getPathMatchConditions()) + .redirectUri( + RedirectUri.builder() + .host("abc.com") + .protocol("http") + .port(8998) + .path("/xyz") + .build()) + .build()); CreateRuleSetResponse response = loadBalancerClient.createRuleSet( @@ -178,4 +194,15 @@ private static void createListener( .build()) .execute(); } + + private static List getPathMatchConditions() { + PathMatchCondition condition = + PathMatchCondition.builder() + .attributeValue("/xyz") + .operator(PathMatchCondition.Operator.ForceLongestPrefixMatch) + .build(); + List conditions = new ArrayList<>(); + conditions.add(condition); + return conditions; + } } diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 562328c2846..3a19e4e86c8 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 42f52db6f5e..5df45f29d8c 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.12.3 + 1.12.4 pom import @@ -159,5 +159,17 @@ com.oracle.oci.sdk oci-java-sdk-apigateway + + com.oracle.oci.sdk + oci-java-sdk-applicationmigration + + + com.oracle.oci.sdk + oci-java-sdk-datacatalog + + + com.oracle.oci.sdk + oci-java-sdk-dataflow + \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 04709fc22b8..9585c10333b 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 86fcae4ea3a..725e77578c5 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 597f0467134..35c2bde94e9 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index b9fe322415f..3fd7b0180eb 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 0839c161065..8b1984289ff 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 784823639fb..4e69bd8fd6d 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index e45c5c40608..0d42034ff9c 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 8e2e28bbe4e..872bc03dc28 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 09582f7293f..f9c6af000a6 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ 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 5f4d25b0534..a367dd50fcc 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.3 + 1.12.4 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.12.3 + 1.12.4 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 1.12.3 + 1.12.4 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 021ff82da8d..651f6024637 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.3 + 1.12.4 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.12.3 + 1.12.4 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index a2c3e0fbb84..43d26e5c61e 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.3 + 1.12.4 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index f5f958e1585..523cf8087ac 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index cc2946a8657..8a949d8a0d5 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index e5451a74e0e..7cda7cdb5d0 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 7d6e969b5fc..6a3811267d7 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index bbf667dd32c..1018e2d3451 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 082c66ace19..70604515ad9 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 82454582293..ddd0976a5e9 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index bb8cb72f3d1..a6d8e1fb692 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 3cc707909ae..bb9d40a9cb1 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 25be294bedf..b3a1e765bbb 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 48d719e2299..30b70169fff 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 473c1ae4dc8..994902035a8 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.3 + 1.12.4 diff --git a/pom.xml b/pom.xml index f1c916b6082..38550e7109d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 1.12.3 + 1.12.4 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -662,6 +662,9 @@ bmc-osmanagement bmc-marketplace bmc-apigateway + bmc-applicationmigration + bmc-datacatalog + bmc-dataflow bmc-full bmc-shaded