diff --git a/DataTier-APIs/Java-Client/.gitignore b/DataTier-APIs/Java-Client/.gitignore new file mode 100644 index 0000000..a530464 --- /dev/null +++ b/DataTier-APIs/Java-Client/.gitignore @@ -0,0 +1,21 @@ +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# exclude jar for gradle wrapper +!gradle/wrapper/*.jar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# build files +**/target +target +.gradle +build diff --git a/DataTier-APIs/Java-Client/.openapi-generator-ignore b/DataTier-APIs/Java-Client/.openapi-generator-ignore new file mode 100644 index 0000000..4830456 --- /dev/null +++ b/DataTier-APIs/Java-Client/.openapi-generator-ignore @@ -0,0 +1,15 @@ +pom.xml +.gitignore +.travis.yml +README.md +api/openapi.yaml +build.gradle +build.sbt +docs/* +git_push.sh +gradle.properties +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +settings.gradle \ No newline at end of file diff --git a/DataTier-APIs/Java-Client/.openapi-generator/FILES b/DataTier-APIs/Java-Client/.openapi-generator/FILES new file mode 100644 index 0000000..0284008 --- /dev/null +++ b/DataTier-APIs/Java-Client/.openapi-generator/FILES @@ -0,0 +1,39 @@ +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiCallback.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiClient.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiException.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiResponse.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Configuration.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/GzipRequestInterceptor.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/JSON.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Pair.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressRequestBody.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressResponseBody.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerConfiguration.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerVariable.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/StringUtil.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApi.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/ApiKeyAuth.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/Authentication.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBasicAuth.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBearerAuth.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecord.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCode.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecord.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUser.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/Company.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecord.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecord.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstName.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastName.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFields.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCode.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOf.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUS.java +src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOf.java +src/main/AndroidManifest.xml diff --git a/DataTier-APIs/Java-Client/.openapi-generator/VERSION b/DataTier-APIs/Java-Client/.openapi-generator/VERSION new file mode 100644 index 0000000..1e20ec3 --- /dev/null +++ b/DataTier-APIs/Java-Client/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.4.0 \ No newline at end of file diff --git a/DataTier-APIs/Java-Client/.openapi-generator/query_api.yaml-default.sha256 b/DataTier-APIs/Java-Client/.openapi-generator/query_api.yaml-default.sha256 new file mode 100644 index 0000000..20554f4 --- /dev/null +++ b/DataTier-APIs/Java-Client/.openapi-generator/query_api.yaml-default.sha256 @@ -0,0 +1 @@ +e8335d940150275cb37d1f1ba6748d6cc7e5571faafa8a60badfb4f466a71a24 \ No newline at end of file diff --git a/DataTier-APIs/Java-Client/README.md b/DataTier-APIs/Java-Client/README.md new file mode 100644 index 0000000..c8cde16 --- /dev/null +++ b/DataTier-APIs/Java-Client/README.md @@ -0,0 +1,172 @@ +# java-client + +Query API +- API version: 1.0 + - Build date: 2022-05-08T18:44:37.872933300-05:00[America/Chicago] + +A list of get API calls that allows for pulling data + + For more information, please visit [https://github.com/Project-Herophilus/DataSynthesis/issues](https://github.com/Project-Herophilus/DataSynthesis/issues) + +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* + + +## Requirements + +Building the API client library requires: +1. Java 1.8+ +2. Maven (3.8.3+)/Gradle (7.2+) + +## Installation + +To install the API client library to your local Maven repository, simply execute: + +```shell +mvn clean install +``` + +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: + +```shell +mvn clean deploy +``` + +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + io.connectedhealth.idaas + java-client + 4.0.0-SNAPSHOT + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy + repositories { + mavenCentral() // Needed if the 'java-client' jar has been published to maven central. + mavenLocal() // Needed if the 'java-client' jar has been published to the local maven repo. + } + + dependencies { + implementation "io.connectedhealth.idaas:java-client:4.0.0-SNAPSHOT" + } +``` + +### Others + +At first generate the JAR by executing: + +```shell +mvn clean package +``` + +Then manually install the following JARs: + +* `target/java-client-4.0.0-SNAPSHOT.jar` +* `target/lib/*.jar` + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following Java code: + +```java + +// Import classes: +import io.connectedhealth.idaas.datasynthesis.openapi.ApiClient; +import io.connectedhealth.idaas.datasynthesis.openapi.ApiException; +import io.connectedhealth.idaas.datasynthesis.openapi.Configuration; +import io.connectedhealth.idaas.datasynthesis.openapi.models.*; +import io.connectedhealth.idaas.datasynthesis.openapi.api.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost:3001/api/querydata"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + try { + Object result = apiInstance.getAbaBankingInformation(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#getAbaBankingInformation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:3001/api/querydata* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**getAbaBankingInformation**](docs/DefaultApi.md#getAbaBankingInformation) | **GET** /dataexisting/ababanking | Retrieves abaBanking information +*DefaultApi* | [**getAbaBankingInformationWithStateCode**](docs/DefaultApi.md#getAbaBankingInformationWithStateCode) | **GET** /dataexisting/ababanking/{statecode} | Retrieves abaBanking information +*DefaultApi* | [**getAreaCodeWithStateCode**](docs/DefaultApi.md#getAreaCodeWithStateCode) | **GET** /dataexisting/areacode/{statecode} | Retrieves data about area codes +*DefaultApi* | [**getAreaCodes**](docs/DefaultApi.md#getAreaCodes) | **GET** /dataexisting/areacode | Retrieves data about area codes +*DefaultApi* | [**getCompanies**](docs/DefaultApi.md#getCompanies) | **GET** /dataexisting/companies | Retrieves data about companies +*DefaultApi* | [**getCompaniesByCompanyName**](docs/DefaultApi.md#getCompaniesByCompanyName) | **GET** /dataexisting/companies/{companyname} | Retrieves data about companies +*DefaultApi* | [**getDataDomain**](docs/DefaultApi.md#getDataDomain) | **GET** /datamodel/datadomain | Retrieves data domain information +*DefaultApi* | [**getDataModelDataTables**](docs/DefaultApi.md#getDataModelDataTables) | **GET** /datamodel/datatables | Retrieves data about data tables +*DefaultApi* | [**getFirstNameWithFirstNameAndGender**](docs/DefaultApi.md#getFirstNameWithFirstNameAndGender) | **GET** /dataexisting/namefirst/{firstnamelike}/{gender} | Retrieves data about firstnames +*DefaultApi* | [**getFirstNameWithFirstNameLike**](docs/DefaultApi.md#getFirstNameWithFirstNameLike) | **GET** /dataexisting/namefirst{likename} | Retrieves data about firstnames +*DefaultApi* | [**getFirstNames**](docs/DefaultApi.md#getFirstNames) | **GET** /dataexisting/namefirst | Retrieves data about firstnames +*DefaultApi* | [**getLastName**](docs/DefaultApi.md#getLastName) | **GET** /dataexisting/namelast | Retrieves data about lastnames +*DefaultApi* | [**getLastNameWithMatch**](docs/DefaultApi.md#getLastNameWithMatch) | **GET** /dataexisting/namelast/{lastnamematch} | Retrieves data about lastnames +*DefaultApi* | [**getUPCCodes**](docs/DefaultApi.md#getUPCCodes) | **GET** /dataexisting/upccodes | Retrieves data about upc codes +*DefaultApi* | [**getUPCCodesWithProductNameMatch**](docs/DefaultApi.md#getUPCCodesWithProductNameMatch) | **GET** /dataexisting/upccodes/{productnamematch} | Retrieves data about upc codes +*DefaultApi* | [**getZipCodesUS**](docs/DefaultApi.md#getZipCodesUS) | **GET** /dataexisting/zipcodeus | Retrieves data about zipCodes in US +*DefaultApi* | [**getZipCodesUSWithStateCode**](docs/DefaultApi.md#getZipCodesUSWithStateCode) | **GET** /dataexisting/zipcodeus/{statecode} | Retrieves data about zipCodes in US with State Code + + +## Documentation for Models + + - [AbaBankingRecord](docs/AbaBankingRecord.md) + - [AbaBankingRecordAllOf](docs/AbaBankingRecordAllOf.md) + - [AreaCode](docs/AreaCode.md) + - [AreaCodeAllOf](docs/AreaCodeAllOf.md) + - [BaseAuditRecord](docs/BaseAuditRecord.md) + - [BaseAuditRecordWithUser](docs/BaseAuditRecordWithUser.md) + - [BaseAuditRecordWithUserAllOf](docs/BaseAuditRecordWithUserAllOf.md) + - [Company](docs/Company.md) + - [CompanyAllOf](docs/CompanyAllOf.md) + - [DataTableInfoRecord](docs/DataTableInfoRecord.md) + - [DatamodelRecord](docs/DatamodelRecord.md) + - [FirstName](docs/FirstName.md) + - [FirstNameAllOf](docs/FirstNameAllOf.md) + - [LastName](docs/LastName.md) + - [LastNameAllOf](docs/LastNameAllOf.md) + - [QueryResponseSharedFields](docs/QueryResponseSharedFields.md) + - [UpcCode](docs/UpcCode.md) + - [UpcCodeAllOf](docs/UpcCodeAllOf.md) + - [ZipCodeUS](docs/ZipCodeUS.md) + - [ZipCodeUSAllOf](docs/ZipCodeUSAllOf.md) + + +## Documentation for Authorization + +All endpoints do not require authorization. +Authentication schemes defined for the API: + +## Recommendation + +It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. + +## Author + + + diff --git a/DataTier-APIs/Java-Client/api/openapi.yaml b/DataTier-APIs/Java-Client/api/openapi.yaml new file mode 100644 index 0000000..c852754 --- /dev/null +++ b/DataTier-APIs/Java-Client/api/openapi.yaml @@ -0,0 +1,789 @@ +openapi: 3.0.2 +info: + contact: + name: A helpful contact + url: https://github.com/Project-Herophilus/DataSynthesis/issues + description: A list of get API calls that allows for pulling data + license: + name: Parent Project License (Apache 2.0 License) + url: https://github.com/Project-Herophilus/DataSynthesis/blob/main/LICENSE + title: Query API + version: "1.0" +servers: +- url: http://localhost:3001/api/querydata +paths: + /datamodel/datatables: + get: + operationId: getDataModelDataTables + responses: + "200": + content: + application/json: + examples: + Example DataTables Response: + value: + command: Select + rowCount: 2 + rows: + - tablename: auditing_dataplatform + tableinformation: Platform Auditing - Data Requests Made from + Within the Platform + - tablename: auditing_datarequest + tableinformation: Platform Auditing - Data Requests Made within + the platform + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/dataTableInfoRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: This Query Reponse contains information about data tables. + summary: Retrieves data about data tables + x-accepts: application/json + summary: skd + /datamodel/datadomain: + get: + operationId: getDataDomain + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/datamodelRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data domain information + x-accepts: application/json + /dataexisting/ababanking: + get: + operationId: getAbaBankingInformation + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/abaBankingRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves abaBanking information + x-accepts: application/json + /dataexisting/ababanking/{statecode}: + get: + operationId: getAbaBankingInformationWithStateCode + parameters: + - explode: false + in: path + name: statecode + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/abaBankingRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves abaBanking information + x-accepts: application/json + /dataexisting/areacode: + get: + operationId: getAreaCodes + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/areaCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about area codes + x-accepts: application/json + /dataexisting/areacode/{statecode}: + get: + operationId: getAreaCodeWithStateCode + parameters: + - explode: false + in: path + name: statecode + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/areaCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about area codes + x-accepts: application/json + /dataexisting/companies: + get: + operationId: getCompanies + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/company' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about companies + x-accepts: application/json + /dataexisting/companies/{companyname}: + get: + operationId: getCompaniesByCompanyName + parameters: + - explode: false + in: path + name: companyname + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/company' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about companies + x-accepts: application/json + /dataexisting/namefirst/{firstnamelike}/{gender}: + get: + operationId: getFirstNameWithFirstNameAndGender + parameters: + - explode: false + in: path + name: firstnamelike + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: gender + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/firstName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: |- + A response + With Multiple lines + summary: Retrieves data about firstnames + x-accepts: application/json + /dataexisting/namefirst{likename}: + get: + operationId: getFirstNameWithFirstNameLike + parameters: + - explode: false + in: path + name: likename + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/firstName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: |- + A response + With Multiple lines + summary: Retrieves data about firstnames + x-accepts: application/json + /dataexisting/namefirst: + get: + operationId: getFirstNames + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/firstName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: |- + A response + With Multiple lines + summary: Retrieves data about firstnames + x-accepts: application/json + /dataexisting/namelast/{lastnamematch}: + get: + operationId: getLastNameWithMatch + parameters: + - explode: false + in: path + name: lastnamematch + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/lastName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about lastnames + x-accepts: application/json + /dataexisting/namelast: + get: + operationId: getLastName + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/lastName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about lastnames + x-accepts: application/json + /dataexisting/upccodes: + get: + operationId: getUPCCodes + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/upcCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about upc codes + x-accepts: application/json + /dataexisting/upccodes/{productnamematch}: + get: + operationId: getUPCCodesWithProductNameMatch + parameters: + - explode: false + in: path + name: productnamematch + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/upcCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about upc codes + x-accepts: application/json + /dataexisting/zipcodeus: + get: + operationId: getZipCodesUS + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/zipCodeUS' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about zipCodes in US + x-accepts: application/json + /dataexisting/zipcodeus/{statecode}: + get: + operationId: getZipCodesUSWithStateCode + parameters: + - explode: false + in: path + name: statecode + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/zipCodeUS' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + summary: Retrieves data about zipCodes in US with State Code + x-accepts: application/json +components: + parameters: + statecode: + explode: false + in: path + name: statecode + required: true + schema: + type: string + style: simple + companyname: + explode: false + in: path + name: companyname + required: true + schema: + type: string + style: simple + firstnamelike: + explode: false + in: path + name: firstnamelike + required: true + schema: + type: string + style: simple + gender: + explode: false + in: path + name: gender + required: true + schema: + type: string + style: simple + likename: + explode: false + in: path + name: likename + required: true + schema: + type: string + style: simple + lastnamematch: + explode: false + in: path + name: lastnamematch + required: true + schema: + type: string + style: simple + productnamematch: + explode: false + in: path + name: productnamematch + required: true + schema: + type: string + style: simple + responses: + tableInfoResponse: + content: + application/json: + examples: + Example DataTables Response: + value: + command: Select + rowCount: 2 + rows: + - tablename: auditing_dataplatform + tableinformation: Platform Auditing - Data Requests Made from Within + the Platform + - tablename: auditing_datarequest + tableinformation: Platform Auditing - Data Requests Made within + the platform + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/dataTableInfoRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: This Query Reponse contains information about data tables. + dataDomainResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/datamodelRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + ababankingResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/abaBankingRecord' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + areaCodeListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/areaCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + companyListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/company' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + firstNameListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/firstName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + description: |- + A response + With Multiple lines + lastNameListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/lastName' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + upcCodesListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/upcCode' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + zipCodeUSListResponse: + content: + application/json: + schema: + allOf: + - properties: + rows: + items: + $ref: '#/components/schemas/zipCodeUS' + type: array + - $ref: '#/components/schemas/queryResponseSharedFields' + type: object + schemas: + dataTableInfoRecord: + example: + tablename: ATable + tableinformation: This is a description of the table + properties: + tablename: + type: string + tableinformation: + type: string + title: Root Type for datatableInfoRecord + type: object + queryResponseSharedFields: + properties: + command: + type: string + rowCount: + type: integer + type: object + datamodelRecord: + properties: + domainname: + type: string + domaininformation: + type: string + statusid: + type: integer + createddate: + format: date-time + type: string + required: + - domainname + - statusid + type: object + baseAuditRecord: + properties: + createddate: + format: date-time + type: string + statusid: + type: integer + registeredapp: + type: string + type: object + baseAuditRecordWithUser: + allOf: + - $ref: '#/components/schemas/baseAuditRecordWithUser_allOf' + - $ref: '#/components/schemas/baseAuditRecord' + type: object + abaBankingRecord: + allOf: + - $ref: '#/components/schemas/abaBankingRecord_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + areaCode: + allOf: + - $ref: '#/components/schemas/areaCode_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + company: + allOf: + - $ref: '#/components/schemas/company_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + firstName: + allOf: + - $ref: '#/components/schemas/firstName_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + lastName: + allOf: + - $ref: '#/components/schemas/lastName_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + upcCode: + allOf: + - $ref: '#/components/schemas/upcCode_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + zipCodeUS: + allOf: + - $ref: '#/components/schemas/zipCodeUS_allOf' + - $ref: '#/components/schemas/baseAuditRecordWithUser' + type: object + baseAuditRecordWithUser_allOf: + properties: + createduser: + type: string + type: object + abaBankingRecord_allOf: + properties: + ababankingid: + description: I think this might be an integer?! + type: integer + routingnumber: + type: string + telegraphicname: + type: string + customername: + type: string + city: + type: string + statecode: + type: string + zipcode: + type: string + type: object + areaCode_allOf: + properties: + areacodeid: + description: placeholder + type: integer + areacodevalue: + description: placeholder + type: string + timezone: + description: placeholder + type: string + statecode: + description: placeholder + type: string + type: object + company_allOf: + properties: + companiesid: + description: placeholder + type: integer + companiesname: + description: placeholder + type: string + type: object + firstName_allOf: + properties: + firstnameid: + description: placeholder + type: integer + firstname: + description: placeholder + type: string + gender: + description: placeholder + type: string + type: object + lastName_allOf: + properties: + lastnameid: + description: placeholder + type: integer + lastname: + description: placeholder + type: string + type: object + upcCode_allOf: + properties: + upccodeid: + description: placeholder + type: integer + upccodename: + description: placeholder + type: string + upcproductname: + description: placeholder + type: string + type: object + zipCodeUS_allOf: + properties: + zipcodeid: + description: placeholder + type: integer + zipcode: + description: placeholder + type: string + zipcodetype: + description: placeholder + type: string + city: + description: placeholder + type: string + statecode: + description: placeholder + type: string + lattitude: + description: placeholder + type: string + longitude: + description: placeholder + type: string + lctn: + description: placeholder + type: string + type: object + diff --git a/DataTier-APIs/Java-Client/build.gradle b/DataTier-APIs/Java-Client/build.gradle new file mode 100644 index 0000000..a6adfca --- /dev/null +++ b/DataTier-APIs/Java-Client/build.gradle @@ -0,0 +1,151 @@ +apply plugin: 'idea' +apply plugin: 'eclipse' +apply plugin: 'java' +apply plugin: 'com.diffplug.spotless' + +group = 'io.connectedhealth.idaas' +version = '4.0.0-SNAPSHOT' + +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.+' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1' + } +} + +repositories { + mavenCentral() +} +sourceSets { + main.java.srcDirs = ['src/gen/java'] +} + +if(hasProperty('target') && target == 'android') { + + apply plugin: 'com.android.library' + apply plugin: 'com.github.dcendents.android-maven' + + android { + compileSdkVersion 25 + buildToolsVersion '25.0.2' + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + // Rename the aar correctly + libraryVariants.all { variant -> + variant.outputs.each { output -> + def outputFile = output.outputFile + if (outputFile != null && outputFile.name.endsWith('.aar')) { + def fileName = "${project.name}-${variant.baseName}-${version}.aar" + output.outputFile = new File(outputFile.parent, fileName) + } + } + } + + dependencies { + provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + } + } + + afterEvaluate { + android.libraryVariants.all { variant -> + def task = project.tasks.create "jar${variant.name.capitalize()}", Jar + task.description = "Create jar artifact for ${variant.name}" + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + task.destinationDir = project.file("${project.buildDir}/outputs/jar") + task.archiveName = "${project.name}-${variant.baseName}-${version}.jar" + artifacts.add('archives', task); + } + } + + task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' + } + + artifacts { + archives sourcesJar + } + +} else { + + apply plugin: 'java' + apply plugin: 'maven-publish' + + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + + publishing { + publications { + maven(MavenPublication) { + artifactId = 'java-client' + from components.java + } + } + } + + task execute(type:JavaExec) { + main = System.getProperty('mainClass') + classpath = sourceSets.main.runtimeClasspath + } +} + +ext { + jakarta_annotation_version = "1.3.5" +} + +dependencies { + implementation 'io.swagger:swagger-annotations:1.5.24' + implementation "com.google.code.findbugs:jsr305:3.0.2" + implementation 'com.squareup.okhttp3:okhttp:4.9.1' + implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' + implementation 'com.google.code.gson:gson:2.8.6' + implementation 'io.gsonfire:gson-fire:1.8.4' + implementation 'org.openapitools:jackson-databind-nullable:0.2.1' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10' + implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + testImplementation 'junit:junit:4.13.1' + testImplementation 'org.mockito:mockito-core:3.11.2' +} + +javadoc { + options.tags = [ "http.response.details:a:Http Response Details" ] +} + +// Use spotless plugin to automatically format code, remove unused import, etc +// To apply changes directly to the file, run `gradlew spotlessApply` +// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle +spotless { + // comment out below to run spotless as part of the `check` task + enforceCheck false + + format 'misc', { + // define the files (e.g. '*.gradle', '*.md') to apply `misc` to + target '.gitignore' + + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithSpaces() // Takes an integer argument if you don't like 4 + endWithNewline() + } + java { + // don't need to set target, it is inferred from java + + // apply a specific flavor of google-java-format + googleJavaFormat('1.8').aosp().reflowLongStrings() + + removeUnusedImports() + importOrder() + } +} diff --git a/DataTier-APIs/Java-Client/build.sbt b/DataTier-APIs/Java-Client/build.sbt new file mode 100644 index 0000000..72f48af --- /dev/null +++ b/DataTier-APIs/Java-Client/build.sbt @@ -0,0 +1,25 @@ +lazy val root = (project in file(".")). + settings( + organization := "io.connectedhealth.idaas", + name := "java-client", + version := "4.0.0-SNAPSHOT", + scalaVersion := "2.11.4", + scalacOptions ++= Seq("-feature"), + javacOptions in compile ++= Seq("-Xlint:deprecation"), + publishArtifact in (Compile, packageDoc) := false, + resolvers += Resolver.mavenLocal, + libraryDependencies ++= Seq( + "io.swagger" % "swagger-annotations" % "1.5.24", + "com.squareup.okhttp3" % "okhttp" % "4.9.1", + "com.squareup.okhttp3" % "logging-interceptor" % "4.9.1", + "com.google.code.gson" % "gson" % "2.8.6", + "org.apache.commons" % "commons-lang3" % "3.10", + "org.openapitools" % "jackson-databind-nullable" % "0.2.2", + "io.gsonfire" % "gson-fire" % "1.8.3" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "junit" % "junit" % "4.13.1" % "test", + "com.novocode" % "junit-interface" % "0.10" % "test" + ) + ) diff --git a/DataTier-APIs/Java-Client/gradle.properties b/DataTier-APIs/Java-Client/gradle.properties new file mode 100644 index 0000000..a340857 --- /dev/null +++ b/DataTier-APIs/Java-Client/gradle.properties @@ -0,0 +1,6 @@ +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.jar b/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..7454180 Binary files /dev/null and b/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.properties b/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ffed3a2 --- /dev/null +++ b/DataTier-APIs/Java-Client/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/DataTier-APIs/Java-Client/gradlew b/DataTier-APIs/Java-Client/gradlew new file mode 100644 index 0000000..005bcde --- /dev/null +++ b/DataTier-APIs/Java-Client/gradlew @@ -0,0 +1,234 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/DataTier-APIs/Java-Client/gradlew.bat b/DataTier-APIs/Java-Client/gradlew.bat new file mode 100644 index 0000000..6a68175 --- /dev/null +++ b/DataTier-APIs/Java-Client/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/DataTier-APIs/Java-Client/pom.xml b/DataTier-APIs/Java-Client/pom.xml new file mode 100644 index 0000000..db6b2db --- /dev/null +++ b/DataTier-APIs/Java-Client/pom.xml @@ -0,0 +1,367 @@ + + 4.0.0 + io.connectedhealth.idaas.datasynthesis + java-client + jar + java-client + 4.0.0-SNAPSHOT + https://github.com/openapitools/openapi-generator + Java Client generated by openapi + + + + Apache 2.0 License + https://github.com/Project-Herophilus/DataSynthesis/blob/main/LICENSE + repo + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + true + 128m + 512m + + -Xlint:all + -J-Xss4m + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + 10 + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + + test-jar + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.2.0 + + + add_sources + generate-sources + + add-source + + + + src/gen/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.1 + + + attach-javadocs + + jar + + + + + none + + + http.response.details + a + Http Response Details: + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.0 + + + attach-sources + + jar-no-fork + + + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + + + .gitignore + + + + + + true + 4 + + + + + + + + + + 1.8 + + true + + + + + + + + + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + + + + + + + generate-openapi + + + + org.apache.maven.plugins + maven-clean-plugin + + + + ${project.basedir}/src/gen + + + ${project.basedir}/target + + + + + + openapi-generator-maven-plugin + org.openapitools + 5.4.0 + + + generate-sources + + generate + + + java + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.basedir} + false + true + ${project.basedir}/src/main/openapi/query_api.yaml + false + + okhttp-gson + java8 + io.connectedhealth.idaas.datasynthesis.javaclient.model + io.connectedhealth.idaas.datasynthesis.javaclient + io.connectedhealth.idaas.datasynthesis.javaclient.api + src/gen/java + + + + + + + + + + + + + io.swagger + swagger-annotations + ${swagger-core-version} + + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + + jakarta.annotation + jakarta.annotation-api + ${jakarta-annotation-version} + provided + + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + + + + junit + junit + ${junit-version} + test + + + org.mockito + mockito-core + 3.12.4 + test + + + + 1.8 + ${java.version} + ${java.version} + 1.8.5 + 1.6.3 + 4.9.2 + 2.8.8 + 3.12.0 + 0.2.2 + 1.3.5 + 4.13.2 + UTF-8 + 2.17.3 + + diff --git a/DataTier-APIs/Java-Client/settings.gradle b/DataTier-APIs/Java-Client/settings.gradle new file mode 100644 index 0000000..18c6a8b --- /dev/null +++ b/DataTier-APIs/Java-Client/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "java-client" \ No newline at end of file diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiCallback.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiCallback.java new file mode 100644 index 0000000..736af40 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiCallback.java @@ -0,0 +1,62 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.io.IOException; + +import java.util.Map; +import java.util.List; + +/** + * Callback for asynchronous API call. + * + * @param The return type + */ +public interface ApiCallback { + /** + * This is called when the API call fails. + * + * @param e The exception causing the failure + * @param statusCode Status code of the response if available, otherwise it would be 0 + * @param responseHeaders Headers of the response if available, otherwise it would be null + */ + void onFailure(ApiException e, int statusCode, Map> responseHeaders); + + /** + * This is called when the API call succeeded. + * + * @param result The result deserialized from response + * @param statusCode Status code of the response + * @param responseHeaders Headers of the response + */ + void onSuccess(T result, int statusCode, Map> responseHeaders); + + /** + * This is called when the API upload processing. + * + * @param bytesWritten bytes Written + * @param contentLength content length of request body + * @param done write end + */ + void onUploadProgress(long bytesWritten, long contentLength, boolean done); + + /** + * This is called when the API download processing. + * + * @param bytesRead bytes Read + * @param contentLength content length of the response + * @param done Read end + */ + void onDownloadProgress(long bytesRead, long contentLength, boolean done); +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiClient.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiClient.java new file mode 100644 index 0000000..ae536be --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiClient.java @@ -0,0 +1,1437 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import okhttp3.*; +import okhttp3.internal.http.HttpMethod; +import okhttp3.internal.tls.OkHostnameVerifier; +import okhttp3.logging.HttpLoggingInterceptor; +import okhttp3.logging.HttpLoggingInterceptor.Level; +import okio.Buffer; +import okio.BufferedSink; +import okio.Okio; + +import javax.net.ssl.*; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; +import java.lang.reflect.Type; +import java.net.URI; +import java.net.URLConnection; +import java.net.URLEncoder; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.security.GeneralSecurityException; +import java.security.KeyStore; +import java.security.SecureRandom; +import java.security.cert.Certificate; +import java.security.cert.CertificateException; +import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; +import java.text.DateFormat; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.*; +import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import io.connectedhealth.idaas.datasynthesis.javaclient.auth.Authentication; +import io.connectedhealth.idaas.datasynthesis.javaclient.auth.HttpBasicAuth; +import io.connectedhealth.idaas.datasynthesis.javaclient.auth.HttpBearerAuth; +import io.connectedhealth.idaas.datasynthesis.javaclient.auth.ApiKeyAuth; + +/** + *

ApiClient class.

+ */ +public class ApiClient { + + private String basePath = "http://localhost:3001/api/querydata"; + private boolean debugging = false; + private Map defaultHeaderMap = new HashMap(); + private Map defaultCookieMap = new HashMap(); + private String tempFolderPath = null; + + private Map authentications; + + private DateFormat dateFormat; + private DateFormat datetimeFormat; + private boolean lenientDatetimeFormat; + private int dateLength; + + private InputStream sslCaCert; + private boolean verifyingSsl; + private KeyManager[] keyManagers; + + private OkHttpClient httpClient; + private JSON json; + + private HttpLoggingInterceptor loggingInterceptor; + + /** + * Basic constructor for ApiClient + */ + public ApiClient() { + init(); + initHttpClient(); + + // Setup authentications (key: authentication name, value: authentication). + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + /** + * Basic constructor with custom OkHttpClient + * + * @param client a {@link okhttp3.OkHttpClient} object + */ + public ApiClient(OkHttpClient client) { + init(); + + httpClient = client; + + // Setup authentications (key: authentication name, value: authentication). + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + private void initHttpClient() { + initHttpClient(Collections.emptyList()); + } + + private void initHttpClient(List interceptors) { + OkHttpClient.Builder builder = new OkHttpClient.Builder(); + builder.addNetworkInterceptor(getProgressInterceptor()); + for (Interceptor interceptor: interceptors) { + builder.addInterceptor(interceptor); + } + + httpClient = builder.build(); + } + + private void init() { + verifyingSsl = true; + + json = new JSON(); + + // Set default User-Agent. + setUserAgent("OpenAPI-Generator/4.0.0-SNAPSHOT/java"); + + authentications = new HashMap(); + } + + /** + * Get base path + * + * @return Base path + */ + public String getBasePath() { + return basePath; + } + + /** + * Set base path + * + * @param basePath Base path of the URL (e.g http://localhost:3001/api/querydata + * @return An instance of OkHttpClient + */ + public ApiClient setBasePath(String basePath) { + this.basePath = basePath; + return this; + } + + /** + * Get HTTP client + * + * @return An instance of OkHttpClient + */ + public OkHttpClient getHttpClient() { + return httpClient; + } + + /** + * Set HTTP client, which must never be null. + * + * @param newHttpClient An instance of OkHttpClient + * @return Api Client + * @throws java.lang.NullPointerException when newHttpClient is null + */ + public ApiClient setHttpClient(OkHttpClient newHttpClient) { + this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); + return this; + } + + /** + * Get JSON + * + * @return JSON object + */ + public JSON getJSON() { + return json; + } + + /** + * Set JSON + * + * @param json JSON object + * @return Api client + */ + public ApiClient setJSON(JSON json) { + this.json = json; + return this; + } + + /** + * True if isVerifyingSsl flag is on + * + * @return True if isVerifySsl flag is on + */ + public boolean isVerifyingSsl() { + return verifyingSsl; + } + + /** + * Configure whether to verify certificate and hostname when making https requests. + * Default to true. + * NOTE: Do NOT set to false in production code, otherwise you would face multiple types of cryptographic attacks. + * + * @param verifyingSsl True to verify TLS/SSL connection + * @return ApiClient + */ + public ApiClient setVerifyingSsl(boolean verifyingSsl) { + this.verifyingSsl = verifyingSsl; + applySslSettings(); + return this; + } + + /** + * Get SSL CA cert. + * + * @return Input stream to the SSL CA cert + */ + public InputStream getSslCaCert() { + return sslCaCert; + } + + /** + * Configure the CA certificate to be trusted when making https requests. + * Use null to reset to default. + * + * @param sslCaCert input stream for SSL CA cert + * @return ApiClient + */ + public ApiClient setSslCaCert(InputStream sslCaCert) { + this.sslCaCert = sslCaCert; + applySslSettings(); + return this; + } + + /** + *

Getter for the field keyManagers.

+ * + * @return an array of {@link javax.net.ssl.KeyManager} objects + */ + public KeyManager[] getKeyManagers() { + return keyManagers; + } + + /** + * Configure client keys to use for authorization in an SSL session. + * Use null to reset to default. + * + * @param managers The KeyManagers to use + * @return ApiClient + */ + public ApiClient setKeyManagers(KeyManager[] managers) { + this.keyManagers = managers; + applySslSettings(); + return this; + } + + /** + *

Getter for the field dateFormat.

+ * + * @return a {@link java.text.DateFormat} object + */ + public DateFormat getDateFormat() { + return dateFormat; + } + + /** + *

Setter for the field dateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link org.openapitools.client.ApiClient} object + */ + public ApiClient setDateFormat(DateFormat dateFormat) { + this.json.setDateFormat(dateFormat); + return this; + } + + /** + *

Set SqlDateFormat.

+ * + * @param dateFormat a {@link java.text.DateFormat} object + * @return a {@link org.openapitools.client.ApiClient} object + */ + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + this.json.setSqlDateFormat(dateFormat); + return this; + } + + /** + *

Set OffsetDateTimeFormat.

+ * + * @param dateFormat a {@link org.threeten.bp.format.DateTimeFormatter} object + * @return a {@link org.openapitools.client.ApiClient} object + */ + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + this.json.setOffsetDateTimeFormat(dateFormat); + return this; + } + + /** + *

Set LocalDateFormat.

+ * + * @param dateFormat a {@link org.threeten.bp.format.DateTimeFormatter} object + * @return a {@link org.openapitools.client.ApiClient} object + */ + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + this.json.setLocalDateFormat(dateFormat); + return this; + } + + /** + *

Set LenientOnJson.

+ * + * @param lenientOnJson a boolean + * @return a {@link org.openapitools.client.ApiClient} object + */ + public ApiClient setLenientOnJson(boolean lenientOnJson) { + this.json.setLenientOnJson(lenientOnJson); + return this; + } + + /** + * Get authentications (key: authentication name, value: authentication). + * + * @return Map of authentication objects + */ + public Map getAuthentications() { + return authentications; + } + + /** + * Get authentication for the given name. + * + * @param authName The authentication name + * @return The authentication, null if not found + */ + public Authentication getAuthentication(String authName) { + return authentications.get(authName); + } + + + /** + * Helper method to set username for the first HTTP basic authentication. + * + * @param username Username + */ + public void setUsername(String username) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setUsername(username); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set password for the first HTTP basic authentication. + * + * @param password Password + */ + public void setPassword(String password) { + for (Authentication auth : authentications.values()) { + if (auth instanceof HttpBasicAuth) { + ((HttpBasicAuth) auth).setPassword(password); + return; + } + } + throw new RuntimeException("No HTTP basic authentication configured!"); + } + + /** + * Helper method to set API key value for the first API key authentication. + * + * @param apiKey API key + */ + public void setApiKey(String apiKey) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKey(apiKey); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set API key prefix for the first API key authentication. + * + * @param apiKeyPrefix API key prefix + */ + public void setApiKeyPrefix(String apiKeyPrefix) { + for (Authentication auth : authentications.values()) { + if (auth instanceof ApiKeyAuth) { + ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); + return; + } + } + throw new RuntimeException("No API key authentication configured!"); + } + + /** + * Helper method to set access token for the first OAuth2 authentication. + * + * @param accessToken Access token + */ + public void setAccessToken(String accessToken) { + throw new RuntimeException("No OAuth2 authentication configured!"); + } + + /** + * Set the User-Agent header's value (by adding to the default header map). + * + * @param userAgent HTTP request's user agent + * @return ApiClient + */ + public ApiClient setUserAgent(String userAgent) { + addDefaultHeader("User-Agent", userAgent); + return this; + } + + /** + * Add a default header. + * + * @param key The header's key + * @param value The header's value + * @return ApiClient + */ + public ApiClient addDefaultHeader(String key, String value) { + defaultHeaderMap.put(key, value); + return this; + } + + /** + * Add a default cookie. + * + * @param key The cookie's key + * @param value The cookie's value + * @return ApiClient + */ + public ApiClient addDefaultCookie(String key, String value) { + defaultCookieMap.put(key, value); + return this; + } + + /** + * Check that whether debugging is enabled for this API client. + * + * @return True if debugging is enabled, false otherwise. + */ + public boolean isDebugging() { + return debugging; + } + + /** + * Enable/disable debugging for this API client. + * + * @param debugging To enable (true) or disable (false) debugging + * @return ApiClient + */ + public ApiClient setDebugging(boolean debugging) { + if (debugging != this.debugging) { + if (debugging) { + loggingInterceptor = new HttpLoggingInterceptor(); + loggingInterceptor.setLevel(Level.BODY); + httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); + } else { + final OkHttpClient.Builder builder = httpClient.newBuilder(); + builder.interceptors().remove(loggingInterceptor); + httpClient = builder.build(); + loggingInterceptor = null; + } + } + this.debugging = debugging; + return this; + } + + /** + * The path of temporary folder used to store downloaded files from endpoints + * with file response. The default value is null, i.e. using + * the system's default temporary folder. + * + * @see createTempFile + * @return Temporary folder path + */ + public String getTempFolderPath() { + return tempFolderPath; + } + + /** + * Set the temporary folder path (for downloading files) + * + * @param tempFolderPath Temporary folder path + * @return ApiClient + */ + public ApiClient setTempFolderPath(String tempFolderPath) { + this.tempFolderPath = tempFolderPath; + return this; + } + + /** + * Get connection timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getConnectTimeout() { + return httpClient.connectTimeoutMillis(); + } + + /** + * Sets the connect timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param connectionTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setConnectTimeout(int connectionTimeout) { + httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.readTimeoutMillis(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.writeTimeoutMillis(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link java.lang.Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + + /** + * Format the given parameter object into string. + * + * @param param Parameter + * @return String representation of the parameter + */ + public String parameterToString(Object param) { + if (param == null) { + return ""; + } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { + //Serialize to json string and remove the " enclosing characters + String jsonStr = json.serialize(param); + return jsonStr.substring(1, jsonStr.length() - 1); + } else if (param instanceof Collection) { + StringBuilder b = new StringBuilder(); + for (Object o : (Collection) param) { + if (b.length() > 0) { + b.append(","); + } + b.append(String.valueOf(o)); + } + return b.toString(); + } else { + return String.valueOf(param); + } + } + + /** + * Formats the specified query parameter to a list containing a single {@code Pair} object. + * + * Note that {@code value} must not be a collection. + * + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list containing a single {@code Pair} object. + */ + public List parameterToPair(String name, Object value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value instanceof Collection) { + return params; + } + + params.add(new Pair(name, parameterToString(value))); + return params; + } + + /** + * Formats the specified collection query parameters to a list of {@code Pair} objects. + * + * Note that the values of each of the returned Pair objects are percent-encoded. + * + * @param collectionFormat The collection format of the parameter. + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list of {@code Pair} objects. + */ + public List parameterToPairs(String collectionFormat, String name, Collection value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value.isEmpty()) { + return params; + } + + // create the params based on the collection format + if ("multi".equals(collectionFormat)) { + for (Object item : value) { + params.add(new Pair(name, escapeString(parameterToString(item)))); + } + return params; + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + // escape all delimiters except commas, which are URI reserved + // characters + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); + } + + StringBuilder sb = new StringBuilder(); + for (Object item : value) { + sb.append(delimiter); + sb.append(escapeString(parameterToString(item))); + } + + params.add(new Pair(name, sb.substring(delimiter.length()))); + + return params; + } + + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param value The value of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + // create the value based on the collection format + if ("multi".equals(collectionFormat)) { + // not valid for path params + return parameterToString(value); + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + if ("ssv".equals(collectionFormat)) { + delimiter = " "; + } else if ("tsv".equals(collectionFormat)) { + delimiter = "\t"; + } else if ("pipes".equals(collectionFormat)) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : value) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + return sb.substring(delimiter.length()); + } + + /** + * Sanitize filename by removing path. + * e.g. ../../sun.gif becomes sun.gif + * + * @param filename The filename to be sanitized + * @return The sanitized filename + */ + public String sanitizeFilename(String filename) { + return filename.replaceAll(".*[/\\\\]", ""); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * "* / *" is also default to JSON + * @param mime MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public boolean isJsonMime(String mime) { + String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; + return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); + } + + /** + * Select the Accept header's value from the given accepts array: + * if JSON exists in the given array, use it; + * otherwise use all of them (joining into a string) + * + * @param accepts The accepts array to select from + * @return The Accept header to use. If the given array is empty, + * null will be returned (not to set the Accept header explicitly). + */ + public String selectHeaderAccept(String[] accepts) { + if (accepts.length == 0) { + return null; + } + for (String accept : accepts) { + if (isJsonMime(accept)) { + return accept; + } + } + return StringUtil.join(accepts, ","); + } + + /** + * Select the Content-Type header's value from the given array: + * if JSON exists in the given array, use it; + * otherwise use the first one of the array. + * + * @param contentTypes The Content-Type array to select from + * @return The Content-Type header to use. If the given array is empty, + * returns null. If it matches "any", JSON will be used. + */ + public String selectHeaderContentType(String[] contentTypes) { + if (contentTypes.length == 0) { + return null; + } + + if (contentTypes[0].equals("*/*")) { + return "application/json"; + } + + for (String contentType : contentTypes) { + if (isJsonMime(contentType)) { + return contentType; + } + } + + return contentTypes[0]; + } + + /** + * Escape the given string to be used as URL query value. + * + * @param str String to be escaped + * @return Escaped string + */ + public String escapeString(String str) { + try { + return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); + } catch (UnsupportedEncodingException e) { + return str; + } + } + + /** + * Deserialize response body to Java object, according to the return type and + * the Content-Type response header. + * + * @param Type + * @param response HTTP response + * @param returnType The type of the Java object + * @return The deserialized Java object + * @throws org.openapitools.client.ApiException If fail to deserialize response body, i.e. cannot read response body + * or the Content-Type of the response is not supported. + */ + @SuppressWarnings("unchecked") + public T deserialize(Response response, Type returnType) throws ApiException { + if (response == null || returnType == null) { + return null; + } + + if ("byte[]".equals(returnType.toString())) { + // Handle binary response (byte array). + try { + return (T) response.body().bytes(); + } catch (IOException e) { + throw new ApiException(e); + } + } else if (returnType.equals(File.class)) { + // Handle file downloading. + return (T) downloadFileFromResponse(response); + } + + String respBody; + try { + if (response.body() != null) + respBody = response.body().string(); + else + respBody = null; + } catch (IOException e) { + throw new ApiException(e); + } + + if (respBody == null || "".equals(respBody)) { + return null; + } + + String contentType = response.headers().get("Content-Type"); + if (contentType == null) { + // ensuring a default content type + contentType = "application/json"; + } + if (isJsonMime(contentType)) { + return json.deserialize(respBody, returnType); + } else if (returnType.equals(String.class)) { + // Expecting string, return the raw response body. + return (T) respBody; + } else { + throw new ApiException( + "Content type \"" + contentType + "\" is not supported for type: " + returnType, + response.code(), + response.headers().toMultimap(), + respBody); + } + } + + /** + * Serialize the given Java object into request body according to the object's + * class and the request Content-Type. + * + * @param obj The Java object + * @param contentType The request Content-Type + * @return The serialized request body + * @throws org.openapitools.client.ApiException If fail to serialize the given object + */ + public RequestBody serialize(Object obj, String contentType) throws ApiException { + if (obj instanceof byte[]) { + // Binary (byte array) body parameter support. + return RequestBody.create((byte[]) obj, MediaType.parse(contentType)); + } else if (obj instanceof File) { + // File body parameter support. + return RequestBody.create((File) obj, MediaType.parse(contentType)); + } else if ("text/plain".equals(contentType) && obj instanceof String) { + return RequestBody.create((String) obj, MediaType.parse(contentType)); + } else if (isJsonMime(contentType)) { + String content; + if (obj != null) { + content = json.serialize(obj); + } else { + content = null; + } + return RequestBody.create(content, MediaType.parse(contentType)); + } else { + throw new ApiException("Content type \"" + contentType + "\" is not supported"); + } + } + + /** + * Download file from the given response. + * + * @param response An instance of the Response object + * @throws org.openapitools.client.ApiException If fail to read file content from response and write to disk + * @return Downloaded file + */ + public File downloadFileFromResponse(Response response) throws ApiException { + try { + File file = prepareDownloadFile(response); + BufferedSink sink = Okio.buffer(Okio.sink(file)); + sink.writeAll(response.body().source()); + sink.close(); + return file; + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * Prepare file for download + * + * @param response An instance of the Response object + * @return Prepared file for the download + * @throws java.io.IOException If fail to prepare file for download + */ + public File prepareDownloadFile(Response response) throws IOException { + String filename = null; + String contentDisposition = response.header("Content-Disposition"); + if (contentDisposition != null && !"".equals(contentDisposition)) { + // Get filename from the Content-Disposition header. + Pattern pattern = Pattern.compile("filename=['\"]?([^'\"\\s]+)['\"]?"); + Matcher matcher = pattern.matcher(contentDisposition); + if (matcher.find()) { + filename = sanitizeFilename(matcher.group(1)); + } + } + + String prefix = null; + String suffix = null; + if (filename == null) { + prefix = "download-"; + suffix = ""; + } else { + int pos = filename.lastIndexOf("."); + if (pos == -1) { + prefix = filename + "-"; + } else { + prefix = filename.substring(0, pos) + "-"; + suffix = filename.substring(pos); + } + // Files.createTempFile requires the prefix to be at least three characters long + if (prefix.length() < 3) + prefix = "download-"; + } + + if (tempFolderPath == null) + return Files.createTempFile(prefix, suffix).toFile(); + else + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); + } + + /** + * {@link #execute(Call, Type)} + * + * @param Type + * @param call An instance of the Call object + * @return ApiResponse<T> + * @throws org.openapitools.client.ApiException If fail to execute the call + */ + public ApiResponse execute(Call call) throws ApiException { + return execute(call, null); + } + + /** + * Execute HTTP call and deserialize the HTTP response body into the given return type. + * + * @param returnType The return type used to deserialize HTTP response body + * @param The return type corresponding to (same with) returnType + * @param call Call + * @return ApiResponse object containing response status, headers and + * data, which is a Java object deserialized from response body and would be null + * when returnType is null. + * @throws org.openapitools.client.ApiException If fail to execute the call + */ + public ApiResponse execute(Call call, Type returnType) throws ApiException { + try { + Response response = call.execute(); + T data = handleResponse(response, returnType); + return new ApiResponse(response.code(), response.headers().toMultimap(), data); + } catch (IOException e) { + throw new ApiException(e); + } + } + + /** + * {@link #executeAsync(Call, Type, ApiCallback)} + * + * @param Type + * @param call An instance of the Call object + * @param callback ApiCallback<T> + */ + public void executeAsync(Call call, ApiCallback callback) { + executeAsync(call, null, callback); + } + + /** + * Execute HTTP call asynchronously. + * + * @param Type + * @param call The callback to be executed when the API call finishes + * @param returnType Return type + * @param callback ApiCallback + * @see #execute(Call, Type) + */ + @SuppressWarnings("unchecked") + public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { + call.enqueue(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + callback.onFailure(new ApiException(e), 0, null); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + T result; + try { + result = (T) handleResponse(response, returnType); + } catch (ApiException e) { + callback.onFailure(e, response.code(), response.headers().toMultimap()); + return; + } catch (Exception e) { + callback.onFailure(new ApiException(e), response.code(), response.headers().toMultimap()); + return; + } + callback.onSuccess(result, response.code(), response.headers().toMultimap()); + } + }); + } + + /** + * Handle the given response, return the deserialized object when the response is successful. + * + * @param Type + * @param response Response + * @param returnType Return type + * @return Type + * @throws org.openapitools.client.ApiException If the response has an unsuccessful status code or + * fail to deserialize the response body + */ + public T handleResponse(Response response, Type returnType) throws ApiException { + if (response.isSuccessful()) { + if (returnType == null || response.code() == 204) { + // returning null if the returnType is not defined, + // or the status code is 204 (No Content) + if (response.body() != null) { + try { + response.body().close(); + } catch (Exception e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + return null; + } else { + return deserialize(response, returnType); + } + } else { + String respBody = null; + if (response.body() != null) { + try { + respBody = response.body().string(); + } catch (IOException e) { + throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); + } + } + throw new ApiException(response.message(), response.code(), response.headers().toMultimap(), respBody); + } + } + + /** + * Build HTTP call with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP call + * @throws org.openapitools.client.ApiException If fail to serialize the request body object + */ + public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); + + return httpClient.newCall(request); + } + + /** + * Build an HTTP request with the given options. + * + * @param path The sub-path of the HTTP URL + * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @param body The request body object + * @param headerParams The header parameters + * @param cookieParams The cookie parameters + * @param formParams The form parameters + * @param authNames The authentications to apply + * @param callback Callback for upload/download progress + * @return The HTTP request + * @throws org.openapitools.client.ApiException If fail to serialize the request body object + */ + public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams + List allQueryParams = new ArrayList(queryParams); + allQueryParams.addAll(collectionQueryParams); + + final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); + + // prepare HTTP request body + RequestBody reqBody; + String contentType = headerParams.get("Content-Type"); + + if (!HttpMethod.permitsRequestBody(method)) { + reqBody = null; + } else if ("application/x-www-form-urlencoded".equals(contentType)) { + reqBody = buildRequestBodyFormEncoding(formParams); + } else if ("multipart/form-data".equals(contentType)) { + reqBody = buildRequestBodyMultipart(formParams); + } else if (body == null) { + if ("DELETE".equals(method)) { + // allow calling DELETE without sending a request body + reqBody = null; + } else { + // use an empty request body (for POST, PUT and PATCH) + reqBody = RequestBody.create("", MediaType.parse(contentType)); + } + } else { + reqBody = serialize(body, contentType); + } + + // update parameters with authentication settings + updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + + final Request.Builder reqBuilder = new Request.Builder().url(url); + processHeaderParams(headerParams, reqBuilder); + processCookieParams(cookieParams, reqBuilder); + + // Associate callback with request (if not null) so interceptor can + // access it when creating ProgressResponseBody + reqBuilder.tag(callback); + + Request request = null; + + if (callback != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); + request = reqBuilder.method(method, progressRequestBody).build(); + } else { + request = reqBuilder.method(method, reqBody).build(); + } + + return request; + } + + /** + * Build full URL by concatenating base path, the given sub path and query parameters. + * + * @param path The sub path + * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters + * @return The full URL + */ + public String buildUrl(String baseUrl, String path, List queryParams, List collectionQueryParams) { + final StringBuilder url = new StringBuilder(); + if (baseUrl != null) { + url.append(baseUrl).append(path); + } else { + url.append(basePath).append(path); + } + + if (queryParams != null && !queryParams.isEmpty()) { + // support (constant) query string in `path`, e.g. "/posts?draft=1" + String prefix = path.contains("?") ? "&" : "?"; + for (Pair param : queryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + url.append(escapeString(param.getName())).append("=").append(escapeString(value)); + } + } + } + + if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { + String prefix = url.toString().contains("?") ? "&" : "?"; + for (Pair param : collectionQueryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + // collection query parameter value already escaped as part of parameterToPairs + url.append(escapeString(param.getName())).append("=").append(value); + } + } + } + + return url.toString(); + } + + /** + * Set header parameters to the request builder, including default headers. + * + * @param headerParams Header parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processHeaderParams(Map headerParams, Request.Builder reqBuilder) { + for (Entry param : headerParams.entrySet()) { + reqBuilder.header(param.getKey(), parameterToString(param.getValue())); + } + for (Entry header : defaultHeaderMap.entrySet()) { + if (!headerParams.containsKey(header.getKey())) { + reqBuilder.header(header.getKey(), parameterToString(header.getValue())); + } + } + } + + /** + * Set cookie parameters to the request builder, including default cookies. + * + * @param cookieParams Cookie parameters in the form of Map + * @param reqBuilder Request.Builder + */ + public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { + for (Entry param : cookieParams.entrySet()) { + reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + } + for (Entry param : defaultCookieMap.entrySet()) { + if (!cookieParams.containsKey(param.getKey())) { + reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + } + } + } + + /** + * Update query and header parameters based on authentication settings. + * + * @param authNames The authentications to apply + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + */ + public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, + Map cookieParams, String payload, String method, URI uri) throws ApiException { + for (String authName : authNames) { + Authentication auth = authentications.get(authName); + if (auth == null) { + throw new RuntimeException("Authentication undefined: " + authName); + } + auth.applyToParams(queryParams, headerParams, cookieParams, payload, method, uri); + } + } + + /** + * Build a form-encoding request body with the given form parameters. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyFormEncoding(Map formParams) { + okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); + for (Entry param : formParams.entrySet()) { + formBuilder.add(param.getKey(), parameterToString(param.getValue())); + } + return formBuilder.build(); + } + + /** + * Build a multipart (file uploading) request body with the given form parameters, + * which could contain text fields and file fields. + * + * @param formParams Form parameters in the form of Map + * @return RequestBody + */ + public RequestBody buildRequestBodyMultipart(Map formParams) { + MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); + for (Entry param : formParams.entrySet()) { + if (param.getValue() instanceof File) { + File file = (File) param.getValue(); + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); + MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); + mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + } else { + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); + mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null)); + } + } + return mpBuilder.build(); + } + + /** + * Guess Content-Type header from the given file (defaults to "application/octet-stream"). + * + * @param file The given file + * @return The guessed Content-Type + */ + public String guessContentTypeFromFile(File file) { + String contentType = URLConnection.guessContentTypeFromName(file.getName()); + if (contentType == null) { + return "application/octet-stream"; + } else { + return contentType; + } + } + + /** + * Get network interceptor to add it to the httpClient to track download progress for + * async requests. + */ + private Interceptor getProgressInterceptor() { + return new Interceptor() { + @Override + public Response intercept(Interceptor.Chain chain) throws IOException { + final Request request = chain.request(); + final Response originalResponse = chain.proceed(request); + if (request.tag() instanceof ApiCallback) { + final ApiCallback callback = (ApiCallback) request.tag(); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); + } + return originalResponse; + } + }; + } + + /** + * Apply SSL related settings to httpClient according to the current values of + * verifyingSsl and sslCaCert. + */ + private void applySslSettings() { + try { + TrustManager[] trustManagers; + HostnameVerifier hostnameVerifier; + if (!verifyingSsl) { + trustManagers = new TrustManager[]{ + new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[]{}; + } + } + }; + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + return true; + } + }; + } else { + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + + if (sslCaCert == null) { + trustManagerFactory.init((KeyStore) null); + } else { + char[] password = null; // Any password will work. + CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509"); + Collection certificates = certificateFactory.generateCertificates(sslCaCert); + if (certificates.isEmpty()) { + throw new IllegalArgumentException("expected non-empty set of trusted certificates"); + } + KeyStore caKeyStore = newEmptyKeyStore(password); + int index = 0; + for (Certificate certificate : certificates) { + String certificateAlias = "ca" + Integer.toString(index++); + caKeyStore.setCertificateEntry(certificateAlias, certificate); + } + trustManagerFactory.init(caKeyStore); + } + trustManagers = trustManagerFactory.getTrustManagers(); + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } + + SSLContext sslContext = SSLContext.getInstance("TLS"); + sslContext.init(keyManagers, trustManagers, new SecureRandom()); + httpClient = httpClient.newBuilder() + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier) + .build(); + } catch (GeneralSecurityException e) { + throw new RuntimeException(e); + } + } + + private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + try { + KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + keyStore.load(null, password); + return keyStore; + } catch (IOException e) { + throw new AssertionError(e); + } + } + + /** + * Convert the HTTP request body to a string. + * + * @param request The HTTP request object + * @return The string representation of the HTTP request body + * @throws org.openapitools.client.ApiException If fail to serialize the request body object into a string + */ + private String requestBodyToString(RequestBody requestBody) throws ApiException { + if (requestBody != null) { + try { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return buffer.readUtf8(); + } catch (final IOException e) { + throw new ApiException(e); + } + } + + // empty http request body + return ""; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiException.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiException.java new file mode 100644 index 0000000..210e34a --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiException.java @@ -0,0 +1,154 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.util.Map; +import java.util.List; + +/** + *

ApiException class.

+ */ +@SuppressWarnings("serial") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class ApiException extends Exception { + private int code = 0; + private Map> responseHeaders = null; + private String responseBody = null; + + /** + *

Constructor for ApiException.

+ */ + public ApiException() {} + + /** + *

Constructor for ApiException.

+ * + * @param throwable a {@link java.lang.Throwable} object + */ + public ApiException(Throwable throwable) { + super(throwable); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + */ + public ApiException(String message) { + super(message); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { + super(message, throwable); + this.code = code; + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(String message, int code, Map> responseHeaders, String responseBody) { + this(message, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param message the error message + * @param throwable a {@link java.lang.Throwable} object + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + */ + public ApiException(String message, Throwable throwable, int code, Map> responseHeaders) { + this(message, throwable, code, responseHeaders, null); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, Map> responseHeaders, String responseBody) { + this((String) null, (Throwable) null, code, responseHeaders, responseBody); + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message a {@link java.lang.String} object + */ + public ApiException(int code, String message) { + super(message); + this.code = code; + } + + /** + *

Constructor for ApiException.

+ * + * @param code HTTP status code + * @param message the error message + * @param responseHeaders a {@link java.util.Map} of HTTP response headers + * @param responseBody the response body + */ + public ApiException(int code, String message, Map> responseHeaders, String responseBody) { + this(code, message); + this.responseHeaders = responseHeaders; + this.responseBody = responseBody; + } + + /** + * Get the HTTP status code. + * + * @return HTTP status code + */ + public int getCode() { + return code; + } + + /** + * Get the HTTP response headers. + * + * @return A map of list of string + */ + public Map> getResponseHeaders() { + return responseHeaders; + } + + /** + * Get the HTTP response body. + * + * @return Response body in the form of string + */ + public String getResponseBody() { + return responseBody; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiResponse.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiResponse.java new file mode 100644 index 0000000..0487d14 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiResponse.java @@ -0,0 +1,76 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.util.List; +import java.util.Map; + +/** + * API response returned by API call. + */ +public class ApiResponse { + final private int statusCode; + final private Map> headers; + final private T data; + + /** + *

Constructor for ApiResponse.

+ * + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + */ + public ApiResponse(int statusCode, Map> headers) { + this(statusCode, headers, null); + } + + /** + *

Constructor for ApiResponse.

+ * + * @param statusCode The status code of HTTP response + * @param headers The headers of HTTP response + * @param data The object deserialized from response bod + */ + public ApiResponse(int statusCode, Map> headers, T data) { + this.statusCode = statusCode; + this.headers = headers; + this.data = data; + } + + /** + *

Get the status code.

+ * + * @return the status code + */ + public int getStatusCode() { + return statusCode; + } + + /** + *

Get the headers.

+ * + * @return a {@link java.util.Map} of headers + */ + public Map> getHeaders() { + return headers; + } + + /** + *

Get the data.

+ * + * @return the data + */ + public T getData() { + return data; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Configuration.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Configuration.java new file mode 100644 index 0000000..822af14 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Configuration.java @@ -0,0 +1,39 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class Configuration { + private static ApiClient defaultApiClient = new ApiClient(); + + /** + * Get the default API client, which would be used when creating API + * instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + return defaultApiClient; + } + + /** + * Set the default API client, which would be used when creating API + * instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient = apiClient; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/GzipRequestInterceptor.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/GzipRequestInterceptor.java new file mode 100644 index 0000000..72297f3 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/GzipRequestInterceptor.java @@ -0,0 +1,85 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import okhttp3.*; +import okio.Buffer; +import okio.BufferedSink; +import okio.GzipSink; +import okio.Okio; + +import java.io.IOException; + +/** + * Encodes request bodies using gzip. + * + * Taken from https://github.com/square/okhttp/issues/350 + */ +class GzipRequestInterceptor implements Interceptor { + @Override + public Response intercept(Chain chain) throws IOException { + Request originalRequest = chain.request(); + if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { + return chain.proceed(originalRequest); + } + + Request compressedRequest = originalRequest.newBuilder() + .header("Content-Encoding", "gzip") + .method(originalRequest.method(), forceContentLength(gzip(originalRequest.body()))) + .build(); + return chain.proceed(compressedRequest); + } + + private RequestBody forceContentLength(final RequestBody requestBody) throws IOException { + final Buffer buffer = new Buffer(); + requestBody.writeTo(buffer); + return new RequestBody() { + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() { + return buffer.size(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + sink.write(buffer.snapshot()); + } + }; + } + + private RequestBody gzip(final RequestBody body) { + return new RequestBody() { + @Override + public MediaType contentType() { + return body.contentType(); + } + + @Override + public long contentLength() { + return -1; // We don't know the compressed length in advance! + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); + body.writeTo(gzipSink); + gzipSink.close(); + } + }; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/JSON.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/JSON.java new file mode 100644 index 0000000..52ad0b5 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/JSON.java @@ -0,0 +1,410 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; +import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; + +import io.connectedhealth.idaas.datasynthesis.javaclient.model.*; +import okio.ByteString; + +import java.io.IOException; +import java.io.StringReader; +import java.lang.reflect.Type; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.ParsePosition; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Date; +import java.util.Locale; +import java.util.Map; +import java.util.HashMap; + +public class JSON { + private Gson gson; + private boolean isLenientOnJson = false; + private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + + @SuppressWarnings("unchecked") + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } + + private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { + JsonElement element = readElement.getAsJsonObject().get(discriminatorField); + if (null == element) { + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); + } + return element.getAsString(); + } + + /** + * Returns the Java class that implements the OpenAPI schema for the specified discriminator value. + * + * @param classByDiscriminatorValue The map of discriminator values to Java classes. + * @param discriminatorValue The value of the OpenAPI discriminator in the input data. + * @return The Java class that implements the OpenAPI schema + */ + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue); + if (null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; + } + + public JSON() { + gson = createGson() + .registerTypeAdapter(Date.class, dateTypeAdapter) + .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) + .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) + .registerTypeAdapter(byte[].class, byteArrayAdapter) + .create(); + } + + /** + * Get Gson. + * + * @return Gson + */ + public Gson getGson() { + return gson; + } + + /** + * Set Gson. + * + * @param gson Gson + * @return JSON + */ + public JSON setGson(Gson gson) { + this.gson = gson; + return this; + } + + /** + * Configure the parser to be liberal in what it accepts. + * + * @param lenientOnJson Set it to true to ignore some syntax errors + * @return JSON + * @see https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.5/com/google/gson/stream/JsonReader.html + */ + public JSON setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + return this; + } + + /** + * Serialize the given Java object into JSON string. + * + * @param obj Object + * @return String representation of the JSON + */ + public String serialize(Object obj) { + return gson.toJson(obj); + } + + /** + * Deserialize the given JSON string to Java object. + * + * @param Type + * @param body The JSON string + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public T deserialize(String body, Type returnType) { + try { + if (isLenientOnJson) { + JsonReader jsonReader = new JsonReader(new StringReader(body)); + // see https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.5/com/google/gson/stream/JsonReader.html + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(body, returnType); + } + } catch (JsonParseException e) { + // Fallback processing when failed to parse JSON form response body: + // return the response body string directly for the String return type; + if (returnType.equals(String.class)) { + return (T) body; + } else { + throw (e); + } + } + } + + /** + * Gson TypeAdapter for Byte Array type + */ + public class ByteArrayAdapter extends TypeAdapter { + + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } + } + + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } + } + + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } + + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, OffsetDateTime date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public OffsetDateTime read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + if (date.endsWith("+0000")) { + date = date.substring(0, date.length()-5) + "Z"; + } + return OffsetDateTime.parse(date, formatter); + } + } + } + + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ + public class LocalDateTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); + } + + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, LocalDate date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public LocalDate read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return LocalDate.parse(date, formatter); + } + } + } + + public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + return this; + } + + /** + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). + */ + public static class SqlDateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public SqlDateTypeAdapter() {} + + public SqlDateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, java.sql.Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = date.toString(); + } + out.value(value); + } + } + + @Override + public java.sql.Date read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return new java.sql.Date(dateFormat.parse(date).getTime()); + } + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } + } + + /** + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. + */ + public static class DateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public DateTypeAdapter() {} + + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = ISO8601Utils.format(date, true); + } + out.value(value); + } + } + + @Override + public Date read(JsonReader in) throws IOException { + try { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return dateFormat.parse(date); + } + return ISO8601Utils.parse(date, new ParsePosition(0)); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } catch (IllegalArgumentException e) { + throw new JsonParseException(e); + } + } + } + + public JSON setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + return this; + } + +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Pair.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Pair.java new file mode 100644 index 0000000..72f16a3 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Pair.java @@ -0,0 +1,57 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class Pair { + private String name = ""; + private String value = ""; + + public Pair (String name, String value) { + setName(name); + setValue(value); + } + + private void setName(String name) { + if (!isValidString(name)) { + return; + } + + this.name = name; + } + + private void setValue(String value) { + if (!isValidString(value)) { + return; + } + + this.value = value; + } + + public String getName() { + return this.name; + } + + public String getValue() { + return this.value; + } + + private boolean isValidString(String arg) { + if (arg == null) { + return false; + } + + return true; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressRequestBody.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressRequestBody.java new file mode 100644 index 0000000..c350bf0 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressRequestBody.java @@ -0,0 +1,73 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import okhttp3.MediaType; +import okhttp3.RequestBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSink; +import okio.ForwardingSink; +import okio.Okio; +import okio.Sink; + +public class ProgressRequestBody extends RequestBody { + + private final RequestBody requestBody; + + private final ApiCallback callback; + + public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { + this.requestBody = requestBody; + this.callback = callback; + } + + @Override + public MediaType contentType() { + return requestBody.contentType(); + } + + @Override + public long contentLength() throws IOException { + return requestBody.contentLength(); + } + + @Override + public void writeTo(BufferedSink sink) throws IOException { + BufferedSink bufferedSink = Okio.buffer(sink(sink)); + requestBody.writeTo(bufferedSink); + bufferedSink.flush(); + } + + private Sink sink(Sink sink) { + return new ForwardingSink(sink) { + + long bytesWritten = 0L; + long contentLength = 0L; + + @Override + public void write(Buffer source, long byteCount) throws IOException { + super.write(source, byteCount); + if (contentLength == 0) { + contentLength = contentLength(); + } + + bytesWritten += byteCount; + callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); + } + }; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressResponseBody.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressResponseBody.java new file mode 100644 index 0000000..0f0cc94 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressResponseBody.java @@ -0,0 +1,70 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import okhttp3.MediaType; +import okhttp3.ResponseBody; + +import java.io.IOException; + +import okio.Buffer; +import okio.BufferedSource; +import okio.ForwardingSource; +import okio.Okio; +import okio.Source; + +public class ProgressResponseBody extends ResponseBody { + + private final ResponseBody responseBody; + private final ApiCallback callback; + private BufferedSource bufferedSource; + + public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { + this.responseBody = responseBody; + this.callback = callback; + } + + @Override + public MediaType contentType() { + return responseBody.contentType(); + } + + @Override + public long contentLength() { + return responseBody.contentLength(); + } + + @Override + public BufferedSource source() { + if (bufferedSource == null) { + bufferedSource = Okio.buffer(source(responseBody.source())); + } + return bufferedSource; + } + + private Source source(Source source) { + return new ForwardingSource(source) { + long totalBytesRead = 0L; + + @Override + public long read(Buffer sink, long byteCount) throws IOException { + long bytesRead = super.read(sink, byteCount); + // read() returns the number of bytes read, or -1 if this source is exhausted. + totalBytesRead += bytesRead != -1 ? bytesRead : 0; + callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + return bytesRead; + } + }; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerConfiguration.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerConfiguration.java new file mode 100644 index 0000000..519fcbe --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerConfiguration.java @@ -0,0 +1,58 @@ +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.util.Map; + +/** + * Representing a Server configuration. + */ +public class ServerConfiguration { + public String URL; + public String description; + public Map variables; + + /** + * @param URL A URL to the target host. + * @param description A description of the host designated by the URL. + * @param variables A map between a variable name and its value. The value is used for substitution in the server's URL template. + */ + public ServerConfiguration(String URL, String description, Map variables) { + this.URL = URL; + this.description = description; + this.variables = variables; + } + + /** + * Format URL template using given variables. + * + * @param variables A map between a variable name and its value. + * @return Formatted URL. + */ + public String URL(Map variables) { + String url = this.URL; + + // go through variables and replace placeholders + for (Map.Entry variable: this.variables.entrySet()) { + String name = variable.getKey(); + ServerVariable serverVariable = variable.getValue(); + String value = serverVariable.defaultValue; + + if (variables != null && variables.containsKey(name)) { + value = variables.get(name); + if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { + throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + "."); + } + } + url = url.replaceAll("\\{" + name + "\\}", value); + } + return url; + } + + /** + * Format URL template using default server variables. + * + * @return Formatted URL. + */ + public String URL() { + return URL(null); + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerVariable.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerVariable.java new file mode 100644 index 0000000..d2a4803 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerVariable.java @@ -0,0 +1,23 @@ +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.util.HashSet; + +/** + * Representing a Server Variable for server URL template substitution. + */ +public class ServerVariable { + public String description; + public String defaultValue; + public HashSet enumValues = null; + + /** + * @param description A description for the server variable. + * @param defaultValue The default value to use for substitution. + * @param enumValues An enumeration of string values to be used if the substitution options are from a limited set. + */ + public ServerVariable(String description, String defaultValue, HashSet enumValues) { + this.description = description; + this.defaultValue = defaultValue; + this.enumValues = enumValues; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/StringUtil.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/StringUtil.java new file mode 100644 index 0000000..2961c3c --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/StringUtil.java @@ -0,0 +1,83 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient; + +import java.util.Collection; +import java.util.Iterator; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) { + return true; + } + if (value != null && value.equalsIgnoreCase(str)) { + return true; + } + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) { + return ""; + } + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } + + /** + * Join a list of strings with the given separator. + * + * @param list The list of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(Collection list, String separator) { + Iterator iterator = list.iterator(); + StringBuilder out = new StringBuilder(); + if (iterator.hasNext()) { + out.append(iterator.next()); + } + while (iterator.hasNext()) { + out.append(separator).append(iterator.next()); + } + return out.toString(); + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApi.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApi.java new file mode 100644 index 0000000..3e640c8 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApi.java @@ -0,0 +1,2171 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.api; + +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiCallback; +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiClient; +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiResponse; +import io.connectedhealth.idaas.datasynthesis.javaclient.Configuration; +import io.connectedhealth.idaas.datasynthesis.javaclient.Pair; +import io.connectedhealth.idaas.datasynthesis.javaclient.ProgressRequestBody; +import io.connectedhealth.idaas.datasynthesis.javaclient.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.connectedhealth.idaas.datasynthesis.javaclient.model.QueryResponseSharedFields; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DefaultApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DefaultApi() { + this(Configuration.getDefaultApiClient()); + } + + public DefaultApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for getAbaBankingInformation + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAbaBankingInformationCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/ababanking"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAbaBankingInformationValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAbaBankingInformationCall(_callback); + return localVarCall; + + } + + /** + * Retrieves abaBanking information + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getAbaBankingInformation() throws ApiException { + ApiResponse localVarResp = getAbaBankingInformationWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves abaBanking information + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getAbaBankingInformationWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAbaBankingInformationValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves abaBanking information (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAbaBankingInformationAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAbaBankingInformationValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAbaBankingInformationWithStateCode + * @param statecode (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAbaBankingInformationWithStateCodeCall(String statecode, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/ababanking/{statecode}" + .replaceAll("\\{" + "statecode" + "\\}", localVarApiClient.escapeString(statecode.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAbaBankingInformationWithStateCodeValidateBeforeCall(String statecode, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'statecode' is set + if (statecode == null) { + throw new ApiException("Missing the required parameter 'statecode' when calling getAbaBankingInformationWithStateCode(Async)"); + } + + + okhttp3.Call localVarCall = getAbaBankingInformationWithStateCodeCall(statecode, _callback); + return localVarCall; + + } + + /** + * Retrieves abaBanking information + * + * @param statecode (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getAbaBankingInformationWithStateCode(String statecode) throws ApiException { + ApiResponse localVarResp = getAbaBankingInformationWithStateCodeWithHttpInfo(statecode); + return localVarResp.getData(); + } + + /** + * Retrieves abaBanking information + * + * @param statecode (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getAbaBankingInformationWithStateCodeWithHttpInfo(String statecode) throws ApiException { + okhttp3.Call localVarCall = getAbaBankingInformationWithStateCodeValidateBeforeCall(statecode, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves abaBanking information (asynchronously) + * + * @param statecode (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAbaBankingInformationWithStateCodeAsync(String statecode, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAbaBankingInformationWithStateCodeValidateBeforeCall(statecode, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAreaCodeWithStateCode + * @param statecode (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAreaCodeWithStateCodeCall(String statecode, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/areacode/{statecode}" + .replaceAll("\\{" + "statecode" + "\\}", localVarApiClient.escapeString(statecode.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAreaCodeWithStateCodeValidateBeforeCall(String statecode, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'statecode' is set + if (statecode == null) { + throw new ApiException("Missing the required parameter 'statecode' when calling getAreaCodeWithStateCode(Async)"); + } + + + okhttp3.Call localVarCall = getAreaCodeWithStateCodeCall(statecode, _callback); + return localVarCall; + + } + + /** + * Retrieves data about area codes + * + * @param statecode (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getAreaCodeWithStateCode(String statecode) throws ApiException { + ApiResponse localVarResp = getAreaCodeWithStateCodeWithHttpInfo(statecode); + return localVarResp.getData(); + } + + /** + * Retrieves data about area codes + * + * @param statecode (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getAreaCodeWithStateCodeWithHttpInfo(String statecode) throws ApiException { + okhttp3.Call localVarCall = getAreaCodeWithStateCodeValidateBeforeCall(statecode, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about area codes (asynchronously) + * + * @param statecode (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAreaCodeWithStateCodeAsync(String statecode, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAreaCodeWithStateCodeValidateBeforeCall(statecode, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAreaCodes + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAreaCodesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/areacode"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAreaCodesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAreaCodesCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about area codes + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getAreaCodes() throws ApiException { + ApiResponse localVarResp = getAreaCodesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about area codes + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getAreaCodesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAreaCodesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about area codes (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getAreaCodesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAreaCodesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCompanies + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getCompaniesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/companies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCompaniesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getCompaniesCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about companies + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getCompanies() throws ApiException { + ApiResponse localVarResp = getCompaniesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about companies + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getCompaniesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getCompaniesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about companies (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getCompaniesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCompaniesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCompaniesByCompanyName + * @param companyname (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getCompaniesByCompanyNameCall(String companyname, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/companies/{companyname}" + .replaceAll("\\{" + "companyname" + "\\}", localVarApiClient.escapeString(companyname.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCompaniesByCompanyNameValidateBeforeCall(String companyname, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'companyname' is set + if (companyname == null) { + throw new ApiException("Missing the required parameter 'companyname' when calling getCompaniesByCompanyName(Async)"); + } + + + okhttp3.Call localVarCall = getCompaniesByCompanyNameCall(companyname, _callback); + return localVarCall; + + } + + /** + * Retrieves data about companies + * + * @param companyname (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getCompaniesByCompanyName(String companyname) throws ApiException { + ApiResponse localVarResp = getCompaniesByCompanyNameWithHttpInfo(companyname); + return localVarResp.getData(); + } + + /** + * Retrieves data about companies + * + * @param companyname (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getCompaniesByCompanyNameWithHttpInfo(String companyname) throws ApiException { + okhttp3.Call localVarCall = getCompaniesByCompanyNameValidateBeforeCall(companyname, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about companies (asynchronously) + * + * @param companyname (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getCompaniesByCompanyNameAsync(String companyname, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCompaniesByCompanyNameValidateBeforeCall(companyname, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDataDomain + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getDataDomainCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/datamodel/datadomain"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDataDomainValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getDataDomainCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data domain information + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getDataDomain() throws ApiException { + ApiResponse localVarResp = getDataDomainWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data domain information + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getDataDomainWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getDataDomainValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data domain information (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getDataDomainAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDataDomainValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDataModelDataTables + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 This Query Reponse contains information about data tables. -
+ */ + public okhttp3.Call getDataModelDataTablesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/datamodel/datatables"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDataModelDataTablesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getDataModelDataTablesCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about data tables + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 This Query Reponse contains information about data tables. -
+ */ + public Object getDataModelDataTables() throws ApiException { + ApiResponse localVarResp = getDataModelDataTablesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about data tables + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 This Query Reponse contains information about data tables. -
+ */ + public ApiResponse getDataModelDataTablesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getDataModelDataTablesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about data tables (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 This Query Reponse contains information about data tables. -
+ */ + public okhttp3.Call getDataModelDataTablesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDataModelDataTablesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFirstNameWithFirstNameAndGender + * @param firstnamelike (required) + * @param gender (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNameWithFirstNameAndGenderCall(String firstnamelike, String gender, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/namefirst/{firstnamelike}/{gender}" + .replaceAll("\\{" + "firstnamelike" + "\\}", localVarApiClient.escapeString(firstnamelike.toString())) + .replaceAll("\\{" + "gender" + "\\}", localVarApiClient.escapeString(gender.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFirstNameWithFirstNameAndGenderValidateBeforeCall(String firstnamelike, String gender, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'firstnamelike' is set + if (firstnamelike == null) { + throw new ApiException("Missing the required parameter 'firstnamelike' when calling getFirstNameWithFirstNameAndGender(Async)"); + } + + // verify the required parameter 'gender' is set + if (gender == null) { + throw new ApiException("Missing the required parameter 'gender' when calling getFirstNameWithFirstNameAndGender(Async)"); + } + + + okhttp3.Call localVarCall = getFirstNameWithFirstNameAndGenderCall(firstnamelike, gender, _callback); + return localVarCall; + + } + + /** + * Retrieves data about firstnames + * + * @param firstnamelike (required) + * @param gender (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public Object getFirstNameWithFirstNameAndGender(String firstnamelike, String gender) throws ApiException { + ApiResponse localVarResp = getFirstNameWithFirstNameAndGenderWithHttpInfo(firstnamelike, gender); + return localVarResp.getData(); + } + + /** + * Retrieves data about firstnames + * + * @param firstnamelike (required) + * @param gender (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public ApiResponse getFirstNameWithFirstNameAndGenderWithHttpInfo(String firstnamelike, String gender) throws ApiException { + okhttp3.Call localVarCall = getFirstNameWithFirstNameAndGenderValidateBeforeCall(firstnamelike, gender, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about firstnames (asynchronously) + * + * @param firstnamelike (required) + * @param gender (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNameWithFirstNameAndGenderAsync(String firstnamelike, String gender, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFirstNameWithFirstNameAndGenderValidateBeforeCall(firstnamelike, gender, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFirstNameWithFirstNameLike + * @param likename (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNameWithFirstNameLikeCall(String likename, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/namefirst{likename}" + .replaceAll("\\{" + "likename" + "\\}", localVarApiClient.escapeString(likename.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFirstNameWithFirstNameLikeValidateBeforeCall(String likename, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'likename' is set + if (likename == null) { + throw new ApiException("Missing the required parameter 'likename' when calling getFirstNameWithFirstNameLike(Async)"); + } + + + okhttp3.Call localVarCall = getFirstNameWithFirstNameLikeCall(likename, _callback); + return localVarCall; + + } + + /** + * Retrieves data about firstnames + * + * @param likename (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public Object getFirstNameWithFirstNameLike(String likename) throws ApiException { + ApiResponse localVarResp = getFirstNameWithFirstNameLikeWithHttpInfo(likename); + return localVarResp.getData(); + } + + /** + * Retrieves data about firstnames + * + * @param likename (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public ApiResponse getFirstNameWithFirstNameLikeWithHttpInfo(String likename) throws ApiException { + okhttp3.Call localVarCall = getFirstNameWithFirstNameLikeValidateBeforeCall(likename, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about firstnames (asynchronously) + * + * @param likename (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNameWithFirstNameLikeAsync(String likename, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFirstNameWithFirstNameLikeValidateBeforeCall(likename, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFirstNames + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNamesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/namefirst"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFirstNamesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getFirstNamesCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about firstnames + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public Object getFirstNames() throws ApiException { + ApiResponse localVarResp = getFirstNamesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about firstnames + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public ApiResponse getFirstNamesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getFirstNamesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about firstnames (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 A response With Multiple lines -
+ */ + public okhttp3.Call getFirstNamesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFirstNamesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLastName + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getLastNameCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/namelast"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLastNameValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getLastNameCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about lastnames + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getLastName() throws ApiException { + ApiResponse localVarResp = getLastNameWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about lastnames + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getLastNameWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getLastNameValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about lastnames (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getLastNameAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLastNameValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLastNameWithMatch + * @param lastnamematch (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getLastNameWithMatchCall(String lastnamematch, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/namelast/{lastnamematch}" + .replaceAll("\\{" + "lastnamematch" + "\\}", localVarApiClient.escapeString(lastnamematch.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLastNameWithMatchValidateBeforeCall(String lastnamematch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'lastnamematch' is set + if (lastnamematch == null) { + throw new ApiException("Missing the required parameter 'lastnamematch' when calling getLastNameWithMatch(Async)"); + } + + + okhttp3.Call localVarCall = getLastNameWithMatchCall(lastnamematch, _callback); + return localVarCall; + + } + + /** + * Retrieves data about lastnames + * + * @param lastnamematch (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getLastNameWithMatch(String lastnamematch) throws ApiException { + ApiResponse localVarResp = getLastNameWithMatchWithHttpInfo(lastnamematch); + return localVarResp.getData(); + } + + /** + * Retrieves data about lastnames + * + * @param lastnamematch (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getLastNameWithMatchWithHttpInfo(String lastnamematch) throws ApiException { + okhttp3.Call localVarCall = getLastNameWithMatchValidateBeforeCall(lastnamematch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about lastnames (asynchronously) + * + * @param lastnamematch (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getLastNameWithMatchAsync(String lastnamematch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getLastNameWithMatchValidateBeforeCall(lastnamematch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUPCCodes + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getUPCCodesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/upccodes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUPCCodesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getUPCCodesCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about upc codes + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getUPCCodes() throws ApiException { + ApiResponse localVarResp = getUPCCodesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about upc codes + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getUPCCodesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getUPCCodesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about upc codes (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getUPCCodesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUPCCodesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUPCCodesWithProductNameMatch + * @param productnamematch (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getUPCCodesWithProductNameMatchCall(String productnamematch, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/upccodes/{productnamematch}" + .replaceAll("\\{" + "productnamematch" + "\\}", localVarApiClient.escapeString(productnamematch.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUPCCodesWithProductNameMatchValidateBeforeCall(String productnamematch, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'productnamematch' is set + if (productnamematch == null) { + throw new ApiException("Missing the required parameter 'productnamematch' when calling getUPCCodesWithProductNameMatch(Async)"); + } + + + okhttp3.Call localVarCall = getUPCCodesWithProductNameMatchCall(productnamematch, _callback); + return localVarCall; + + } + + /** + * Retrieves data about upc codes + * + * @param productnamematch (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getUPCCodesWithProductNameMatch(String productnamematch) throws ApiException { + ApiResponse localVarResp = getUPCCodesWithProductNameMatchWithHttpInfo(productnamematch); + return localVarResp.getData(); + } + + /** + * Retrieves data about upc codes + * + * @param productnamematch (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getUPCCodesWithProductNameMatchWithHttpInfo(String productnamematch) throws ApiException { + okhttp3.Call localVarCall = getUPCCodesWithProductNameMatchValidateBeforeCall(productnamematch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about upc codes (asynchronously) + * + * @param productnamematch (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getUPCCodesWithProductNameMatchAsync(String productnamematch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUPCCodesWithProductNameMatchValidateBeforeCall(productnamematch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getZipCodesUS + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getZipCodesUSCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/zipcodeus"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getZipCodesUSValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getZipCodesUSCall(_callback); + return localVarCall; + + } + + /** + * Retrieves data about zipCodes in US + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getZipCodesUS() throws ApiException { + ApiResponse localVarResp = getZipCodesUSWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Retrieves data about zipCodes in US + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getZipCodesUSWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getZipCodesUSValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about zipCodes in US (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getZipCodesUSAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getZipCodesUSValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getZipCodesUSWithStateCode + * @param statecode (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getZipCodesUSWithStateCodeCall(String statecode, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/dataexisting/zipcodeus/{statecode}" + .replaceAll("\\{" + "statecode" + "\\}", localVarApiClient.escapeString(statecode.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getZipCodesUSWithStateCodeValidateBeforeCall(String statecode, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'statecode' is set + if (statecode == null) { + throw new ApiException("Missing the required parameter 'statecode' when calling getZipCodesUSWithStateCode(Async)"); + } + + + okhttp3.Call localVarCall = getZipCodesUSWithStateCodeCall(statecode, _callback); + return localVarCall; + + } + + /** + * Retrieves data about zipCodes in US with State Code + * + * @param statecode (required) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public Object getZipCodesUSWithStateCode(String statecode) throws ApiException { + ApiResponse localVarResp = getZipCodesUSWithStateCodeWithHttpInfo(statecode); + return localVarResp.getData(); + } + + /** + * Retrieves data about zipCodes in US with State Code + * + * @param statecode (required) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public ApiResponse getZipCodesUSWithStateCodeWithHttpInfo(String statecode) throws ApiException { + okhttp3.Call localVarCall = getZipCodesUSWithStateCodeValidateBeforeCall(statecode, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Retrieves data about zipCodes in US with State Code (asynchronously) + * + * @param statecode (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getZipCodesUSWithStateCodeAsync(String statecode, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getZipCodesUSWithStateCodeValidateBeforeCall(statecode, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/ApiKeyAuth.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/ApiKeyAuth.java new file mode 100644 index 0000000..18da189 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/ApiKeyAuth.java @@ -0,0 +1,80 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.auth; + +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; +import io.connectedhealth.idaas.datasynthesis.javaclient.Pair; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class ApiKeyAuth implements Authentication { + private final String location; + private final String paramName; + + private String apiKey; + private String apiKeyPrefix; + + public ApiKeyAuth(String location, String paramName) { + this.location = location; + this.paramName = paramName; + } + + public String getLocation() { + return location; + } + + public String getParamName() { + return paramName; + } + + public String getApiKey() { + return apiKey; + } + + public void setApiKey(String apiKey) { + this.apiKey = apiKey; + } + + public String getApiKeyPrefix() { + return apiKeyPrefix; + } + + public void setApiKeyPrefix(String apiKeyPrefix) { + this.apiKeyPrefix = apiKeyPrefix; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (apiKey == null) { + return; + } + String value; + if (apiKeyPrefix != null) { + value = apiKeyPrefix + " " + apiKey; + } else { + value = apiKey; + } + if ("query".equals(location)) { + queryParams.add(new Pair(paramName, value)); + } else if ("header".equals(location)) { + headerParams.put(paramName, value); + } else if ("cookie".equals(location)) { + cookieParams.put(paramName, value); + } + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/Authentication.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/Authentication.java new file mode 100644 index 0000000..430113e --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/Authentication.java @@ -0,0 +1,36 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.auth; + +import io.connectedhealth.idaas.datasynthesis.javaclient.Pair; +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +public interface Authentication { + /** + * Apply authentication settings to header and query params. + * + * @param queryParams List of query parameters + * @param headerParams Map of header parameters + * @param cookieParams Map of cookie parameters + * @param payload HTTP request body + * @param method HTTP method + * @param uri URI + * @throws ApiException if failed to update the parameters + */ + void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException; +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBasicAuth.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBasicAuth.java new file mode 100644 index 0000000..d7ff0da --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBasicAuth.java @@ -0,0 +1,57 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.auth; + +import io.connectedhealth.idaas.datasynthesis.javaclient.Pair; +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; + +import okhttp3.Credentials; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +import java.io.UnsupportedEncodingException; + +public class HttpBasicAuth implements Authentication { + private String username; + private String password; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (username == null && password == null) { + return; + } + headerParams.put("Authorization", Credentials.basic( + username == null ? "" : username, + password == null ? "" : password)); + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBearerAuth.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBearerAuth.java new file mode 100644 index 0000000..f42b913 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBearerAuth.java @@ -0,0 +1,63 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.auth; + +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; +import io.connectedhealth.idaas.datasynthesis.javaclient.Pair; + +import java.net.URI; +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class HttpBearerAuth implements Authentication { + private final String scheme; + private String bearerToken; + + public HttpBearerAuth(String scheme) { + this.scheme = scheme; + } + + /** + * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @return The bearer token + */ + public String getBearerToken() { + return bearerToken; + } + + /** + * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @param bearerToken The bearer token to send in the Authorization header + */ + public void setBearerToken(String bearerToken) { + this.bearerToken = bearerToken; + } + + @Override + public void applyToParams(List queryParams, Map headerParams, Map cookieParams, + String payload, String method, URI uri) throws ApiException { + if (bearerToken == null) { + return; + } + + headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + } + + private static String upperCaseBearer(String scheme) { + return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; + } +} diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecord.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecord.java new file mode 100644 index 0000000..a7ad52b --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecord.java @@ -0,0 +1,393 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.AbaBankingRecordAllOf; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * AbaBankingRecord + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class AbaBankingRecord { + public static final String SERIALIZED_NAME_ABABANKINGID = "ababankingid"; + @SerializedName(SERIALIZED_NAME_ABABANKINGID) + private Integer ababankingid; + + public static final String SERIALIZED_NAME_ROUTINGNUMBER = "routingnumber"; + @SerializedName(SERIALIZED_NAME_ROUTINGNUMBER) + private String routingnumber; + + public static final String SERIALIZED_NAME_TELEGRAPHICNAME = "telegraphicname"; + @SerializedName(SERIALIZED_NAME_TELEGRAPHICNAME) + private String telegraphicname; + + public static final String SERIALIZED_NAME_CUSTOMERNAME = "customername"; + @SerializedName(SERIALIZED_NAME_CUSTOMERNAME) + private String customername; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + private String city; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public static final String SERIALIZED_NAME_ZIPCODE = "zipcode"; + @SerializedName(SERIALIZED_NAME_ZIPCODE) + private String zipcode; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public AbaBankingRecord() { + } + + public AbaBankingRecord ababankingid(Integer ababankingid) { + + this.ababankingid = ababankingid; + return this; + } + + /** + * I think this might be an integer?! + * @return ababankingid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "I think this might be an integer?!") + + public Integer getAbabankingid() { + return ababankingid; + } + + + public void setAbabankingid(Integer ababankingid) { + this.ababankingid = ababankingid; + } + + + public AbaBankingRecord routingnumber(String routingnumber) { + + this.routingnumber = routingnumber; + return this; + } + + /** + * Get routingnumber + * @return routingnumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRoutingnumber() { + return routingnumber; + } + + + public void setRoutingnumber(String routingnumber) { + this.routingnumber = routingnumber; + } + + + public AbaBankingRecord telegraphicname(String telegraphicname) { + + this.telegraphicname = telegraphicname; + return this; + } + + /** + * Get telegraphicname + * @return telegraphicname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTelegraphicname() { + return telegraphicname; + } + + + public void setTelegraphicname(String telegraphicname) { + this.telegraphicname = telegraphicname; + } + + + public AbaBankingRecord customername(String customername) { + + this.customername = customername; + return this; + } + + /** + * Get customername + * @return customername + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustomername() { + return customername; + } + + + public void setCustomername(String customername) { + this.customername = customername; + } + + + public AbaBankingRecord city(String city) { + + this.city = city; + return this; + } + + /** + * Get city + * @return city + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCity() { + return city; + } + + + public void setCity(String city) { + this.city = city; + } + + + public AbaBankingRecord statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * Get statecode + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + public AbaBankingRecord zipcode(String zipcode) { + + this.zipcode = zipcode; + return this; + } + + /** + * Get zipcode + * @return zipcode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getZipcode() { + return zipcode; + } + + + public void setZipcode(String zipcode) { + this.zipcode = zipcode; + } + + + public AbaBankingRecord createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public AbaBankingRecord createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public AbaBankingRecord statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public AbaBankingRecord registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbaBankingRecord abaBankingRecord = (AbaBankingRecord) o; + return Objects.equals(this.ababankingid, abaBankingRecord.ababankingid) && + Objects.equals(this.routingnumber, abaBankingRecord.routingnumber) && + Objects.equals(this.telegraphicname, abaBankingRecord.telegraphicname) && + Objects.equals(this.customername, abaBankingRecord.customername) && + Objects.equals(this.city, abaBankingRecord.city) && + Objects.equals(this.statecode, abaBankingRecord.statecode) && + Objects.equals(this.zipcode, abaBankingRecord.zipcode) && + Objects.equals(this.createduser, abaBankingRecord.createduser) && + Objects.equals(this.createddate, abaBankingRecord.createddate) && + Objects.equals(this.statusid, abaBankingRecord.statusid) && + Objects.equals(this.registeredapp, abaBankingRecord.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(ababankingid, routingnumber, telegraphicname, customername, city, statecode, zipcode, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AbaBankingRecord {\n"); + sb.append(" ababankingid: ").append(toIndentedString(ababankingid)).append("\n"); + sb.append(" routingnumber: ").append(toIndentedString(routingnumber)).append("\n"); + sb.append(" telegraphicname: ").append(toIndentedString(telegraphicname)).append("\n"); + sb.append(" customername: ").append(toIndentedString(customername)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append(" zipcode: ").append(toIndentedString(zipcode)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOf.java new file mode 100644 index 0000000..c4b66b1 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOf.java @@ -0,0 +1,274 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AbaBankingRecordAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class AbaBankingRecordAllOf { + public static final String SERIALIZED_NAME_ABABANKINGID = "ababankingid"; + @SerializedName(SERIALIZED_NAME_ABABANKINGID) + private Integer ababankingid; + + public static final String SERIALIZED_NAME_ROUTINGNUMBER = "routingnumber"; + @SerializedName(SERIALIZED_NAME_ROUTINGNUMBER) + private String routingnumber; + + public static final String SERIALIZED_NAME_TELEGRAPHICNAME = "telegraphicname"; + @SerializedName(SERIALIZED_NAME_TELEGRAPHICNAME) + private String telegraphicname; + + public static final String SERIALIZED_NAME_CUSTOMERNAME = "customername"; + @SerializedName(SERIALIZED_NAME_CUSTOMERNAME) + private String customername; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + private String city; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public static final String SERIALIZED_NAME_ZIPCODE = "zipcode"; + @SerializedName(SERIALIZED_NAME_ZIPCODE) + private String zipcode; + + public AbaBankingRecordAllOf() { + } + + public AbaBankingRecordAllOf ababankingid(Integer ababankingid) { + + this.ababankingid = ababankingid; + return this; + } + + /** + * I think this might be an integer?! + * @return ababankingid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "I think this might be an integer?!") + + public Integer getAbabankingid() { + return ababankingid; + } + + + public void setAbabankingid(Integer ababankingid) { + this.ababankingid = ababankingid; + } + + + public AbaBankingRecordAllOf routingnumber(String routingnumber) { + + this.routingnumber = routingnumber; + return this; + } + + /** + * Get routingnumber + * @return routingnumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRoutingnumber() { + return routingnumber; + } + + + public void setRoutingnumber(String routingnumber) { + this.routingnumber = routingnumber; + } + + + public AbaBankingRecordAllOf telegraphicname(String telegraphicname) { + + this.telegraphicname = telegraphicname; + return this; + } + + /** + * Get telegraphicname + * @return telegraphicname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTelegraphicname() { + return telegraphicname; + } + + + public void setTelegraphicname(String telegraphicname) { + this.telegraphicname = telegraphicname; + } + + + public AbaBankingRecordAllOf customername(String customername) { + + this.customername = customername; + return this; + } + + /** + * Get customername + * @return customername + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCustomername() { + return customername; + } + + + public void setCustomername(String customername) { + this.customername = customername; + } + + + public AbaBankingRecordAllOf city(String city) { + + this.city = city; + return this; + } + + /** + * Get city + * @return city + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCity() { + return city; + } + + + public void setCity(String city) { + this.city = city; + } + + + public AbaBankingRecordAllOf statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * Get statecode + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + public AbaBankingRecordAllOf zipcode(String zipcode) { + + this.zipcode = zipcode; + return this; + } + + /** + * Get zipcode + * @return zipcode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getZipcode() { + return zipcode; + } + + + public void setZipcode(String zipcode) { + this.zipcode = zipcode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbaBankingRecordAllOf abaBankingRecordAllOf = (AbaBankingRecordAllOf) o; + return Objects.equals(this.ababankingid, abaBankingRecordAllOf.ababankingid) && + Objects.equals(this.routingnumber, abaBankingRecordAllOf.routingnumber) && + Objects.equals(this.telegraphicname, abaBankingRecordAllOf.telegraphicname) && + Objects.equals(this.customername, abaBankingRecordAllOf.customername) && + Objects.equals(this.city, abaBankingRecordAllOf.city) && + Objects.equals(this.statecode, abaBankingRecordAllOf.statecode) && + Objects.equals(this.zipcode, abaBankingRecordAllOf.zipcode); + } + + @Override + public int hashCode() { + return Objects.hash(ababankingid, routingnumber, telegraphicname, customername, city, statecode, zipcode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AbaBankingRecordAllOf {\n"); + sb.append(" ababankingid: ").append(toIndentedString(ababankingid)).append("\n"); + sb.append(" routingnumber: ").append(toIndentedString(routingnumber)).append("\n"); + sb.append(" telegraphicname: ").append(toIndentedString(telegraphicname)).append("\n"); + sb.append(" customername: ").append(toIndentedString(customername)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append(" zipcode: ").append(toIndentedString(zipcode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCode.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCode.java new file mode 100644 index 0000000..e7e4f1d --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCode.java @@ -0,0 +1,306 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.AreaCodeAllOf; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * AreaCode + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class AreaCode { + public static final String SERIALIZED_NAME_AREACODEID = "areacodeid"; + @SerializedName(SERIALIZED_NAME_AREACODEID) + private Integer areacodeid; + + public static final String SERIALIZED_NAME_AREACODEVALUE = "areacodevalue"; + @SerializedName(SERIALIZED_NAME_AREACODEVALUE) + private String areacodevalue; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + private String timezone; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public AreaCode() { + } + + public AreaCode areacodeid(Integer areacodeid) { + + this.areacodeid = areacodeid; + return this; + } + + /** + * placeholder + * @return areacodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getAreacodeid() { + return areacodeid; + } + + + public void setAreacodeid(Integer areacodeid) { + this.areacodeid = areacodeid; + } + + + public AreaCode areacodevalue(String areacodevalue) { + + this.areacodevalue = areacodevalue; + return this; + } + + /** + * placeholder + * @return areacodevalue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getAreacodevalue() { + return areacodevalue; + } + + + public void setAreacodevalue(String areacodevalue) { + this.areacodevalue = areacodevalue; + } + + + public AreaCode timezone(String timezone) { + + this.timezone = timezone; + return this; + } + + /** + * placeholder + * @return timezone + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getTimezone() { + return timezone; + } + + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + + public AreaCode statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * placeholder + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + public AreaCode createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public AreaCode createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public AreaCode statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public AreaCode registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AreaCode areaCode = (AreaCode) o; + return Objects.equals(this.areacodeid, areaCode.areacodeid) && + Objects.equals(this.areacodevalue, areaCode.areacodevalue) && + Objects.equals(this.timezone, areaCode.timezone) && + Objects.equals(this.statecode, areaCode.statecode) && + Objects.equals(this.createduser, areaCode.createduser) && + Objects.equals(this.createddate, areaCode.createddate) && + Objects.equals(this.statusid, areaCode.statusid) && + Objects.equals(this.registeredapp, areaCode.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(areacodeid, areacodevalue, timezone, statecode, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AreaCode {\n"); + sb.append(" areacodeid: ").append(toIndentedString(areacodeid)).append("\n"); + sb.append(" areacodevalue: ").append(toIndentedString(areacodevalue)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOf.java new file mode 100644 index 0000000..94effff --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOf.java @@ -0,0 +1,187 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * AreaCodeAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class AreaCodeAllOf { + public static final String SERIALIZED_NAME_AREACODEID = "areacodeid"; + @SerializedName(SERIALIZED_NAME_AREACODEID) + private Integer areacodeid; + + public static final String SERIALIZED_NAME_AREACODEVALUE = "areacodevalue"; + @SerializedName(SERIALIZED_NAME_AREACODEVALUE) + private String areacodevalue; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + private String timezone; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public AreaCodeAllOf() { + } + + public AreaCodeAllOf areacodeid(Integer areacodeid) { + + this.areacodeid = areacodeid; + return this; + } + + /** + * placeholder + * @return areacodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getAreacodeid() { + return areacodeid; + } + + + public void setAreacodeid(Integer areacodeid) { + this.areacodeid = areacodeid; + } + + + public AreaCodeAllOf areacodevalue(String areacodevalue) { + + this.areacodevalue = areacodevalue; + return this; + } + + /** + * placeholder + * @return areacodevalue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getAreacodevalue() { + return areacodevalue; + } + + + public void setAreacodevalue(String areacodevalue) { + this.areacodevalue = areacodevalue; + } + + + public AreaCodeAllOf timezone(String timezone) { + + this.timezone = timezone; + return this; + } + + /** + * placeholder + * @return timezone + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getTimezone() { + return timezone; + } + + + public void setTimezone(String timezone) { + this.timezone = timezone; + } + + + public AreaCodeAllOf statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * placeholder + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AreaCodeAllOf areaCodeAllOf = (AreaCodeAllOf) o; + return Objects.equals(this.areacodeid, areaCodeAllOf.areacodeid) && + Objects.equals(this.areacodevalue, areaCodeAllOf.areacodevalue) && + Objects.equals(this.timezone, areaCodeAllOf.timezone) && + Objects.equals(this.statecode, areaCodeAllOf.statecode); + } + + @Override + public int hashCode() { + return Objects.hash(areacodeid, areacodevalue, timezone, statecode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AreaCodeAllOf {\n"); + sb.append(" areacodeid: ").append(toIndentedString(areacodeid)).append("\n"); + sb.append(" areacodevalue: ").append(toIndentedString(areacodevalue)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecord.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecord.java new file mode 100644 index 0000000..e51675f --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecord.java @@ -0,0 +1,159 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * BaseAuditRecord + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class BaseAuditRecord { + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public BaseAuditRecord() { + } + + public BaseAuditRecord createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public BaseAuditRecord statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public BaseAuditRecord registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BaseAuditRecord baseAuditRecord = (BaseAuditRecord) o; + return Objects.equals(this.createddate, baseAuditRecord.createddate) && + Objects.equals(this.statusid, baseAuditRecord.statusid) && + Objects.equals(this.registeredapp, baseAuditRecord.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseAuditRecord {\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUser.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUser.java new file mode 100644 index 0000000..891bfc7 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUser.java @@ -0,0 +1,190 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecord; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUserAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * BaseAuditRecordWithUser + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class BaseAuditRecordWithUser { + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public BaseAuditRecordWithUser() { + } + + public BaseAuditRecordWithUser createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public BaseAuditRecordWithUser createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public BaseAuditRecordWithUser statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public BaseAuditRecordWithUser registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BaseAuditRecordWithUser baseAuditRecordWithUser = (BaseAuditRecordWithUser) o; + return Objects.equals(this.createduser, baseAuditRecordWithUser.createduser) && + Objects.equals(this.createddate, baseAuditRecordWithUser.createddate) && + Objects.equals(this.statusid, baseAuditRecordWithUser.statusid) && + Objects.equals(this.registeredapp, baseAuditRecordWithUser.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseAuditRecordWithUser {\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOf.java new file mode 100644 index 0000000..294822b --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOf.java @@ -0,0 +1,100 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * BaseAuditRecordWithUserAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class BaseAuditRecordWithUserAllOf { + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public BaseAuditRecordWithUserAllOf() { + } + + public BaseAuditRecordWithUserAllOf createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BaseAuditRecordWithUserAllOf baseAuditRecordWithUserAllOf = (BaseAuditRecordWithUserAllOf) o; + return Objects.equals(this.createduser, baseAuditRecordWithUserAllOf.createduser); + } + + @Override + public int hashCode() { + return Objects.hash(createduser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseAuditRecordWithUserAllOf {\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/Company.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/Company.java new file mode 100644 index 0000000..ddeefee --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/Company.java @@ -0,0 +1,248 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.CompanyAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Company + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class Company { + public static final String SERIALIZED_NAME_COMPANIESID = "companiesid"; + @SerializedName(SERIALIZED_NAME_COMPANIESID) + private Integer companiesid; + + public static final String SERIALIZED_NAME_COMPANIESNAME = "companiesname"; + @SerializedName(SERIALIZED_NAME_COMPANIESNAME) + private String companiesname; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public Company() { + } + + public Company companiesid(Integer companiesid) { + + this.companiesid = companiesid; + return this; + } + + /** + * placeholder + * @return companiesid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getCompaniesid() { + return companiesid; + } + + + public void setCompaniesid(Integer companiesid) { + this.companiesid = companiesid; + } + + + public Company companiesname(String companiesname) { + + this.companiesname = companiesname; + return this; + } + + /** + * placeholder + * @return companiesname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getCompaniesname() { + return companiesname; + } + + + public void setCompaniesname(String companiesname) { + this.companiesname = companiesname; + } + + + public Company createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public Company createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public Company statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public Company registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Company company = (Company) o; + return Objects.equals(this.companiesid, company.companiesid) && + Objects.equals(this.companiesname, company.companiesname) && + Objects.equals(this.createduser, company.createduser) && + Objects.equals(this.createddate, company.createddate) && + Objects.equals(this.statusid, company.statusid) && + Objects.equals(this.registeredapp, company.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(companiesid, companiesname, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Company {\n"); + sb.append(" companiesid: ").append(toIndentedString(companiesid)).append("\n"); + sb.append(" companiesname: ").append(toIndentedString(companiesname)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOf.java new file mode 100644 index 0000000..c9983aa --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOf.java @@ -0,0 +1,129 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * CompanyAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class CompanyAllOf { + public static final String SERIALIZED_NAME_COMPANIESID = "companiesid"; + @SerializedName(SERIALIZED_NAME_COMPANIESID) + private Integer companiesid; + + public static final String SERIALIZED_NAME_COMPANIESNAME = "companiesname"; + @SerializedName(SERIALIZED_NAME_COMPANIESNAME) + private String companiesname; + + public CompanyAllOf() { + } + + public CompanyAllOf companiesid(Integer companiesid) { + + this.companiesid = companiesid; + return this; + } + + /** + * placeholder + * @return companiesid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getCompaniesid() { + return companiesid; + } + + + public void setCompaniesid(Integer companiesid) { + this.companiesid = companiesid; + } + + + public CompanyAllOf companiesname(String companiesname) { + + this.companiesname = companiesname; + return this; + } + + /** + * placeholder + * @return companiesname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getCompaniesname() { + return companiesname; + } + + + public void setCompaniesname(String companiesname) { + this.companiesname = companiesname; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CompanyAllOf companyAllOf = (CompanyAllOf) o; + return Objects.equals(this.companiesid, companyAllOf.companiesid) && + Objects.equals(this.companiesname, companyAllOf.companiesname); + } + + @Override + public int hashCode() { + return Objects.hash(companiesid, companiesname); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CompanyAllOf {\n"); + sb.append(" companiesid: ").append(toIndentedString(companiesid)).append("\n"); + sb.append(" companiesname: ").append(toIndentedString(companiesname)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecord.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecord.java new file mode 100644 index 0000000..709fbef --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecord.java @@ -0,0 +1,129 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * DataTableInfoRecord + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class DataTableInfoRecord { + public static final String SERIALIZED_NAME_TABLENAME = "tablename"; + @SerializedName(SERIALIZED_NAME_TABLENAME) + private String tablename; + + public static final String SERIALIZED_NAME_TABLEINFORMATION = "tableinformation"; + @SerializedName(SERIALIZED_NAME_TABLEINFORMATION) + private String tableinformation; + + public DataTableInfoRecord() { + } + + public DataTableInfoRecord tablename(String tablename) { + + this.tablename = tablename; + return this; + } + + /** + * Get tablename + * @return tablename + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTablename() { + return tablename; + } + + + public void setTablename(String tablename) { + this.tablename = tablename; + } + + + public DataTableInfoRecord tableinformation(String tableinformation) { + + this.tableinformation = tableinformation; + return this; + } + + /** + * Get tableinformation + * @return tableinformation + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTableinformation() { + return tableinformation; + } + + + public void setTableinformation(String tableinformation) { + this.tableinformation = tableinformation; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataTableInfoRecord dataTableInfoRecord = (DataTableInfoRecord) o; + return Objects.equals(this.tablename, dataTableInfoRecord.tablename) && + Objects.equals(this.tableinformation, dataTableInfoRecord.tableinformation); + } + + @Override + public int hashCode() { + return Objects.hash(tablename, tableinformation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataTableInfoRecord {\n"); + sb.append(" tablename: ").append(toIndentedString(tablename)).append("\n"); + sb.append(" tableinformation: ").append(toIndentedString(tableinformation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecord.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecord.java new file mode 100644 index 0000000..7deedc4 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecord.java @@ -0,0 +1,188 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * DatamodelRecord + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class DatamodelRecord { + public static final String SERIALIZED_NAME_DOMAINNAME = "domainname"; + @SerializedName(SERIALIZED_NAME_DOMAINNAME) + private String domainname; + + public static final String SERIALIZED_NAME_DOMAININFORMATION = "domaininformation"; + @SerializedName(SERIALIZED_NAME_DOMAININFORMATION) + private String domaininformation; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public DatamodelRecord() { + } + + public DatamodelRecord domainname(String domainname) { + + this.domainname = domainname; + return this; + } + + /** + * Get domainname + * @return domainname + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getDomainname() { + return domainname; + } + + + public void setDomainname(String domainname) { + this.domainname = domainname; + } + + + public DatamodelRecord domaininformation(String domaininformation) { + + this.domaininformation = domaininformation; + return this; + } + + /** + * Get domaininformation + * @return domaininformation + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getDomaininformation() { + return domaininformation; + } + + + public void setDomaininformation(String domaininformation) { + this.domaininformation = domaininformation; + } + + + public DatamodelRecord statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public DatamodelRecord createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DatamodelRecord datamodelRecord = (DatamodelRecord) o; + return Objects.equals(this.domainname, datamodelRecord.domainname) && + Objects.equals(this.domaininformation, datamodelRecord.domaininformation) && + Objects.equals(this.statusid, datamodelRecord.statusid) && + Objects.equals(this.createddate, datamodelRecord.createddate); + } + + @Override + public int hashCode() { + return Objects.hash(domainname, domaininformation, statusid, createddate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DatamodelRecord {\n"); + sb.append(" domainname: ").append(toIndentedString(domainname)).append("\n"); + sb.append(" domaininformation: ").append(toIndentedString(domaininformation)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstName.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstName.java new file mode 100644 index 0000000..279554d --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstName.java @@ -0,0 +1,277 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.FirstNameAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * FirstName + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class FirstName { + public static final String SERIALIZED_NAME_FIRSTNAMEID = "firstnameid"; + @SerializedName(SERIALIZED_NAME_FIRSTNAMEID) + private Integer firstnameid; + + public static final String SERIALIZED_NAME_FIRSTNAME = "firstname"; + @SerializedName(SERIALIZED_NAME_FIRSTNAME) + private String firstname; + + public static final String SERIALIZED_NAME_GENDER = "gender"; + @SerializedName(SERIALIZED_NAME_GENDER) + private String gender; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public FirstName() { + } + + public FirstName firstnameid(Integer firstnameid) { + + this.firstnameid = firstnameid; + return this; + } + + /** + * placeholder + * @return firstnameid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getFirstnameid() { + return firstnameid; + } + + + public void setFirstnameid(Integer firstnameid) { + this.firstnameid = firstnameid; + } + + + public FirstName firstname(String firstname) { + + this.firstname = firstname; + return this; + } + + /** + * placeholder + * @return firstname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getFirstname() { + return firstname; + } + + + public void setFirstname(String firstname) { + this.firstname = firstname; + } + + + public FirstName gender(String gender) { + + this.gender = gender; + return this; + } + + /** + * placeholder + * @return gender + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getGender() { + return gender; + } + + + public void setGender(String gender) { + this.gender = gender; + } + + + public FirstName createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public FirstName createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public FirstName statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public FirstName registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirstName firstName = (FirstName) o; + return Objects.equals(this.firstnameid, firstName.firstnameid) && + Objects.equals(this.firstname, firstName.firstname) && + Objects.equals(this.gender, firstName.gender) && + Objects.equals(this.createduser, firstName.createduser) && + Objects.equals(this.createddate, firstName.createddate) && + Objects.equals(this.statusid, firstName.statusid) && + Objects.equals(this.registeredapp, firstName.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(firstnameid, firstname, gender, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FirstName {\n"); + sb.append(" firstnameid: ").append(toIndentedString(firstnameid)).append("\n"); + sb.append(" firstname: ").append(toIndentedString(firstname)).append("\n"); + sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOf.java new file mode 100644 index 0000000..618eea8 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOf.java @@ -0,0 +1,158 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * FirstNameAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class FirstNameAllOf { + public static final String SERIALIZED_NAME_FIRSTNAMEID = "firstnameid"; + @SerializedName(SERIALIZED_NAME_FIRSTNAMEID) + private Integer firstnameid; + + public static final String SERIALIZED_NAME_FIRSTNAME = "firstname"; + @SerializedName(SERIALIZED_NAME_FIRSTNAME) + private String firstname; + + public static final String SERIALIZED_NAME_GENDER = "gender"; + @SerializedName(SERIALIZED_NAME_GENDER) + private String gender; + + public FirstNameAllOf() { + } + + public FirstNameAllOf firstnameid(Integer firstnameid) { + + this.firstnameid = firstnameid; + return this; + } + + /** + * placeholder + * @return firstnameid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getFirstnameid() { + return firstnameid; + } + + + public void setFirstnameid(Integer firstnameid) { + this.firstnameid = firstnameid; + } + + + public FirstNameAllOf firstname(String firstname) { + + this.firstname = firstname; + return this; + } + + /** + * placeholder + * @return firstname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getFirstname() { + return firstname; + } + + + public void setFirstname(String firstname) { + this.firstname = firstname; + } + + + public FirstNameAllOf gender(String gender) { + + this.gender = gender; + return this; + } + + /** + * placeholder + * @return gender + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getGender() { + return gender; + } + + + public void setGender(String gender) { + this.gender = gender; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirstNameAllOf firstNameAllOf = (FirstNameAllOf) o; + return Objects.equals(this.firstnameid, firstNameAllOf.firstnameid) && + Objects.equals(this.firstname, firstNameAllOf.firstname) && + Objects.equals(this.gender, firstNameAllOf.gender); + } + + @Override + public int hashCode() { + return Objects.hash(firstnameid, firstname, gender); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FirstNameAllOf {\n"); + sb.append(" firstnameid: ").append(toIndentedString(firstnameid)).append("\n"); + sb.append(" firstname: ").append(toIndentedString(firstname)).append("\n"); + sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastName.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastName.java new file mode 100644 index 0000000..1686de9 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastName.java @@ -0,0 +1,248 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.LastNameAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * LastName + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class LastName { + public static final String SERIALIZED_NAME_LASTNAMEID = "lastnameid"; + @SerializedName(SERIALIZED_NAME_LASTNAMEID) + private Integer lastnameid; + + public static final String SERIALIZED_NAME_LASTNAME = "lastname"; + @SerializedName(SERIALIZED_NAME_LASTNAME) + private String lastname; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public LastName() { + } + + public LastName lastnameid(Integer lastnameid) { + + this.lastnameid = lastnameid; + return this; + } + + /** + * placeholder + * @return lastnameid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getLastnameid() { + return lastnameid; + } + + + public void setLastnameid(Integer lastnameid) { + this.lastnameid = lastnameid; + } + + + public LastName lastname(String lastname) { + + this.lastname = lastname; + return this; + } + + /** + * placeholder + * @return lastname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLastname() { + return lastname; + } + + + public void setLastname(String lastname) { + this.lastname = lastname; + } + + + public LastName createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public LastName createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public LastName statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public LastName registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LastName lastName = (LastName) o; + return Objects.equals(this.lastnameid, lastName.lastnameid) && + Objects.equals(this.lastname, lastName.lastname) && + Objects.equals(this.createduser, lastName.createduser) && + Objects.equals(this.createddate, lastName.createddate) && + Objects.equals(this.statusid, lastName.statusid) && + Objects.equals(this.registeredapp, lastName.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(lastnameid, lastname, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LastName {\n"); + sb.append(" lastnameid: ").append(toIndentedString(lastnameid)).append("\n"); + sb.append(" lastname: ").append(toIndentedString(lastname)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOf.java new file mode 100644 index 0000000..1c8efe2 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOf.java @@ -0,0 +1,129 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * LastNameAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class LastNameAllOf { + public static final String SERIALIZED_NAME_LASTNAMEID = "lastnameid"; + @SerializedName(SERIALIZED_NAME_LASTNAMEID) + private Integer lastnameid; + + public static final String SERIALIZED_NAME_LASTNAME = "lastname"; + @SerializedName(SERIALIZED_NAME_LASTNAME) + private String lastname; + + public LastNameAllOf() { + } + + public LastNameAllOf lastnameid(Integer lastnameid) { + + this.lastnameid = lastnameid; + return this; + } + + /** + * placeholder + * @return lastnameid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getLastnameid() { + return lastnameid; + } + + + public void setLastnameid(Integer lastnameid) { + this.lastnameid = lastnameid; + } + + + public LastNameAllOf lastname(String lastname) { + + this.lastname = lastname; + return this; + } + + /** + * placeholder + * @return lastname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLastname() { + return lastname; + } + + + public void setLastname(String lastname) { + this.lastname = lastname; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LastNameAllOf lastNameAllOf = (LastNameAllOf) o; + return Objects.equals(this.lastnameid, lastNameAllOf.lastnameid) && + Objects.equals(this.lastname, lastNameAllOf.lastname); + } + + @Override + public int hashCode() { + return Objects.hash(lastnameid, lastname); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LastNameAllOf {\n"); + sb.append(" lastnameid: ").append(toIndentedString(lastnameid)).append("\n"); + sb.append(" lastname: ").append(toIndentedString(lastname)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFields.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFields.java new file mode 100644 index 0000000..b4ad0c0 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFields.java @@ -0,0 +1,129 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * QueryResponseSharedFields + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class QueryResponseSharedFields { + public static final String SERIALIZED_NAME_COMMAND = "command"; + @SerializedName(SERIALIZED_NAME_COMMAND) + private String command; + + public static final String SERIALIZED_NAME_ROW_COUNT = "rowCount"; + @SerializedName(SERIALIZED_NAME_ROW_COUNT) + private Integer rowCount; + + public QueryResponseSharedFields() { + } + + public QueryResponseSharedFields command(String command) { + + this.command = command; + return this; + } + + /** + * Get command + * @return command + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCommand() { + return command; + } + + + public void setCommand(String command) { + this.command = command; + } + + + public QueryResponseSharedFields rowCount(Integer rowCount) { + + this.rowCount = rowCount; + return this; + } + + /** + * Get rowCount + * @return rowCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getRowCount() { + return rowCount; + } + + + public void setRowCount(Integer rowCount) { + this.rowCount = rowCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryResponseSharedFields queryResponseSharedFields = (QueryResponseSharedFields) o; + return Objects.equals(this.command, queryResponseSharedFields.command) && + Objects.equals(this.rowCount, queryResponseSharedFields.rowCount); + } + + @Override + public int hashCode() { + return Objects.hash(command, rowCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryResponseSharedFields {\n"); + sb.append(" command: ").append(toIndentedString(command)).append("\n"); + sb.append(" rowCount: ").append(toIndentedString(rowCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCode.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCode.java new file mode 100644 index 0000000..0efc076 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCode.java @@ -0,0 +1,277 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.UpcCodeAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * UpcCode + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class UpcCode { + public static final String SERIALIZED_NAME_UPCCODEID = "upccodeid"; + @SerializedName(SERIALIZED_NAME_UPCCODEID) + private Integer upccodeid; + + public static final String SERIALIZED_NAME_UPCCODENAME = "upccodename"; + @SerializedName(SERIALIZED_NAME_UPCCODENAME) + private String upccodename; + + public static final String SERIALIZED_NAME_UPCPRODUCTNAME = "upcproductname"; + @SerializedName(SERIALIZED_NAME_UPCPRODUCTNAME) + private String upcproductname; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public UpcCode() { + } + + public UpcCode upccodeid(Integer upccodeid) { + + this.upccodeid = upccodeid; + return this; + } + + /** + * placeholder + * @return upccodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getUpccodeid() { + return upccodeid; + } + + + public void setUpccodeid(Integer upccodeid) { + this.upccodeid = upccodeid; + } + + + public UpcCode upccodename(String upccodename) { + + this.upccodename = upccodename; + return this; + } + + /** + * placeholder + * @return upccodename + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getUpccodename() { + return upccodename; + } + + + public void setUpccodename(String upccodename) { + this.upccodename = upccodename; + } + + + public UpcCode upcproductname(String upcproductname) { + + this.upcproductname = upcproductname; + return this; + } + + /** + * placeholder + * @return upcproductname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getUpcproductname() { + return upcproductname; + } + + + public void setUpcproductname(String upcproductname) { + this.upcproductname = upcproductname; + } + + + public UpcCode createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public UpcCode createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public UpcCode statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public UpcCode registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpcCode upcCode = (UpcCode) o; + return Objects.equals(this.upccodeid, upcCode.upccodeid) && + Objects.equals(this.upccodename, upcCode.upccodename) && + Objects.equals(this.upcproductname, upcCode.upcproductname) && + Objects.equals(this.createduser, upcCode.createduser) && + Objects.equals(this.createddate, upcCode.createddate) && + Objects.equals(this.statusid, upcCode.statusid) && + Objects.equals(this.registeredapp, upcCode.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(upccodeid, upccodename, upcproductname, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpcCode {\n"); + sb.append(" upccodeid: ").append(toIndentedString(upccodeid)).append("\n"); + sb.append(" upccodename: ").append(toIndentedString(upccodename)).append("\n"); + sb.append(" upcproductname: ").append(toIndentedString(upcproductname)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOf.java new file mode 100644 index 0000000..1ce0162 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOf.java @@ -0,0 +1,158 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UpcCodeAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class UpcCodeAllOf { + public static final String SERIALIZED_NAME_UPCCODEID = "upccodeid"; + @SerializedName(SERIALIZED_NAME_UPCCODEID) + private Integer upccodeid; + + public static final String SERIALIZED_NAME_UPCCODENAME = "upccodename"; + @SerializedName(SERIALIZED_NAME_UPCCODENAME) + private String upccodename; + + public static final String SERIALIZED_NAME_UPCPRODUCTNAME = "upcproductname"; + @SerializedName(SERIALIZED_NAME_UPCPRODUCTNAME) + private String upcproductname; + + public UpcCodeAllOf() { + } + + public UpcCodeAllOf upccodeid(Integer upccodeid) { + + this.upccodeid = upccodeid; + return this; + } + + /** + * placeholder + * @return upccodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getUpccodeid() { + return upccodeid; + } + + + public void setUpccodeid(Integer upccodeid) { + this.upccodeid = upccodeid; + } + + + public UpcCodeAllOf upccodename(String upccodename) { + + this.upccodename = upccodename; + return this; + } + + /** + * placeholder + * @return upccodename + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getUpccodename() { + return upccodename; + } + + + public void setUpccodename(String upccodename) { + this.upccodename = upccodename; + } + + + public UpcCodeAllOf upcproductname(String upcproductname) { + + this.upcproductname = upcproductname; + return this; + } + + /** + * placeholder + * @return upcproductname + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getUpcproductname() { + return upcproductname; + } + + + public void setUpcproductname(String upcproductname) { + this.upcproductname = upcproductname; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpcCodeAllOf upcCodeAllOf = (UpcCodeAllOf) o; + return Objects.equals(this.upccodeid, upcCodeAllOf.upccodeid) && + Objects.equals(this.upccodename, upcCodeAllOf.upccodename) && + Objects.equals(this.upcproductname, upcCodeAllOf.upcproductname); + } + + @Override + public int hashCode() { + return Objects.hash(upccodeid, upccodename, upcproductname); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpcCodeAllOf {\n"); + sb.append(" upccodeid: ").append(toIndentedString(upccodeid)).append("\n"); + sb.append(" upccodename: ").append(toIndentedString(upccodename)).append("\n"); + sb.append(" upcproductname: ").append(toIndentedString(upcproductname)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUS.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUS.java new file mode 100644 index 0000000..bac3e1b --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUS.java @@ -0,0 +1,422 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.ZipCodeUSAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * ZipCodeUS + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class ZipCodeUS { + public static final String SERIALIZED_NAME_ZIPCODEID = "zipcodeid"; + @SerializedName(SERIALIZED_NAME_ZIPCODEID) + private Integer zipcodeid; + + public static final String SERIALIZED_NAME_ZIPCODE = "zipcode"; + @SerializedName(SERIALIZED_NAME_ZIPCODE) + private String zipcode; + + public static final String SERIALIZED_NAME_ZIPCODETYPE = "zipcodetype"; + @SerializedName(SERIALIZED_NAME_ZIPCODETYPE) + private String zipcodetype; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + private String city; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public static final String SERIALIZED_NAME_LATTITUDE = "lattitude"; + @SerializedName(SERIALIZED_NAME_LATTITUDE) + private String lattitude; + + public static final String SERIALIZED_NAME_LONGITUDE = "longitude"; + @SerializedName(SERIALIZED_NAME_LONGITUDE) + private String longitude; + + public static final String SERIALIZED_NAME_LCTN = "lctn"; + @SerializedName(SERIALIZED_NAME_LCTN) + private String lctn; + + public static final String SERIALIZED_NAME_CREATEDUSER = "createduser"; + @SerializedName(SERIALIZED_NAME_CREATEDUSER) + private String createduser; + + public static final String SERIALIZED_NAME_CREATEDDATE = "createddate"; + @SerializedName(SERIALIZED_NAME_CREATEDDATE) + private OffsetDateTime createddate; + + public static final String SERIALIZED_NAME_STATUSID = "statusid"; + @SerializedName(SERIALIZED_NAME_STATUSID) + private Integer statusid; + + public static final String SERIALIZED_NAME_REGISTEREDAPP = "registeredapp"; + @SerializedName(SERIALIZED_NAME_REGISTEREDAPP) + private String registeredapp; + + public ZipCodeUS() { + } + + public ZipCodeUS zipcodeid(Integer zipcodeid) { + + this.zipcodeid = zipcodeid; + return this; + } + + /** + * placeholder + * @return zipcodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getZipcodeid() { + return zipcodeid; + } + + + public void setZipcodeid(Integer zipcodeid) { + this.zipcodeid = zipcodeid; + } + + + public ZipCodeUS zipcode(String zipcode) { + + this.zipcode = zipcode; + return this; + } + + /** + * placeholder + * @return zipcode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getZipcode() { + return zipcode; + } + + + public void setZipcode(String zipcode) { + this.zipcode = zipcode; + } + + + public ZipCodeUS zipcodetype(String zipcodetype) { + + this.zipcodetype = zipcodetype; + return this; + } + + /** + * placeholder + * @return zipcodetype + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getZipcodetype() { + return zipcodetype; + } + + + public void setZipcodetype(String zipcodetype) { + this.zipcodetype = zipcodetype; + } + + + public ZipCodeUS city(String city) { + + this.city = city; + return this; + } + + /** + * placeholder + * @return city + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getCity() { + return city; + } + + + public void setCity(String city) { + this.city = city; + } + + + public ZipCodeUS statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * placeholder + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + public ZipCodeUS lattitude(String lattitude) { + + this.lattitude = lattitude; + return this; + } + + /** + * placeholder + * @return lattitude + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLattitude() { + return lattitude; + } + + + public void setLattitude(String lattitude) { + this.lattitude = lattitude; + } + + + public ZipCodeUS longitude(String longitude) { + + this.longitude = longitude; + return this; + } + + /** + * placeholder + * @return longitude + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLongitude() { + return longitude; + } + + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + + public ZipCodeUS lctn(String lctn) { + + this.lctn = lctn; + return this; + } + + /** + * placeholder + * @return lctn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLctn() { + return lctn; + } + + + public void setLctn(String lctn) { + this.lctn = lctn; + } + + + public ZipCodeUS createduser(String createduser) { + + this.createduser = createduser; + return this; + } + + /** + * Get createduser + * @return createduser + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreateduser() { + return createduser; + } + + + public void setCreateduser(String createduser) { + this.createduser = createduser; + } + + + public ZipCodeUS createddate(OffsetDateTime createddate) { + + this.createddate = createddate; + return this; + } + + /** + * Get createddate + * @return createddate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreateddate() { + return createddate; + } + + + public void setCreateddate(OffsetDateTime createddate) { + this.createddate = createddate; + } + + + public ZipCodeUS statusid(Integer statusid) { + + this.statusid = statusid; + return this; + } + + /** + * Get statusid + * @return statusid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getStatusid() { + return statusid; + } + + + public void setStatusid(Integer statusid) { + this.statusid = statusid; + } + + + public ZipCodeUS registeredapp(String registeredapp) { + + this.registeredapp = registeredapp; + return this; + } + + /** + * Get registeredapp + * @return registeredapp + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRegisteredapp() { + return registeredapp; + } + + + public void setRegisteredapp(String registeredapp) { + this.registeredapp = registeredapp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ZipCodeUS zipCodeUS = (ZipCodeUS) o; + return Objects.equals(this.zipcodeid, zipCodeUS.zipcodeid) && + Objects.equals(this.zipcode, zipCodeUS.zipcode) && + Objects.equals(this.zipcodetype, zipCodeUS.zipcodetype) && + Objects.equals(this.city, zipCodeUS.city) && + Objects.equals(this.statecode, zipCodeUS.statecode) && + Objects.equals(this.lattitude, zipCodeUS.lattitude) && + Objects.equals(this.longitude, zipCodeUS.longitude) && + Objects.equals(this.lctn, zipCodeUS.lctn) && + Objects.equals(this.createduser, zipCodeUS.createduser) && + Objects.equals(this.createddate, zipCodeUS.createddate) && + Objects.equals(this.statusid, zipCodeUS.statusid) && + Objects.equals(this.registeredapp, zipCodeUS.registeredapp); + } + + @Override + public int hashCode() { + return Objects.hash(zipcodeid, zipcode, zipcodetype, city, statecode, lattitude, longitude, lctn, createduser, createddate, statusid, registeredapp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ZipCodeUS {\n"); + sb.append(" zipcodeid: ").append(toIndentedString(zipcodeid)).append("\n"); + sb.append(" zipcode: ").append(toIndentedString(zipcode)).append("\n"); + sb.append(" zipcodetype: ").append(toIndentedString(zipcodetype)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append(" lattitude: ").append(toIndentedString(lattitude)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" lctn: ").append(toIndentedString(lctn)).append("\n"); + sb.append(" createduser: ").append(toIndentedString(createduser)).append("\n"); + sb.append(" createddate: ").append(toIndentedString(createddate)).append("\n"); + sb.append(" statusid: ").append(toIndentedString(statusid)).append("\n"); + sb.append(" registeredapp: ").append(toIndentedString(registeredapp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOf.java b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOf.java new file mode 100644 index 0000000..f081750 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOf.java @@ -0,0 +1,303 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ZipCodeUSAllOf + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-08T19:06:19.024256500-05:00[America/Chicago]") +public class ZipCodeUSAllOf { + public static final String SERIALIZED_NAME_ZIPCODEID = "zipcodeid"; + @SerializedName(SERIALIZED_NAME_ZIPCODEID) + private Integer zipcodeid; + + public static final String SERIALIZED_NAME_ZIPCODE = "zipcode"; + @SerializedName(SERIALIZED_NAME_ZIPCODE) + private String zipcode; + + public static final String SERIALIZED_NAME_ZIPCODETYPE = "zipcodetype"; + @SerializedName(SERIALIZED_NAME_ZIPCODETYPE) + private String zipcodetype; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + private String city; + + public static final String SERIALIZED_NAME_STATECODE = "statecode"; + @SerializedName(SERIALIZED_NAME_STATECODE) + private String statecode; + + public static final String SERIALIZED_NAME_LATTITUDE = "lattitude"; + @SerializedName(SERIALIZED_NAME_LATTITUDE) + private String lattitude; + + public static final String SERIALIZED_NAME_LONGITUDE = "longitude"; + @SerializedName(SERIALIZED_NAME_LONGITUDE) + private String longitude; + + public static final String SERIALIZED_NAME_LCTN = "lctn"; + @SerializedName(SERIALIZED_NAME_LCTN) + private String lctn; + + public ZipCodeUSAllOf() { + } + + public ZipCodeUSAllOf zipcodeid(Integer zipcodeid) { + + this.zipcodeid = zipcodeid; + return this; + } + + /** + * placeholder + * @return zipcodeid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public Integer getZipcodeid() { + return zipcodeid; + } + + + public void setZipcodeid(Integer zipcodeid) { + this.zipcodeid = zipcodeid; + } + + + public ZipCodeUSAllOf zipcode(String zipcode) { + + this.zipcode = zipcode; + return this; + } + + /** + * placeholder + * @return zipcode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getZipcode() { + return zipcode; + } + + + public void setZipcode(String zipcode) { + this.zipcode = zipcode; + } + + + public ZipCodeUSAllOf zipcodetype(String zipcodetype) { + + this.zipcodetype = zipcodetype; + return this; + } + + /** + * placeholder + * @return zipcodetype + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getZipcodetype() { + return zipcodetype; + } + + + public void setZipcodetype(String zipcodetype) { + this.zipcodetype = zipcodetype; + } + + + public ZipCodeUSAllOf city(String city) { + + this.city = city; + return this; + } + + /** + * placeholder + * @return city + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getCity() { + return city; + } + + + public void setCity(String city) { + this.city = city; + } + + + public ZipCodeUSAllOf statecode(String statecode) { + + this.statecode = statecode; + return this; + } + + /** + * placeholder + * @return statecode + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getStatecode() { + return statecode; + } + + + public void setStatecode(String statecode) { + this.statecode = statecode; + } + + + public ZipCodeUSAllOf lattitude(String lattitude) { + + this.lattitude = lattitude; + return this; + } + + /** + * placeholder + * @return lattitude + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLattitude() { + return lattitude; + } + + + public void setLattitude(String lattitude) { + this.lattitude = lattitude; + } + + + public ZipCodeUSAllOf longitude(String longitude) { + + this.longitude = longitude; + return this; + } + + /** + * placeholder + * @return longitude + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLongitude() { + return longitude; + } + + + public void setLongitude(String longitude) { + this.longitude = longitude; + } + + + public ZipCodeUSAllOf lctn(String lctn) { + + this.lctn = lctn; + return this; + } + + /** + * placeholder + * @return lctn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "placeholder") + + public String getLctn() { + return lctn; + } + + + public void setLctn(String lctn) { + this.lctn = lctn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ZipCodeUSAllOf zipCodeUSAllOf = (ZipCodeUSAllOf) o; + return Objects.equals(this.zipcodeid, zipCodeUSAllOf.zipcodeid) && + Objects.equals(this.zipcode, zipCodeUSAllOf.zipcode) && + Objects.equals(this.zipcodetype, zipCodeUSAllOf.zipcodetype) && + Objects.equals(this.city, zipCodeUSAllOf.city) && + Objects.equals(this.statecode, zipCodeUSAllOf.statecode) && + Objects.equals(this.lattitude, zipCodeUSAllOf.lattitude) && + Objects.equals(this.longitude, zipCodeUSAllOf.longitude) && + Objects.equals(this.lctn, zipCodeUSAllOf.lctn); + } + + @Override + public int hashCode() { + return Objects.hash(zipcodeid, zipcode, zipcodetype, city, statecode, lattitude, longitude, lctn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ZipCodeUSAllOf {\n"); + sb.append(" zipcodeid: ").append(toIndentedString(zipcodeid)).append("\n"); + sb.append(" zipcode: ").append(toIndentedString(zipcode)).append("\n"); + sb.append(" zipcodetype: ").append(toIndentedString(zipcodetype)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" statecode: ").append(toIndentedString(statecode)).append("\n"); + sb.append(" lattitude: ").append(toIndentedString(lattitude)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" lctn: ").append(toIndentedString(lctn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/DataTier-APIs/Java-Client/src/main/AndroidManifest.xml b/DataTier-APIs/Java-Client/src/main/AndroidManifest.xml new file mode 100644 index 0000000..b77abb5 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/DataTier-APIs/Java-Client/src/main/openapi/query_api.yaml b/DataTier-APIs/Java-Client/src/main/openapi/query_api.yaml new file mode 100644 index 0000000..06f325e --- /dev/null +++ b/DataTier-APIs/Java-Client/src/main/openapi/query_api.yaml @@ -0,0 +1,527 @@ +openapi: 3.0.2 +info: + title: Query API + description: A list of get API calls that allows for pulling data + license: + name: Parent Project License (Apache 2.0 License) + url: https://github.com/Project-Herophilus/DataSynthesis/blob/main/LICENSE + contact: + name: A helpful contact + url: https://github.com/Project-Herophilus/DataSynthesis/issues + version: '1.0' +servers: + - url: http://localhost:3001/api/querydata +paths: + /datamodel/datatables: + summary: skd + get: + operationId: getDataModelDataTables + summary: Retrieves data about data tables + responses: + '200': + $ref: '#/components/responses/tableInfoResponse' + /datamodel/datadomain: + get: + operationId: getDataDomain + summary: Retrieves data domain information + responses: + '200': + $ref: '#/components/responses/dataDomainResponse' + /dataexisting/ababanking: + get: + operationId: getAbaBankingInformation + summary: Retrieves abaBanking information + responses: + '200': + $ref: '#/components/responses/ababankingResponse' + /dataexisting/ababanking/{statecode}: + get: + operationId: getAbaBankingInformationWithStateCode + summary: Retrieves abaBanking information + responses: + '200': + $ref: '#/components/responses/ababankingResponse' + parameters: + - $ref: '#/components/parameters/statecode' + /dataexisting/areacode: + get: + operationId: getAreaCodes + summary: Retrieves data about area codes + responses: + '200': + $ref: '#/components/responses/areaCodeListResponse' + /dataexisting/areacode/{statecode}: + get: + operationId: getAreaCodeWithStateCode + summary: Retrieves data about area codes + responses: + '200': + $ref: '#/components/responses/areaCodeListResponse' + parameters: + - $ref: '#/components/parameters/statecode' + /dataexisting/companies: + get: + operationId: getCompanies + summary: Retrieves data about companies + responses: + '200': + $ref: '#/components/responses/companyListResponse' + /dataexisting/companies/{companyname}: + get: + operationId: getCompaniesByCompanyName + summary: Retrieves data about companies + responses: + '200': + $ref: '#/components/responses/companyListResponse' + parameters: + - $ref: '#/components/parameters/companyname' + /dataexisting/namefirst/{firstnamelike}/{gender}: + get: + operationId: getFirstNameWithFirstNameAndGender + summary: Retrieves data about firstnames + responses: + '200': + $ref: '#/components/responses/firstNameListResponse' + parameters: + - $ref: '#/components/parameters/firstnamelike' + - $ref: '#/components/parameters/gender' + /dataexisting/namefirst{likename}: + get: + operationId: getFirstNameWithFirstNameLike + summary: Retrieves data about firstnames + responses: + '200': + $ref: '#/components/responses/firstNameListResponse' + parameters: + - $ref: '#/components/parameters/likename' + /dataexisting/namefirst: + get: + operationId: getFirstNames + summary: Retrieves data about firstnames + responses: + '200': + $ref: '#/components/responses/firstNameListResponse' + /dataexisting/namelast/{lastnamematch}: + get: + operationId: getLastNameWithMatch + summary: Retrieves data about lastnames + responses: + '200': + $ref: '#/components/responses/lastNameListResponse' + parameters: + - $ref: '#/components/parameters/lastnamematch' + /dataexisting/namelast: + get: + operationId: getLastName + summary: Retrieves data about lastnames + responses: + '200': + $ref: '#/components/responses/lastNameListResponse' + /dataexisting/upccodes: + get: + operationId: getUPCCodes + summary: Retrieves data about upc codes + responses: + '200': + $ref: '#/components/responses/upcCodesListResponse' + /dataexisting/upccodes/{productnamematch}: + get: + operationId: getUPCCodesWithProductNameMatch + summary: Retrieves data about upc codes + responses: + '200': + $ref: '#/components/responses/upcCodesListResponse' + parameters: + - $ref: '#/components/parameters/productnamematch' + /dataexisting/zipcodeus: + get: + operationId: getZipCodesUS + summary: Retrieves data about zipCodes in US + responses: + '200': + $ref: '#/components/responses/zipCodeUSListResponse' + /dataexisting/zipcodeus/{statecode}: + get: + operationId: getZipCodesUSWithStateCode + summary: Retrieves data about zipCodes in US with State Code + responses: + '200': + $ref: '#/components/responses/zipCodeUSListResponse' + parameters: + - $ref: '#/components/parameters/statecode' +components: + schemas: + dataTableInfoRecord: + title: Root Type for datatableInfoRecord + description: '' + type: object + properties: + tablename: + type: string + tableinformation: + type: string + example: + tablename: ATable + tableinformation: This is a description of the table + queryResponseSharedFields: + type: object + properties: + command: + type: string + rowCount: + type: integer + datamodelRecord: + description: '' + required: + - domainname + - statusid + type: object + properties: + domainname: + description: '' + type: string + domaininformation: + description: '' + type: string + statusid: + description: '' + type: integer + createddate: + format: date-time + description: '' + type: string + baseAuditRecord: + description: '' + type: object + properties: + createddate: + format: date-time + description: '' + type: string + statusid: + description: '' + type: integer + registeredapp: + description: '' + type: string + baseAuditRecordWithUser: + description: '' + type: object + allOf: + - type: object + properties: + createduser: + description: '' + type: string + - $ref: '#/components/schemas/baseAuditRecord' + abaBankingRecord: + description: '' + type: object + allOf: + - type: object + properties: + ababankingid: + description: I think this might be an integer?! + type: integer + routingnumber: + description: '' + type: string + telegraphicname: + description: '' + type: string + customername: + description: '' + type: string + city: + description: '' + type: string + statecode: + description: '' + type: string + zipcode: + description: '' + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + areaCode: + description: '' + type: object + allOf: + - type: object + properties: + areacodeid: + description: placeholder + type: integer + areacodevalue: + description: placeholder + type: string + timezone: + description: placeholder + type: string + statecode: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + company: + description: '' + type: object + allOf: + - type: object + properties: + companiesid: + description: placeholder + type: integer + companiesname: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + firstName: + description: '' + type: object + allOf: + - type: object + properties: + firstnameid: + description: placeholder + type: integer + firstname: + description: placeholder + type: string + gender: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + lastName: + description: '' + type: object + allOf: + - type: object + properties: + lastnameid: + description: placeholder + type: integer + lastname: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + upcCode: + description: '' + type: object + allOf: + - type: object + properties: + upccodeid: + description: placeholder + type: integer + upccodename: + description: placeholder + type: string + upcproductname: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + zipCodeUS: + description: '' + type: object + allOf: + - type: object + properties: + zipcodeid: + description: placeholder + type: integer + zipcode: + description: placeholder + type: string + zipcodetype: + description: placeholder + type: string + city: + description: placeholder + type: string + statecode: + description: placeholder + type: string + lattitude: + description: placeholder + type: string + longitude: + description: placeholder + type: string + lctn: + description: placeholder + type: string + - $ref: '#/components/schemas/baseAuditRecordWithUser' + responses: + tableInfoResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/dataTableInfoRecord' + - $ref: '#/components/schemas/queryResponseSharedFields' + examples: + Example DataTables Response: + value: + command: Select + rowCount: 2 + rows: + - tablename: auditing_dataplatform + tableinformation: >- + Platform Auditing - Data Requests Made from Within the + Platform + - tablename: auditing_datarequest + tableinformation: Platform Auditing - Data Requests Made within the platform + description: This Query Reponse contains information about data tables. + dataDomainResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/datamodelRecord' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + ababankingResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/abaBankingRecord' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + areaCodeListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/areaCode' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + companyListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/company' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + firstNameListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/firstName' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: |- + A response + With Multiple lines + lastNameListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/lastName' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + upcCodesListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/upcCode' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + zipCodeUSListResponse: + content: + application/json: + schema: + type: object + allOf: + - properties: + rows: + type: array + items: + $ref: '#/components/schemas/zipCodeUS' + - $ref: '#/components/schemas/queryResponseSharedFields' + description: '' + parameters: + statecode: + name: statecode + schema: + type: string + in: path + required: true + companyname: + name: companyname + schema: + type: string + in: path + required: true + firstnamelike: + name: firstnamelike + schema: + type: string + in: path + required: true + gender: + name: gender + schema: + type: string + in: path + required: true + likename: + name: likename + schema: + type: string + in: path + required: true + lastnamematch: + name: lastnamematch + schema: + type: string + in: path + required: true + productnamematch: + name: productnamematch + schema: + type: string + in: path + required: true diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApiTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApiTest.java new file mode 100644 index 0000000..eb625eb --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApiTest.java @@ -0,0 +1,282 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.api; + +import io.connectedhealth.idaas.datasynthesis.javaclient.ApiException; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.QueryResponseSharedFields; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DefaultApi + */ +@Ignore +public class DefaultApiTest { + + private final DefaultApi api = new DefaultApi(); + + + /** + * Retrieves abaBanking information + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAbaBankingInformationTest() throws ApiException { + Object response = api.getAbaBankingInformation(); + // TODO: test validations + } + + /** + * Retrieves abaBanking information + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAbaBankingInformationWithStateCodeTest() throws ApiException { + String statecode = null; + Object response = api.getAbaBankingInformationWithStateCode(statecode); + // TODO: test validations + } + + /** + * Retrieves data about area codes + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAreaCodeWithStateCodeTest() throws ApiException { + String statecode = null; + Object response = api.getAreaCodeWithStateCode(statecode); + // TODO: test validations + } + + /** + * Retrieves data about area codes + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAreaCodesTest() throws ApiException { + Object response = api.getAreaCodes(); + // TODO: test validations + } + + /** + * Retrieves data about companies + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCompaniesTest() throws ApiException { + Object response = api.getCompanies(); + // TODO: test validations + } + + /** + * Retrieves data about companies + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCompaniesByCompanyNameTest() throws ApiException { + String companyname = null; + Object response = api.getCompaniesByCompanyName(companyname); + // TODO: test validations + } + + /** + * Retrieves data domain information + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDataDomainTest() throws ApiException { + Object response = api.getDataDomain(); + // TODO: test validations + } + + /** + * Retrieves data about data tables + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDataModelDataTablesTest() throws ApiException { + Object response = api.getDataModelDataTables(); + // TODO: test validations + } + + /** + * Retrieves data about firstnames + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFirstNameWithFirstNameAndGenderTest() throws ApiException { + String firstnamelike = null; + String gender = null; + Object response = api.getFirstNameWithFirstNameAndGender(firstnamelike, gender); + // TODO: test validations + } + + /** + * Retrieves data about firstnames + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFirstNameWithFirstNameLikeTest() throws ApiException { + String likename = null; + Object response = api.getFirstNameWithFirstNameLike(likename); + // TODO: test validations + } + + /** + * Retrieves data about firstnames + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFirstNamesTest() throws ApiException { + Object response = api.getFirstNames(); + // TODO: test validations + } + + /** + * Retrieves data about lastnames + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getLastNameTest() throws ApiException { + Object response = api.getLastName(); + // TODO: test validations + } + + /** + * Retrieves data about lastnames + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getLastNameWithMatchTest() throws ApiException { + String lastnamematch = null; + Object response = api.getLastNameWithMatch(lastnamematch); + // TODO: test validations + } + + /** + * Retrieves data about upc codes + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUPCCodesTest() throws ApiException { + Object response = api.getUPCCodes(); + // TODO: test validations + } + + /** + * Retrieves data about upc codes + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUPCCodesWithProductNameMatchTest() throws ApiException { + String productnamematch = null; + Object response = api.getUPCCodesWithProductNameMatch(productnamematch); + // TODO: test validations + } + + /** + * Retrieves data about zipCodes in US + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getZipCodesUSTest() throws ApiException { + Object response = api.getZipCodesUS(); + // TODO: test validations + } + + /** + * Retrieves data about zipCodes in US with State Code + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getZipCodesUSWithStateCodeTest() throws ApiException { + String statecode = null; + Object response = api.getZipCodesUSWithStateCode(statecode); + // TODO: test validations + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOfTest.java new file mode 100644 index 0000000..0d51c8d --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOfTest.java @@ -0,0 +1,99 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AbaBankingRecordAllOf + */ +public class AbaBankingRecordAllOfTest { + private final AbaBankingRecordAllOf model = new AbaBankingRecordAllOf(); + + /** + * Model tests for AbaBankingRecordAllOf + */ + @Test + public void testAbaBankingRecordAllOf() { + // TODO: test AbaBankingRecordAllOf + } + + /** + * Test the property 'ababankingid' + */ + @Test + public void ababankingidTest() { + // TODO: test ababankingid + } + + /** + * Test the property 'routingnumber' + */ + @Test + public void routingnumberTest() { + // TODO: test routingnumber + } + + /** + * Test the property 'telegraphicname' + */ + @Test + public void telegraphicnameTest() { + // TODO: test telegraphicname + } + + /** + * Test the property 'customername' + */ + @Test + public void customernameTest() { + // TODO: test customername + } + + /** + * Test the property 'city' + */ + @Test + public void cityTest() { + // TODO: test city + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + + /** + * Test the property 'zipcode' + */ + @Test + public void zipcodeTest() { + // TODO: test zipcode + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordTest.java new file mode 100644 index 0000000..4d13227 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordTest.java @@ -0,0 +1,134 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.AbaBankingRecordAllOf; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AbaBankingRecord + */ +public class AbaBankingRecordTest { + private final AbaBankingRecord model = new AbaBankingRecord(); + + /** + * Model tests for AbaBankingRecord + */ + @Test + public void testAbaBankingRecord() { + // TODO: test AbaBankingRecord + } + + /** + * Test the property 'ababankingid' + */ + @Test + public void ababankingidTest() { + // TODO: test ababankingid + } + + /** + * Test the property 'routingnumber' + */ + @Test + public void routingnumberTest() { + // TODO: test routingnumber + } + + /** + * Test the property 'telegraphicname' + */ + @Test + public void telegraphicnameTest() { + // TODO: test telegraphicname + } + + /** + * Test the property 'customername' + */ + @Test + public void customernameTest() { + // TODO: test customername + } + + /** + * Test the property 'city' + */ + @Test + public void cityTest() { + // TODO: test city + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + + /** + * Test the property 'zipcode' + */ + @Test + public void zipcodeTest() { + // TODO: test zipcode + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOfTest.java new file mode 100644 index 0000000..9b4f4ee --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOfTest.java @@ -0,0 +1,75 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AreaCodeAllOf + */ +public class AreaCodeAllOfTest { + private final AreaCodeAllOf model = new AreaCodeAllOf(); + + /** + * Model tests for AreaCodeAllOf + */ + @Test + public void testAreaCodeAllOf() { + // TODO: test AreaCodeAllOf + } + + /** + * Test the property 'areacodeid' + */ + @Test + public void areacodeidTest() { + // TODO: test areacodeid + } + + /** + * Test the property 'areacodevalue' + */ + @Test + public void areacodevalueTest() { + // TODO: test areacodevalue + } + + /** + * Test the property 'timezone' + */ + @Test + public void timezoneTest() { + // TODO: test timezone + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeTest.java new file mode 100644 index 0000000..71b622e --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeTest.java @@ -0,0 +1,110 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.AreaCodeAllOf; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AreaCode + */ +public class AreaCodeTest { + private final AreaCode model = new AreaCode(); + + /** + * Model tests for AreaCode + */ + @Test + public void testAreaCode() { + // TODO: test AreaCode + } + + /** + * Test the property 'areacodeid' + */ + @Test + public void areacodeidTest() { + // TODO: test areacodeid + } + + /** + * Test the property 'areacodevalue' + */ + @Test + public void areacodevalueTest() { + // TODO: test areacodevalue + } + + /** + * Test the property 'timezone' + */ + @Test + public void timezoneTest() { + // TODO: test timezone + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordTest.java new file mode 100644 index 0000000..d9ded7e --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordTest.java @@ -0,0 +1,68 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BaseAuditRecord + */ +public class BaseAuditRecordTest { + private final BaseAuditRecord model = new BaseAuditRecord(); + + /** + * Model tests for BaseAuditRecord + */ + @Test + public void testBaseAuditRecord() { + // TODO: test BaseAuditRecord + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOfTest.java new file mode 100644 index 0000000..2e64033 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOfTest.java @@ -0,0 +1,51 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BaseAuditRecordWithUserAllOf + */ +public class BaseAuditRecordWithUserAllOfTest { + private final BaseAuditRecordWithUserAllOf model = new BaseAuditRecordWithUserAllOf(); + + /** + * Model tests for BaseAuditRecordWithUserAllOf + */ + @Test + public void testBaseAuditRecordWithUserAllOf() { + // TODO: test BaseAuditRecordWithUserAllOf + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserTest.java new file mode 100644 index 0000000..1669783 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserTest.java @@ -0,0 +1,78 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecord; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUserAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BaseAuditRecordWithUser + */ +public class BaseAuditRecordWithUserTest { + private final BaseAuditRecordWithUser model = new BaseAuditRecordWithUser(); + + /** + * Model tests for BaseAuditRecordWithUser + */ + @Test + public void testBaseAuditRecordWithUser() { + // TODO: test BaseAuditRecordWithUser + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOfTest.java new file mode 100644 index 0000000..8e8234f --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOfTest.java @@ -0,0 +1,59 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CompanyAllOf + */ +public class CompanyAllOfTest { + private final CompanyAllOf model = new CompanyAllOf(); + + /** + * Model tests for CompanyAllOf + */ + @Test + public void testCompanyAllOf() { + // TODO: test CompanyAllOf + } + + /** + * Test the property 'companiesid' + */ + @Test + public void companiesidTest() { + // TODO: test companiesid + } + + /** + * Test the property 'companiesname' + */ + @Test + public void companiesnameTest() { + // TODO: test companiesname + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyTest.java new file mode 100644 index 0000000..4d4552f --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyTest.java @@ -0,0 +1,94 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.CompanyAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Company + */ +public class CompanyTest { + private final Company model = new Company(); + + /** + * Model tests for Company + */ + @Test + public void testCompany() { + // TODO: test Company + } + + /** + * Test the property 'companiesid' + */ + @Test + public void companiesidTest() { + // TODO: test companiesid + } + + /** + * Test the property 'companiesname' + */ + @Test + public void companiesnameTest() { + // TODO: test companiesname + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecordTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecordTest.java new file mode 100644 index 0000000..e299448 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecordTest.java @@ -0,0 +1,59 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DataTableInfoRecord + */ +public class DataTableInfoRecordTest { + private final DataTableInfoRecord model = new DataTableInfoRecord(); + + /** + * Model tests for DataTableInfoRecord + */ + @Test + public void testDataTableInfoRecord() { + // TODO: test DataTableInfoRecord + } + + /** + * Test the property 'tablename' + */ + @Test + public void tablenameTest() { + // TODO: test tablename + } + + /** + * Test the property 'tableinformation' + */ + @Test + public void tableinformationTest() { + // TODO: test tableinformation + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecordTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecordTest.java new file mode 100644 index 0000000..67d68fa --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecordTest.java @@ -0,0 +1,76 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DatamodelRecord + */ +public class DatamodelRecordTest { + private final DatamodelRecord model = new DatamodelRecord(); + + /** + * Model tests for DatamodelRecord + */ + @Test + public void testDatamodelRecord() { + // TODO: test DatamodelRecord + } + + /** + * Test the property 'domainname' + */ + @Test + public void domainnameTest() { + // TODO: test domainname + } + + /** + * Test the property 'domaininformation' + */ + @Test + public void domaininformationTest() { + // TODO: test domaininformation + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOfTest.java new file mode 100644 index 0000000..da57945 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOfTest.java @@ -0,0 +1,67 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FirstNameAllOf + */ +public class FirstNameAllOfTest { + private final FirstNameAllOf model = new FirstNameAllOf(); + + /** + * Model tests for FirstNameAllOf + */ + @Test + public void testFirstNameAllOf() { + // TODO: test FirstNameAllOf + } + + /** + * Test the property 'firstnameid' + */ + @Test + public void firstnameidTest() { + // TODO: test firstnameid + } + + /** + * Test the property 'firstname' + */ + @Test + public void firstnameTest() { + // TODO: test firstname + } + + /** + * Test the property 'gender' + */ + @Test + public void genderTest() { + // TODO: test gender + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameTest.java new file mode 100644 index 0000000..b0137fc --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameTest.java @@ -0,0 +1,102 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.FirstNameAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FirstName + */ +public class FirstNameTest { + private final FirstName model = new FirstName(); + + /** + * Model tests for FirstName + */ + @Test + public void testFirstName() { + // TODO: test FirstName + } + + /** + * Test the property 'firstnameid' + */ + @Test + public void firstnameidTest() { + // TODO: test firstnameid + } + + /** + * Test the property 'firstname' + */ + @Test + public void firstnameTest() { + // TODO: test firstname + } + + /** + * Test the property 'gender' + */ + @Test + public void genderTest() { + // TODO: test gender + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOfTest.java new file mode 100644 index 0000000..56cbee7 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOfTest.java @@ -0,0 +1,59 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for LastNameAllOf + */ +public class LastNameAllOfTest { + private final LastNameAllOf model = new LastNameAllOf(); + + /** + * Model tests for LastNameAllOf + */ + @Test + public void testLastNameAllOf() { + // TODO: test LastNameAllOf + } + + /** + * Test the property 'lastnameid' + */ + @Test + public void lastnameidTest() { + // TODO: test lastnameid + } + + /** + * Test the property 'lastname' + */ + @Test + public void lastnameTest() { + // TODO: test lastname + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameTest.java new file mode 100644 index 0000000..76475af --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameTest.java @@ -0,0 +1,94 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.LastNameAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for LastName + */ +public class LastNameTest { + private final LastName model = new LastName(); + + /** + * Model tests for LastName + */ + @Test + public void testLastName() { + // TODO: test LastName + } + + /** + * Test the property 'lastnameid' + */ + @Test + public void lastnameidTest() { + // TODO: test lastnameid + } + + /** + * Test the property 'lastname' + */ + @Test + public void lastnameTest() { + // TODO: test lastname + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFieldsTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFieldsTest.java new file mode 100644 index 0000000..949136b --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFieldsTest.java @@ -0,0 +1,59 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for QueryResponseSharedFields + */ +public class QueryResponseSharedFieldsTest { + private final QueryResponseSharedFields model = new QueryResponseSharedFields(); + + /** + * Model tests for QueryResponseSharedFields + */ + @Test + public void testQueryResponseSharedFields() { + // TODO: test QueryResponseSharedFields + } + + /** + * Test the property 'command' + */ + @Test + public void commandTest() { + // TODO: test command + } + + /** + * Test the property 'rowCount' + */ + @Test + public void rowCountTest() { + // TODO: test rowCount + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOfTest.java new file mode 100644 index 0000000..4703079 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOfTest.java @@ -0,0 +1,67 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UpcCodeAllOf + */ +public class UpcCodeAllOfTest { + private final UpcCodeAllOf model = new UpcCodeAllOf(); + + /** + * Model tests for UpcCodeAllOf + */ + @Test + public void testUpcCodeAllOf() { + // TODO: test UpcCodeAllOf + } + + /** + * Test the property 'upccodeid' + */ + @Test + public void upccodeidTest() { + // TODO: test upccodeid + } + + /** + * Test the property 'upccodename' + */ + @Test + public void upccodenameTest() { + // TODO: test upccodename + } + + /** + * Test the property 'upcproductname' + */ + @Test + public void upcproductnameTest() { + // TODO: test upcproductname + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeTest.java new file mode 100644 index 0000000..afa5727 --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeTest.java @@ -0,0 +1,102 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.UpcCodeAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UpcCode + */ +public class UpcCodeTest { + private final UpcCode model = new UpcCode(); + + /** + * Model tests for UpcCode + */ + @Test + public void testUpcCode() { + // TODO: test UpcCode + } + + /** + * Test the property 'upccodeid' + */ + @Test + public void upccodeidTest() { + // TODO: test upccodeid + } + + /** + * Test the property 'upccodename' + */ + @Test + public void upccodenameTest() { + // TODO: test upccodename + } + + /** + * Test the property 'upcproductname' + */ + @Test + public void upcproductnameTest() { + // TODO: test upcproductname + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOfTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOfTest.java new file mode 100644 index 0000000..c04a26f --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOfTest.java @@ -0,0 +1,107 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ZipCodeUSAllOf + */ +public class ZipCodeUSAllOfTest { + private final ZipCodeUSAllOf model = new ZipCodeUSAllOf(); + + /** + * Model tests for ZipCodeUSAllOf + */ + @Test + public void testZipCodeUSAllOf() { + // TODO: test ZipCodeUSAllOf + } + + /** + * Test the property 'zipcodeid' + */ + @Test + public void zipcodeidTest() { + // TODO: test zipcodeid + } + + /** + * Test the property 'zipcode' + */ + @Test + public void zipcodeTest() { + // TODO: test zipcode + } + + /** + * Test the property 'zipcodetype' + */ + @Test + public void zipcodetypeTest() { + // TODO: test zipcodetype + } + + /** + * Test the property 'city' + */ + @Test + public void cityTest() { + // TODO: test city + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + + /** + * Test the property 'lattitude' + */ + @Test + public void lattitudeTest() { + // TODO: test lattitude + } + + /** + * Test the property 'longitude' + */ + @Test + public void longitudeTest() { + // TODO: test longitude + } + + /** + * Test the property 'lctn' + */ + @Test + public void lctnTest() { + // TODO: test lctn + } + +} diff --git a/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSTest.java b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSTest.java new file mode 100644 index 0000000..f2fd69c --- /dev/null +++ b/DataTier-APIs/Java-Client/src/test/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSTest.java @@ -0,0 +1,142 @@ +/* + * Query API + * A list of get API calls that allows for pulling data + * + * The version of the OpenAPI document: 1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.connectedhealth.idaas.datasynthesis.javaclient.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.BaseAuditRecordWithUser; +import io.connectedhealth.idaas.datasynthesis.javaclient.model.ZipCodeUSAllOf; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ZipCodeUS + */ +public class ZipCodeUSTest { + private final ZipCodeUS model = new ZipCodeUS(); + + /** + * Model tests for ZipCodeUS + */ + @Test + public void testZipCodeUS() { + // TODO: test ZipCodeUS + } + + /** + * Test the property 'zipcodeid' + */ + @Test + public void zipcodeidTest() { + // TODO: test zipcodeid + } + + /** + * Test the property 'zipcode' + */ + @Test + public void zipcodeTest() { + // TODO: test zipcode + } + + /** + * Test the property 'zipcodetype' + */ + @Test + public void zipcodetypeTest() { + // TODO: test zipcodetype + } + + /** + * Test the property 'city' + */ + @Test + public void cityTest() { + // TODO: test city + } + + /** + * Test the property 'statecode' + */ + @Test + public void statecodeTest() { + // TODO: test statecode + } + + /** + * Test the property 'lattitude' + */ + @Test + public void lattitudeTest() { + // TODO: test lattitude + } + + /** + * Test the property 'longitude' + */ + @Test + public void longitudeTest() { + // TODO: test longitude + } + + /** + * Test the property 'lctn' + */ + @Test + public void lctnTest() { + // TODO: test lctn + } + + /** + * Test the property 'createduser' + */ + @Test + public void createduserTest() { + // TODO: test createduser + } + + /** + * Test the property 'createddate' + */ + @Test + public void createddateTest() { + // TODO: test createddate + } + + /** + * Test the property 'statusid' + */ + @Test + public void statusidTest() { + // TODO: test statusid + } + + /** + * Test the property 'registeredapp' + */ + @Test + public void registeredappTest() { + // TODO: test registeredapp + } + +}