diff --git a/sdks/java/.openapi-generator/FILES b/sdks/java/.openapi-generator/FILES index 06cc6e9d..a3f1228a 100644 --- a/sdks/java/.openapi-generator/FILES +++ b/sdks/java/.openapi-generator/FILES @@ -114,10 +114,12 @@ docs/EntityHeader.md docs/ErrorResponse.md docs/EurekaDataSourceSuggestionResponse.md docs/EurekaDecomposeQueryResponse.md +docs/EurekaGetNLInstructionsResponse.md docs/EurekaGetRelevantQuestionsResponse.md docs/EurekaLLMDecomposeQueryResponse.md docs/EurekaLLMSuggestedQuery.md docs/EurekaRelevantQuestion.md +docs/EurekaSetNLInstructionsResponse.md docs/EventChannelConfig.md docs/EventChannelConfigInput.md docs/ExcludeMetadataListItemInput.md @@ -151,6 +153,7 @@ docs/GetAsyncImportStatusResponse.md docs/GetCustomAccessTokenRequest.md docs/GetDataSourceSuggestionsRequest.md docs/GetFullAccessTokenRequest.md +docs/GetNLInstructionsRequest.md docs/GetObjectAccessTokenRequest.md docs/GetRelevantQuestionsRequest.md docs/GetTokenResponse.md @@ -191,6 +194,8 @@ docs/MetadataResponse.md docs/MetadataSearchResponse.md docs/MetadataSearchSortOptions.md docs/ModelTableList.md +docs/NLInstructionsInfo.md +docs/NLInstructionsInfoInput.md docs/ObjectIDAndName.md docs/Org.md docs/OrgChannelConfigInput.md @@ -284,6 +289,7 @@ docs/SendAgentMessageRequest.md docs/SendAgentMessageResponse.md docs/SendAgentMessageStreamingRequest.md docs/SendMessageRequest.md +docs/SetNLInstructionsRequest.md docs/ShareMetadataRequest.md docs/ShareMetadataTypeInput.md docs/SharePermissionsInput.md @@ -350,6 +356,7 @@ docs/VariableDetailInput.md docs/VariableUpdateAssignmentInput.md docs/VariableUpdateScopeInput.md docs/VariableValue.md +docs/VariableValues.md docs/VersionControlApi.md docs/WebhookAuthApiKey.md docs/WebhookAuthApiKeyInput.md @@ -527,10 +534,12 @@ src/main/java/com/thoughtspot/client/model/EntityHeader.java src/main/java/com/thoughtspot/client/model/ErrorResponse.java src/main/java/com/thoughtspot/client/model/EurekaDataSourceSuggestionResponse.java src/main/java/com/thoughtspot/client/model/EurekaDecomposeQueryResponse.java +src/main/java/com/thoughtspot/client/model/EurekaGetNLInstructionsResponse.java src/main/java/com/thoughtspot/client/model/EurekaGetRelevantQuestionsResponse.java src/main/java/com/thoughtspot/client/model/EurekaLLMDecomposeQueryResponse.java src/main/java/com/thoughtspot/client/model/EurekaLLMSuggestedQuery.java src/main/java/com/thoughtspot/client/model/EurekaRelevantQuestion.java +src/main/java/com/thoughtspot/client/model/EurekaSetNLInstructionsResponse.java src/main/java/com/thoughtspot/client/model/EventChannelConfig.java src/main/java/com/thoughtspot/client/model/EventChannelConfigInput.java src/main/java/com/thoughtspot/client/model/ExcludeMetadataListItemInput.java @@ -564,6 +573,7 @@ src/main/java/com/thoughtspot/client/model/GetAsyncImportStatusResponse.java src/main/java/com/thoughtspot/client/model/GetCustomAccessTokenRequest.java src/main/java/com/thoughtspot/client/model/GetDataSourceSuggestionsRequest.java src/main/java/com/thoughtspot/client/model/GetFullAccessTokenRequest.java +src/main/java/com/thoughtspot/client/model/GetNLInstructionsRequest.java src/main/java/com/thoughtspot/client/model/GetObjectAccessTokenRequest.java src/main/java/com/thoughtspot/client/model/GetRelevantQuestionsRequest.java src/main/java/com/thoughtspot/client/model/GetTokenResponse.java @@ -601,6 +611,8 @@ src/main/java/com/thoughtspot/client/model/MetadataResponse.java src/main/java/com/thoughtspot/client/model/MetadataSearchResponse.java src/main/java/com/thoughtspot/client/model/MetadataSearchSortOptions.java src/main/java/com/thoughtspot/client/model/ModelTableList.java +src/main/java/com/thoughtspot/client/model/NLInstructionsInfo.java +src/main/java/com/thoughtspot/client/model/NLInstructionsInfoInput.java src/main/java/com/thoughtspot/client/model/ObjectIDAndName.java src/main/java/com/thoughtspot/client/model/Org.java src/main/java/com/thoughtspot/client/model/OrgChannelConfigInput.java @@ -689,6 +701,7 @@ src/main/java/com/thoughtspot/client/model/SendAgentMessageRequest.java src/main/java/com/thoughtspot/client/model/SendAgentMessageResponse.java src/main/java/com/thoughtspot/client/model/SendAgentMessageStreamingRequest.java src/main/java/com/thoughtspot/client/model/SendMessageRequest.java +src/main/java/com/thoughtspot/client/model/SetNLInstructionsRequest.java src/main/java/com/thoughtspot/client/model/ShareMetadataRequest.java src/main/java/com/thoughtspot/client/model/ShareMetadataTypeInput.java src/main/java/com/thoughtspot/client/model/SharePermissionsInput.java @@ -750,6 +763,7 @@ src/main/java/com/thoughtspot/client/model/VariableDetailInput.java src/main/java/com/thoughtspot/client/model/VariableUpdateAssignmentInput.java src/main/java/com/thoughtspot/client/model/VariableUpdateScopeInput.java src/main/java/com/thoughtspot/client/model/VariableValue.java +src/main/java/com/thoughtspot/client/model/VariableValues.java src/main/java/com/thoughtspot/client/model/WebhookAuthApiKey.java src/main/java/com/thoughtspot/client/model/WebhookAuthApiKeyInput.java src/main/java/com/thoughtspot/client/model/WebhookAuthBasicAuth.java @@ -892,10 +906,12 @@ src/test/java/com/thoughtspot/client/model/EntityHeaderTest.java src/test/java/com/thoughtspot/client/model/ErrorResponseTest.java src/test/java/com/thoughtspot/client/model/EurekaDataSourceSuggestionResponseTest.java src/test/java/com/thoughtspot/client/model/EurekaDecomposeQueryResponseTest.java +src/test/java/com/thoughtspot/client/model/EurekaGetNLInstructionsResponseTest.java src/test/java/com/thoughtspot/client/model/EurekaGetRelevantQuestionsResponseTest.java src/test/java/com/thoughtspot/client/model/EurekaLLMDecomposeQueryResponseTest.java src/test/java/com/thoughtspot/client/model/EurekaLLMSuggestedQueryTest.java src/test/java/com/thoughtspot/client/model/EurekaRelevantQuestionTest.java +src/test/java/com/thoughtspot/client/model/EurekaSetNLInstructionsResponseTest.java src/test/java/com/thoughtspot/client/model/EventChannelConfigInputTest.java src/test/java/com/thoughtspot/client/model/EventChannelConfigTest.java src/test/java/com/thoughtspot/client/model/ExcludeMetadataListItemInputTest.java @@ -929,6 +945,7 @@ src/test/java/com/thoughtspot/client/model/GetAsyncImportStatusResponseTest.java src/test/java/com/thoughtspot/client/model/GetCustomAccessTokenRequestTest.java src/test/java/com/thoughtspot/client/model/GetDataSourceSuggestionsRequestTest.java src/test/java/com/thoughtspot/client/model/GetFullAccessTokenRequestTest.java +src/test/java/com/thoughtspot/client/model/GetNLInstructionsRequestTest.java src/test/java/com/thoughtspot/client/model/GetObjectAccessTokenRequestTest.java src/test/java/com/thoughtspot/client/model/GetRelevantQuestionsRequestTest.java src/test/java/com/thoughtspot/client/model/GetTokenResponseTest.java @@ -966,6 +983,8 @@ src/test/java/com/thoughtspot/client/model/MetadataResponseTest.java src/test/java/com/thoughtspot/client/model/MetadataSearchResponseTest.java src/test/java/com/thoughtspot/client/model/MetadataSearchSortOptionsTest.java src/test/java/com/thoughtspot/client/model/ModelTableListTest.java +src/test/java/com/thoughtspot/client/model/NLInstructionsInfoInputTest.java +src/test/java/com/thoughtspot/client/model/NLInstructionsInfoTest.java src/test/java/com/thoughtspot/client/model/ObjectIDAndNameTest.java src/test/java/com/thoughtspot/client/model/OrgChannelConfigInputTest.java src/test/java/com/thoughtspot/client/model/OrgChannelConfigResponseTest.java @@ -1054,6 +1073,7 @@ src/test/java/com/thoughtspot/client/model/SendAgentMessageRequestTest.java src/test/java/com/thoughtspot/client/model/SendAgentMessageResponseTest.java src/test/java/com/thoughtspot/client/model/SendAgentMessageStreamingRequestTest.java src/test/java/com/thoughtspot/client/model/SendMessageRequestTest.java +src/test/java/com/thoughtspot/client/model/SetNLInstructionsRequestTest.java src/test/java/com/thoughtspot/client/model/ShareMetadataRequestTest.java src/test/java/com/thoughtspot/client/model/ShareMetadataTypeInputTest.java src/test/java/com/thoughtspot/client/model/SharePermissionsInputTest.java @@ -1115,6 +1135,7 @@ src/test/java/com/thoughtspot/client/model/VariableTest.java src/test/java/com/thoughtspot/client/model/VariableUpdateAssignmentInputTest.java src/test/java/com/thoughtspot/client/model/VariableUpdateScopeInputTest.java src/test/java/com/thoughtspot/client/model/VariableValueTest.java +src/test/java/com/thoughtspot/client/model/VariableValuesTest.java src/test/java/com/thoughtspot/client/model/WebhookAuthApiKeyInputTest.java src/test/java/com/thoughtspot/client/model/WebhookAuthApiKeyTest.java src/test/java/com/thoughtspot/client/model/WebhookAuthBasicAuthInputTest.java diff --git a/sdks/java/api/openapi.yaml b/sdks/java/api/openapi.yaml index ba555186..cfb55007 100644 --- a/sdks/java/api/openapi.yaml +++ b/sdks/java/api/openapi.yaml @@ -5631,17 +5631,17 @@ paths: /api/rest/2.0/report/liveboard: post: description: "\n Version: 9.0.0.cl or later\n\n\nExports a Liveboard and its\ - \ visualizations in PDF or PNG file format.\n\nRequires at least view access\ - \ to the Liveboard.\n\n#### Usage guidelines\n\nIn the request body, specify\ - \ the GUID or name of the Liveboard. To generate a Liveboard report with specific\ - \ visualizations, add GUIDs or names of the visualizations.\n\nThe default\ - \ `file_format` is PDF. For PDF downloads, you can specify additional parameters\ - \ to customize the page orientation and include or exclude the cover page,\ - \ logo, footer text, and page numbers. Similar customization options are also\ - \ available for PNG output.\n\n**NOTE**: The downloadable file returned in\ - \ API response file is extensionless. Please rename the downloaded file by\ - \ typing in the relevant extension.\n\nOptionally, you can define [runtime\ - \ overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides)\ + \ visualizations in PDF, PNG, or CSV file format.\n\nRequires at least view\ + \ access to the Liveboard.\n\n#### Usage guidelines\n\nIn the request body,\ + \ specify the GUID or name of the Liveboard. To generate a Liveboard report\ + \ with specific visualizations, add GUIDs or names of the visualizations.\n\ + \nThe default `file_format` is CSV. For PDF exports, you can specify additional\ + \ parameters to customize the page orientation and include or exclude the\ + \ cover page, logo, footer text, and page numbers. Similar customization options\ + \ are available for PNG exports. CSV exports do not support customization\ + \ options.\n\n**NOTE**: The downloadable file returned in API response file\ + \ is extensionless. Please rename the downloaded file by typing in the relevant\ + \ extension.\n\nOptionally, you can define [runtime overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides)\ \ to apply to the Answer data.\n\nTo include unsaved changes in the report,\ \ pass the `transient_pinboard_content` script generated from the `getExportRequestForCurrentPinboard`\ \ method in the Visual Embed SDK. Upon successful execution, the API returns\ @@ -5651,7 +5651,12 @@ paths: \ can be exported in the PNG format in the resolution of your choice. To enable\ \ this on your instance, contact ThoughtSpot support. When this feature is\ \ enabled, the options `include_cover_page`,`include_filter_page` within the\ - \ `png_options` will not be available for PNG exports.\n\n\n\n\n" + \ `png_options` will not be available for PNG exports.\n\n**NOTE**: Starting\ + \ with the ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported\ + \ in CSV format. All visualizations in the Liveboard can be exported as individual\ + \ CSV files. If multiple visualizations are selected or if the entire Liveboard\ + \ is exported, the output is returned as a .zip file containing the CSV files\ + \ for each visualization.\n\n\n\n\n\n" operationId: exportLiveboardReport parameters: [] requestBody: diff --git a/sdks/java/docs/CreateEmailCustomisationRequest.md b/sdks/java/docs/CreateEmailCustomisationRequest.md deleted file mode 100644 index fa3492e9..00000000 --- a/sdks/java/docs/CreateEmailCustomisationRequest.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# CreateEmailCustomisationRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**templateProperties** | **Object** | Email customization configuration as key value pair | | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/CreateEmailCustomisationResponse.md b/sdks/java/docs/CreateEmailCustomisationResponse.md deleted file mode 100644 index 65a77dac..00000000 --- a/sdks/java/docs/CreateEmailCustomisationResponse.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# CreateEmailCustomisationResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**tenantId** | **String** | Tenant ID | | -|**org** | [**OrgType**](OrgType.md) | | | -|**name** | **String** | Email customization name. | | -|**templateProperties** | **Object** | Customization configuration for the email | | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/DbtConnectionRequest.md b/sdks/java/docs/DbtConnectionRequest.md deleted file mode 100644 index e7e067fc..00000000 --- a/sdks/java/docs/DbtConnectionRequest.md +++ /dev/null @@ -1,35 +0,0 @@ - - -# DbtConnectionRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**connectionName** | **String** | Name of the connection. | | -|**databaseName** | **String** | Name of the Database. | | -|**importType** | [**ImportTypeEnum**](#ImportTypeEnum) | Mention type of Import | [optional] | -|**accessToken** | **String** | Access token is mandatory when Import_Type is DBT_CLOUD. | [optional] | -|**dbtUrl** | **String** | DBT URL is mandatory when Import_Type is DBT_CLOUD. | [optional] | -|**accountId** | **String** | Account ID is mandatory when Import_Type is DBT_CLOUD | [optional] | -|**projectId** | **String** | Project ID is mandatory when Import_Type is DBT_CLOUD | [optional] | -|**dbtEnvId** | **String** | DBT Environment ID\" | [optional] | -|**projectName** | **String** | Name of the project | [optional] | -|**fileContent** | **File** | Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is Mandatory when Import Type is 'ZIP_FILE' | [optional] | - - - -## Enum: ImportTypeEnum - -| Name | Value | -|---- | -----| -| DBT_CLOUD | "DBT_CLOUD" | -| ZIP_FILE | "ZIP_FILE" | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/DbtGenerateSyncTmlRequest.md b/sdks/java/docs/DbtGenerateSyncTmlRequest.md deleted file mode 100644 index 0c56b565..00000000 --- a/sdks/java/docs/DbtGenerateSyncTmlRequest.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# DbtGenerateSyncTmlRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dbtConnectionIdentifier** | **String** | Unique ID of the DBT connection. | | -|**fileContent** | **File** | Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is mandatory if the connection was created with import_type ‘ZIP_FILE’ | [optional] | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/DbtGenerateTmlRequest.md b/sdks/java/docs/DbtGenerateTmlRequest.md deleted file mode 100644 index 875bb692..00000000 --- a/sdks/java/docs/DbtGenerateTmlRequest.md +++ /dev/null @@ -1,31 +0,0 @@ - - -# DbtGenerateTmlRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dbtConnectionIdentifier** | **String** | Unique ID of the DBT connection. | | -|**modelTables** | [**List<ModelTableList>**](ModelTableList.md) | List of Models and their respective Tables | [optional] | -|**importWorksheets** | [**ImportWorksheetsEnum**](#ImportWorksheetsEnum) | Mention the worksheet tmls to import | | -|**worksheets** | **List<String>** | List of worksheets is mandatory when import_Worksheets is type SELECTED | [optional] | -|**fileContent** | **File** | Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is mandatory if the connection was created with import_type ‘ZIP_FILE’ | [optional] | - - - -## Enum: ImportWorksheetsEnum - -| Name | Value | -|---- | -----| -| ALL | "ALL" | -| NONE | "NONE" | -| SELECTED | "SELECTED" | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/EmailCustomisationApi.md b/sdks/java/docs/EmailCustomisationApi.md deleted file mode 100644 index eb47004f..00000000 --- a/sdks/java/docs/EmailCustomisationApi.md +++ /dev/null @@ -1,146 +0,0 @@ -# EmailCustomisationApi - -All URIs are relative to *CLUSTER_URL* - -| Method | HTTP request | -|------------- | ------------- | -| [**createEmailCustomisation**](EmailCustomisationApi.md#createEmailCustomisation) | **POST** /api/rest/2.0/customization/email | -| [**deleteEmailCustomisation**](EmailCustomisationApi.md#deleteEmailCustomisation) | **POST** /api/rest/2.0/customization/email/{template_identifier}/delete | -| [**searchEmailCustomisation**](EmailCustomisationApi.md#searchEmailCustomisation) | **POST** /api/rest/2.0/customization/email/search | -| [**validateEmailCustomisation**](EmailCustomisationApi.md#validateEmailCustomisation) | **POST** /api/rest/2.0/customization/email/validate | - - - -# **createEmailCustomisation** -> CreateEmailCustomisationResponse createEmailCustomisation(createEmailCustomisationRequest) - - - - Version: 10.10.0.cl or later Creates a custom configuration for the email customisation #### Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `_Has developer privilege` privilege is required. Coms should be enabled on the cluster. #### Usage guidelines To create a custom confuguration: 1. Pass these parameters in your API request. - A JSON map of configuration attributes `template_properties`. The following example shows the configuration attribures for a csutom configuration: ``` { { \"logoUrl\": \"<logo_url>\", \"homeUrl\": \"<home_url>\", \"productName\": \"<Company Name in the Mail>\", \"footerAddress\": \"<address to be visible in the footer>\", \"ctaButtonBgColor\": \"#444DEA\", \"ctaTextFontColor\": \"#FFFFFF\", \"primaryBgColor\": \"#D3DEF0\", \"hideMobileAppNudge\": <true/false>, \"hideTsVocabularyDefinitions\": <true/false>e, \"hideProductName\": <true/false>, \"hideFooterPhone\": <true/false>, \"hideFooterAddress\": <true/false>, \"hidePrivacyPolicy\": <true/false>, \"hideManageNotification\": <true/false>, \"fontfamily\": \"<to maintain a single font in the entire email>\" } } ``` - -### Parameters - -| Name | Type | -|------------- | ------------- | -| **createEmailCustomisationRequest** | [**CreateEmailCustomisationRequest**](CreateEmailCustomisationRequest.md) - -### Return type - -[**CreateEmailCustomisationResponse**](CreateEmailCustomisationResponse.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Invalid request. | - | -| **403** | Unauthorized access. | - | -| **500** | Unexpected error | - | - - -# **deleteEmailCustomisation** -> deleteEmailCustomisation(templateIdentifier) - - - - Version: 10.10.0.cl or later Deletes the configuration for the email customisation. #### Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `_Has developer privilege` privilege is required. Coms should be enabled on the cluster. #### Usage guidelines Deletes the configuration available for the cluster/org. Pass the `template_identifier` in the API request. Note: `template_identifier` can be fetched from search API request. - -### Parameters - -| Name | Type | -|------------- | ------------- | -| **templateIdentifier** | **String** - -### Return type - -null (empty response body) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Email Customization configuration successfully deleted. | - | -| **400** | Invalid request. | - | -| **403** | Unauthorized access. | - | -| **500** | Unexpected error | - | - - -# **searchEmailCustomisation** -> List<CreateEmailCustomisationResponse> searchEmailCustomisation() - - - - Version: 10.10.0.cl or later Search the email customisation configuration if any set for the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `_Has developer privilege` privilege is required. Coms should be enabled on the cluster. #### Usage guidelines To get the list of configurations set in the cluster/org. - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List<CreateEmailCustomisationResponse>**](CreateEmailCustomisationResponse.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Invalid request. | - | -| **403** | Unauthorized access. | - | -| **500** | Unexpected error | - | - - -# **validateEmailCustomisation** -> validateEmailCustomisation() - - - - Version: 10.10.0.cl or later Validates the email customisation configuration if any set for the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the `_Has developer privilege` privilege is required. Coms should be enabled on the cluster. - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **204** | Triggered test email for customization configuration | - | -| **400** | Invalid request. | - | -| **403** | Unauthorized access. | - | -| **500** | Unexpected error | - | - diff --git a/sdks/java/docs/InputVariableValue.md b/sdks/java/docs/InputVariableValue.md deleted file mode 100644 index efd60ca4..00000000 --- a/sdks/java/docs/InputVariableValue.md +++ /dev/null @@ -1,30 +0,0 @@ - - -# InputVariableValue - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**value** | **String** | The connection property value | | -|**orgIdentifier** | **String** | The unique name of the org | | -|**principalType** | [**PrincipalTypeEnum**](#PrincipalTypeEnum) | Principal type | [optional] | -|**principalIdentifier** | **String** | Unique ID or name of the principal | [optional] | -|**priority** | **Integer** | The priority assigned to this value. If there are 2 matching values, the one with the higher priority will be picked. | [optional] | - - - -## Enum: PrincipalTypeEnum - -| Name | Value | -|---- | -----| -| USER | "USER" | -| USER_GROUP | "USER_GROUP" | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/ReportsApi.md b/sdks/java/docs/ReportsApi.md index d0314e50..a99df993 100644 --- a/sdks/java/docs/ReportsApi.md +++ b/sdks/java/docs/ReportsApi.md @@ -50,7 +50,7 @@ All URIs are relative to *CLUSTER_URL* - Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file format. Requires at least view access to the Liveboard. #### Usage guidelines In the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The default `file_format` is PDF. For PDF downloads, you can specify additional parameters to customize the page orientation and include or exclude the cover page, logo, footer text, and page numbers. Similar customization options are also available for PNG output. **NOTE**: The downloadable file returned in API response file is extensionless. Please rename the downloaded file by typing in the relevant extension. Optionally, you can define [runtime overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) to apply to the Answer data. To include unsaved changes in the report, pass the `transient_pinboard_content` script generated from the `getExportRequestForCurrentPinboard` method in the Visual Embed SDK. Upon successful execution, the API returns the report with unsaved changes, including ad hoc changes to visualizations. For more information, see [Liveboard Report API](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_liveboard_report_api). **NOTE**: Starting with ThoughtSpot Cloud 10.9.0.cl release, the Liveboard can be exported in the PNG format in the resolution of your choice. To enable this on your instance, contact ThoughtSpot support. When this feature is enabled, the options `include_cover_page`,`include_filter_page` within the `png_options` will not be available for PNG exports. + Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV file format. Requires at least view access to the Liveboard. #### Usage guidelines In the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The default `file_format` is CSV. For PDF exports, you can specify additional parameters to customize the page orientation and include or exclude the cover page, logo, footer text, and page numbers. Similar customization options are available for PNG exports. CSV exports do not support customization options. **NOTE**: The downloadable file returned in API response file is extensionless. Please rename the downloaded file by typing in the relevant extension. Optionally, you can define [runtime overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) to apply to the Answer data. To include unsaved changes in the report, pass the `transient_pinboard_content` script generated from the `getExportRequestForCurrentPinboard` method in the Visual Embed SDK. Upon successful execution, the API returns the report with unsaved changes, including ad hoc changes to visualizations. For more information, see [Liveboard Report API](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_liveboard_report_api). **NOTE**: Starting with ThoughtSpot Cloud 10.9.0.cl release, the Liveboard can be exported in the PNG format in the resolution of your choice. To enable this on your instance, contact ThoughtSpot support. When this feature is enabled, the options `include_cover_page`,`include_filter_page` within the `png_options` will not be available for PNG exports. **NOTE**: Starting with the ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All visualizations in the Liveboard can be exported as individual CSV files. If multiple visualizations are selected or if the entire Liveboard is exported, the output is returned as a .zip file containing the CSV files for each visualization. ### Parameters diff --git a/sdks/java/docs/ThoughtSpotRestApi.md b/sdks/java/docs/ThoughtSpotRestApi.md index 07f51033..bc66bc54 100644 --- a/sdks/java/docs/ThoughtSpotRestApi.md +++ b/sdks/java/docs/ThoughtSpotRestApi.md @@ -1995,7 +1995,7 @@ null (empty response body) - Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file format. Requires at least view access to the Liveboard. #### Usage guidelines In the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The default `file_format` is PDF. For PDF downloads, you can specify additional parameters to customize the page orientation and include or exclude the cover page, logo, footer text, and page numbers. Similar customization options are also available for PNG output. **NOTE**: The downloadable file returned in API response file is extensionless. Please rename the downloaded file by typing in the relevant extension. Optionally, you can define [runtime overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) to apply to the Answer data. To include unsaved changes in the report, pass the `transient_pinboard_content` script generated from the `getExportRequestForCurrentPinboard` method in the Visual Embed SDK. Upon successful execution, the API returns the report with unsaved changes, including ad hoc changes to visualizations. For more information, see [Liveboard Report API](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_liveboard_report_api). **NOTE**: Starting with ThoughtSpot Cloud 10.9.0.cl release, the Liveboard can be exported in the PNG format in the resolution of your choice. To enable this on your instance, contact ThoughtSpot support. When this feature is enabled, the options `include_cover_page`,`include_filter_page` within the `png_options` will not be available for PNG exports. + Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV file format. Requires at least view access to the Liveboard. #### Usage guidelines In the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The default `file_format` is CSV. For PDF exports, you can specify additional parameters to customize the page orientation and include or exclude the cover page, logo, footer text, and page numbers. Similar customization options are available for PNG exports. CSV exports do not support customization options. **NOTE**: The downloadable file returned in API response file is extensionless. Please rename the downloaded file by typing in the relevant extension. Optionally, you can define [runtime overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) to apply to the Answer data. To include unsaved changes in the report, pass the `transient_pinboard_content` script generated from the `getExportRequestForCurrentPinboard` method in the Visual Embed SDK. Upon successful execution, the API returns the report with unsaved changes, including ad hoc changes to visualizations. For more information, see [Liveboard Report API](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_liveboard_report_api). **NOTE**: Starting with ThoughtSpot Cloud 10.9.0.cl release, the Liveboard can be exported in the PNG format in the resolution of your choice. To enable this on your instance, contact ThoughtSpot support. When this feature is enabled, the options `include_cover_page`,`include_filter_page` within the `png_options` will not be available for PNG exports. **NOTE**: Starting with the ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All visualizations in the Liveboard can be exported as individual CSV files. If multiple visualizations are selected or if the entire Liveboard is exported, the output is returned as a .zip file containing the CSV files for each visualization. ### Parameters diff --git a/sdks/java/docs/UpdateDbtConnectionRequest.md b/sdks/java/docs/UpdateDbtConnectionRequest.md deleted file mode 100644 index 73be6dee..00000000 --- a/sdks/java/docs/UpdateDbtConnectionRequest.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# UpdateDbtConnectionRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**dbtConnectionIdentifier** | **String** | Unique ID of the DBT Connection. | | -|**connectionName** | **String** | Name of the connection. | [optional] | -|**databaseName** | **String** | Name of the Database. | [optional] | -|**importType** | [**ImportTypeEnum**](#ImportTypeEnum) | Mention type of Import | [optional] | -|**accessToken** | **String** | Access token is mandatory when Import_Type is DBT_CLOUD. | [optional] | -|**dbtUrl** | **String** | DBT URL is mandatory when Import_Type is DBT_CLOUD. | [optional] | -|**accountId** | **String** | Account ID is mandatory when Import_Type is DBT_CLOUD | [optional] | -|**projectId** | **String** | Project ID is mandatory when Import_Type is DBT_CLOUD | [optional] | -|**dbtEnvId** | **String** | DBT Environment ID\" | [optional] | -|**projectName** | **String** | Name of the project | [optional] | -|**fileContent** | **File** | Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is Mandatory when Import Type is 'ZIP_FILE' | [optional] | - - - -## Enum: ImportTypeEnum - -| Name | Value | -|---- | -----| -| DBT_CLOUD | "DBT_CLOUD" | -| ZIP_FILE | "ZIP_FILE" | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/docs/VariableValueInput.md b/sdks/java/docs/VariableValueInput.md deleted file mode 100644 index 6204e0ae..00000000 --- a/sdks/java/docs/VariableValueInput.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# VariableValueInput - -Input for variable value update - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**variableIdentifier** | **String** | ID or Name of the variable | | -|**variableValues** | [**List<InputVariableValue>**](InputVariableValue.md) | Values of the variable | | - - -## Implemented Interfaces - -* Serializable - - diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/EmailCustomisationApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/EmailCustomisationApi.java deleted file mode 100644 index e3753502..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/EmailCustomisationApi.java +++ /dev/null @@ -1,809 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.api; - -import com.google.gson.reflect.TypeToken; -import com.thoughtspot.client.ApiCallback; -import com.thoughtspot.client.ApiClient; -import com.thoughtspot.client.ApiClientConfiguration; -import com.thoughtspot.client.ApiException; -import com.thoughtspot.client.ApiResponse; -import com.thoughtspot.client.Configuration; -import com.thoughtspot.client.Pair; -import com.thoughtspot.client.model.CreateEmailCustomisationRequest; -import com.thoughtspot.client.model.CreateEmailCustomisationResponse; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class EmailCustomisationApi { - private ApiClient localVarApiClient; - private ApiClientConfiguration localVarApiClientConfiguration; - private int localHostIndex; - private String localCustomBaseUrl; - - public EmailCustomisationApi() { - this(Configuration.getDefaultApiClient()); - } - - public EmailCustomisationApi(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public EmailCustomisationApi(ApiClientConfiguration apiClientConfiguration) { - this.localVarApiClientConfiguration = apiClientConfiguration; - this.localVarApiClient = new ApiClient(apiClientConfiguration); - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClientConfiguration getApiClientConfiguration() { - return localVarApiClientConfiguration; - } - - public void applyApiClientConfiguration(ApiClientConfiguration apiClientConfiguration) { - this.localVarApiClientConfiguration = apiClientConfiguration; - if (localVarApiClient != null) { - localVarApiClient.applyApiClientConfiguration(apiClientConfiguration); - } else { - localVarApiClient = new ApiClient(apiClientConfiguration); - } - } - - 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 createEmailCustomisation - * - * @param createEmailCustomisationRequest (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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call createEmailCustomisationCall( - CreateEmailCustomisationRequest createEmailCustomisationRequest, - 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 = createEmailCustomisationRequest; - - // create path and map variables - String localVarPath = "/api/rest/2.0/customization/email"; - - 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 = {"application/json"}; - final String localVarContentType = - localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] {"bearerAuth"}; - return localVarApiClient.buildCall( - basePath, - localVarPath, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createEmailCustomisationValidateBeforeCall( - CreateEmailCustomisationRequest createEmailCustomisationRequest, - final ApiCallback _callback) - throws ApiException { - // verify the required parameter 'createEmailCustomisationRequest' is set - if (createEmailCustomisationRequest == null) { - throw new ApiException( - "Missing the required parameter 'createEmailCustomisationRequest' when calling" - + " createEmailCustomisation(Async)"); - } - - return createEmailCustomisationCall(createEmailCustomisationRequest, _callback); - } - - /** - * Version: 10.10.0.cl or later Creates a custom configuration for the email customisation #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines To create a custom confuguration: 1. Pass these parameters in - * your API request. - A JSON map of configuration attributes `template_properties`. - * The following example shows the configuration attribures for a csutom configuration: - * ``` { { \"logoUrl\": \"<logo_url>\", - * \"homeUrl\": \"<home_url>\", \"productName\": - * \"<Company Name in the Mail>\", \"footerAddress\": - * \"<address to be visible in the footer>\", \"ctaButtonBgColor\": - * \"#444DEA\", \"ctaTextFontColor\": \"#FFFFFF\", - * \"primaryBgColor\": \"#D3DEF0\", \"hideMobileAppNudge\": - * <true/false>, \"hideTsVocabularyDefinitions\": <true/false>e, - * \"hideProductName\": <true/false>, \"hideFooterPhone\": - * <true/false>, \"hideFooterAddress\": <true/false>, - * \"hidePrivacyPolicy\": <true/false>, \"hideManageNotification\": - * <true/false>, \"fontfamily\": \"<to maintain a single font in the - * entire email>\" } } ``` - * - * @param createEmailCustomisationRequest (required) - * @return CreateEmailCustomisationResponse - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public CreateEmailCustomisationResponse createEmailCustomisation( - CreateEmailCustomisationRequest createEmailCustomisationRequest) throws ApiException { - ApiResponse localVarResp = - createEmailCustomisationWithHttpInfo(createEmailCustomisationRequest); - return localVarResp.getData(); - } - - /** - * Version: 10.10.0.cl or later Creates a custom configuration for the email customisation #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines To create a custom confuguration: 1. Pass these parameters in - * your API request. - A JSON map of configuration attributes `template_properties`. - * The following example shows the configuration attribures for a csutom configuration: - * ``` { { \"logoUrl\": \"<logo_url>\", - * \"homeUrl\": \"<home_url>\", \"productName\": - * \"<Company Name in the Mail>\", \"footerAddress\": - * \"<address to be visible in the footer>\", \"ctaButtonBgColor\": - * \"#444DEA\", \"ctaTextFontColor\": \"#FFFFFF\", - * \"primaryBgColor\": \"#D3DEF0\", \"hideMobileAppNudge\": - * <true/false>, \"hideTsVocabularyDefinitions\": <true/false>e, - * \"hideProductName\": <true/false>, \"hideFooterPhone\": - * <true/false>, \"hideFooterAddress\": <true/false>, - * \"hidePrivacyPolicy\": <true/false>, \"hideManageNotification\": - * <true/false>, \"fontfamily\": \"<to maintain a single font in the - * entire email>\" } } ``` - * - * @param createEmailCustomisationRequest (required) - * @return ApiResponse<CreateEmailCustomisationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public ApiResponse createEmailCustomisationWithHttpInfo( - CreateEmailCustomisationRequest createEmailCustomisationRequest) throws ApiException { - okhttp3.Call localVarCall = - createEmailCustomisationValidateBeforeCall(createEmailCustomisationRequest, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Version: 10.10.0.cl or later Creates a custom configuration for the email - * customisation #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. #### Usage guidelines To create a custom confuguration: 1. Pass - * these parameters in your API request. - A JSON map of configuration attributes - * `template_properties`. The following example shows the configuration attribures for - * a csutom configuration: ``` { { \"logoUrl\": - * \"<logo_url>\", \"homeUrl\": \"<home_url>\", - * \"productName\": \"<Company Name in the Mail>\", - * \"footerAddress\": \"<address to be visible in the footer>\", - * \"ctaButtonBgColor\": \"#444DEA\", \"ctaTextFontColor\": - * \"#FFFFFF\", \"primaryBgColor\": \"#D3DEF0\", - * \"hideMobileAppNudge\": <true/false>, - * \"hideTsVocabularyDefinitions\": <true/false>e, - * \"hideProductName\": <true/false>, \"hideFooterPhone\": - * <true/false>, \"hideFooterAddress\": <true/false>, - * \"hidePrivacyPolicy\": <true/false>, \"hideManageNotification\": - * <true/false>, \"fontfamily\": \"<to maintain a single font in the - * entire email>\" } } ``` - * - * @param createEmailCustomisationRequest (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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call createEmailCustomisationAsync( - CreateEmailCustomisationRequest createEmailCustomisationRequest, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createEmailCustomisationValidateBeforeCall( - createEmailCustomisationRequest, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteEmailCustomisation - * - * @param templateIdentifier Unique ID or name of the email customization. (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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Email Customization configuration successfully deleted. -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call deleteEmailCustomisationCall( - String templateIdentifier, 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 = - "/api/rest/2.0/customization/email/{template_identifier}/delete" - .replace( - "{" + "template_identifier" + "}", - localVarApiClient.escapeString(templateIdentifier.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[] {"bearerAuth"}; - return localVarApiClient.buildCall( - basePath, - localVarPath, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteEmailCustomisationValidateBeforeCall( - String templateIdentifier, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'templateIdentifier' is set - if (templateIdentifier == null) { - throw new ApiException( - "Missing the required parameter 'templateIdentifier' when calling" - + " deleteEmailCustomisation(Async)"); - } - - return deleteEmailCustomisationCall(templateIdentifier, _callback); - } - - /** - * Version: 10.10.0.cl or later Deletes the configuration for the email customisation. #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines Deletes the configuration available for the cluster/org. Pass - * the `template_identifier` in the API request. Note: `template_identifier` - * can be fetched from search API request. - * - * @param templateIdentifier Unique ID or name of the email customization. (required) - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Email Customization configuration successfully deleted. -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public void deleteEmailCustomisation(String templateIdentifier) throws ApiException { - deleteEmailCustomisationWithHttpInfo(templateIdentifier); - } - - /** - * Version: 10.10.0.cl or later Deletes the configuration for the email customisation. #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines Deletes the configuration available for the cluster/org. Pass - * the `template_identifier` in the API request. Note: `template_identifier` - * can be fetched from search API request. - * - * @param templateIdentifier Unique ID or name of the email customization. (required) - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Email Customization configuration successfully deleted. -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public ApiResponse deleteEmailCustomisationWithHttpInfo(String templateIdentifier) - throws ApiException { - okhttp3.Call localVarCall = - deleteEmailCustomisationValidateBeforeCall(templateIdentifier, null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) Version: 10.10.0.cl or later Deletes the configuration for the email - * customisation. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. #### Usage guidelines Deletes the configuration available for the - * cluster/org. Pass the `template_identifier` in the API request. Note: - * `template_identifier` can be fetched from search API request. - * - * @param templateIdentifier Unique ID or name of the email customization. (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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Email Customization configuration successfully deleted. -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call deleteEmailCustomisationAsync( - String templateIdentifier, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = - deleteEmailCustomisationValidateBeforeCall(templateIdentifier, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } - /** - * Build call for searchEmailCustomisation - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call searchEmailCustomisationCall(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 = "/api/rest/2.0/customization/email/search"; - - 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[] {"bearerAuth"}; - return localVarApiClient.buildCall( - basePath, - localVarPath, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call searchEmailCustomisationValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return searchEmailCustomisationCall(_callback); - } - - /** - * Version: 10.10.0.cl or later Search the email customisation configuration if any set for the - * ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. #### Usage guidelines To get the list of configurations set in the - * cluster/org. - * - * @return List<CreateEmailCustomisationResponse> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public List searchEmailCustomisation() throws ApiException { - ApiResponse> localVarResp = - searchEmailCustomisationWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Version: 10.10.0.cl or later Search the email customisation configuration if any set for the - * ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. #### Usage guidelines To get the list of configurations set in the - * cluster/org. - * - * @return ApiResponse<List<CreateEmailCustomisationResponse>> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public ApiResponse> - searchEmailCustomisationWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = searchEmailCustomisationValidateBeforeCall(null); - Type localVarReturnType = - new TypeToken>() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) Version: 10.10.0.cl or later Search the email customisation configuration if - * any set for the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has - * developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) - * privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the - * `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines To get the list of configurations set in the cluster/org. - * - * @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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
200 OK -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call searchEmailCustomisationAsync( - final ApiCallback> _callback) - throws ApiException { - - okhttp3.Call localVarCall = searchEmailCustomisationValidateBeforeCall(_callback); - Type localVarReturnType = - new TypeToken>() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for validateEmailCustomisation - * - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Triggered test email for customization configuration -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call validateEmailCustomisationCall(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 = "/api/rest/2.0/customization/email/validate"; - - 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[] {"bearerAuth"}; - return localVarApiClient.buildCall( - basePath, - localVarPath, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call validateEmailCustomisationValidateBeforeCall(final ApiCallback _callback) - throws ApiException { - return validateEmailCustomisationCall(_callback); - } - - /** - * Version: 10.10.0.cl or later Validates the email customisation configuration if any set for - * the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. - * - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Triggered test email for customization configuration -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public void validateEmailCustomisation() throws ApiException { - validateEmailCustomisationWithHttpInfo(); - } - - /** - * Version: 10.10.0.cl or later Validates the email customisation configuration if any set for - * the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. - * - * @return ApiResponse<Void> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the - * response body - * @http.response.details - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Triggered test email for customization configuration -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public ApiResponse validateEmailCustomisationWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = validateEmailCustomisationValidateBeforeCall(null); - return localVarApiClient.execute(localVarCall); - } - - /** - * (asynchronously) Version: 10.10.0.cl or later Validates the email customisation configuration - * if any set for the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` - * (**has developer privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) - * privilege. If [Role-Based Access Control - * (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, the - * `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. - * - * @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 - * - * - * - * - * - * - * - *
Response Details
Status Code Description Response Headers
204 Triggered test email for customization configuration -
400 Invalid request. -
403 Unauthorized access. -
500 Unexpected error -
- */ - public okhttp3.Call validateEmailCustomisationAsync(final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = validateEmailCustomisationValidateBeforeCall(_callback); - localVarApiClient.executeAsync(localVarCall, _callback); - return localVarCall; - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/ReportsApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/ReportsApi.java index b117c233..63cfaf63 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/ReportsApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/ReportsApi.java @@ -358,15 +358,16 @@ private okhttp3.Call exportLiveboardReportValidateBeforeCall( } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -378,7 +379,11 @@ private okhttp3.Call exportLiveboardReportValidateBeforeCall( * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @return File @@ -403,15 +408,16 @@ public File exportLiveboardReport(ExportLiveboardReportRequest exportLiveboardRe } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -423,7 +429,11 @@ public File exportLiveboardReport(ExportLiveboardReportRequest exportLiveboardRe * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @return ApiResponse<File> @@ -449,15 +459,16 @@ public ApiResponse exportLiveboardReportWithHttpInfo( } /** - * (asynchronously) Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF - * or PNG file format. Requires at least view access to the Liveboard. #### Usage guidelines In - * the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report - * with specific visualizations, add GUIDs or names of the visualizations. The default - * `file_format` is PDF. For PDF downloads, you can specify additional parameters to - * customize the page orientation and include or exclude the cover page, logo, footer text, and - * page numbers. Similar customization options are also available for PNG output. **NOTE**: The - * downloadable file returned in API response file is extensionless. Please rename the - * downloaded file by typing in the relevant extension. Optionally, you can define [runtime + * (asynchronously) Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in + * PDF, PNG, or CSV file format. Requires at least view access to the Liveboard. #### Usage + * guidelines In the request body, specify the GUID or name of the Liveboard. To generate a + * Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The + * default `file_format` is CSV. For PDF exports, you can specify additional + * parameters to customize the page orientation and include or exclude the cover page, logo, + * footer text, and page numbers. Similar customization options are available for PNG exports. + * CSV exports do not support customization options. **NOTE**: The downloadable file returned in + * API response file is extensionless. Please rename the downloaded file by typing in the + * relevant extension. Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -469,7 +480,11 @@ public ApiResponse exportLiveboardReportWithHttpInfo( * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @param _callback The callback to be executed when the API call finishes diff --git a/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java b/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java index 09c30d35..5ab55662 100644 --- a/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java +++ b/sdks/java/src/main/java/com/thoughtspot/client/api/ThoughtSpotRestApi.java @@ -10506,15 +10506,16 @@ private okhttp3.Call exportLiveboardReportValidateBeforeCall( } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -10526,7 +10527,11 @@ private okhttp3.Call exportLiveboardReportValidateBeforeCall( * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @return File @@ -10551,15 +10556,16 @@ public File exportLiveboardReport(ExportLiveboardReportRequest exportLiveboardRe } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -10571,7 +10577,11 @@ public File exportLiveboardReport(ExportLiveboardReportRequest exportLiveboardRe * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @return ApiResponse<File> @@ -10597,15 +10607,16 @@ public ApiResponse exportLiveboardReportWithHttpInfo( } /** - * (asynchronously) Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF - * or PNG file format. Requires at least view access to the Liveboard. #### Usage guidelines In - * the request body, specify the GUID or name of the Liveboard. To generate a Liveboard report - * with specific visualizations, add GUIDs or names of the visualizations. The default - * `file_format` is PDF. For PDF downloads, you can specify additional parameters to - * customize the page orientation and include or exclude the cover page, logo, footer text, and - * page numbers. Similar customization options are also available for PNG output. **NOTE**: The - * downloadable file returned in API response file is extensionless. Please rename the - * downloaded file by typing in the relevant extension. Optionally, you can define [runtime + * (asynchronously) Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in + * PDF, PNG, or CSV file format. Requires at least view access to the Liveboard. #### Usage + * guidelines In the request body, specify the GUID or name of the Liveboard. To generate a + * Liveboard report with specific visualizations, add GUIDs or names of the visualizations. The + * default `file_format` is CSV. For PDF exports, you can specify additional + * parameters to customize the page orientation and include or exclude the cover page, logo, + * footer text, and page numbers. Similar customization options are available for PNG exports. + * CSV exports do not support customization options. **NOTE**: The downloadable file returned in + * API response file is extensionless. Please rename the downloaded file by typing in the + * relevant extension. Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -10617,7 +10628,11 @@ public ApiResponse exportLiveboardReportWithHttpInfo( * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @param exportLiveboardReportRequest (required) * @param _callback The callback to be executed when the API call finishes diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationRequest.java deleted file mode 100644 index 020a9fa8..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationRequest.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.IOException; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** CreateEmailCustomisationRequest */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class CreateEmailCustomisationRequest implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_TEMPLATE_PROPERTIES = "template_properties"; - - @SerializedName(SERIALIZED_NAME_TEMPLATE_PROPERTIES) - @javax.annotation.Nonnull - private Object templateProperties; - - public CreateEmailCustomisationRequest() {} - - public CreateEmailCustomisationRequest templateProperties( - @javax.annotation.Nonnull Object templateProperties) { - this.templateProperties = templateProperties; - return this; - } - - /** - * Email customization configuration as key value pair - * - * @return templateProperties - */ - @javax.annotation.Nonnull - public Object getTemplateProperties() { - return templateProperties; - } - - public void setTemplateProperties(@javax.annotation.Nonnull Object templateProperties) { - this.templateProperties = templateProperties; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateEmailCustomisationRequest createEmailCustomisationRequest = - (CreateEmailCustomisationRequest) o; - return Objects.equals( - this.templateProperties, createEmailCustomisationRequest.templateProperties); - } - - @Override - public int hashCode() { - return Objects.hash(templateProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateEmailCustomisationRequest {\n"); - sb.append(" templateProperties: ") - .append(toIndentedString(templateProperties)) - .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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("template_properties"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("template_properties"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * CreateEmailCustomisationRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!CreateEmailCustomisationRequest.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in CreateEmailCustomisationRequest is" - + " not found in the empty JSON string", - CreateEmailCustomisationRequest.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!CreateEmailCustomisationRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `CreateEmailCustomisationRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateEmailCustomisationRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateEmailCustomisationRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateEmailCustomisationRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter( - this, TypeToken.get(CreateEmailCustomisationRequest.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateEmailCustomisationRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public CreateEmailCustomisationRequest read(JsonReader in) - throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of CreateEmailCustomisationRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateEmailCustomisationRequest - * @throws IOException if the JSON string is invalid with respect to - * CreateEmailCustomisationRequest - */ - public static CreateEmailCustomisationRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateEmailCustomisationRequest.class); - } - - /** - * Convert an instance of CreateEmailCustomisationRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationResponse.java b/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationResponse.java deleted file mode 100644 index 97e3d5b5..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/CreateEmailCustomisationResponse.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.IOException; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** CreateEmailCustomisationResponse */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class CreateEmailCustomisationResponse implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_TENANT_ID = "tenant_id"; - - @SerializedName(SERIALIZED_NAME_TENANT_ID) - @javax.annotation.Nonnull - private String tenantId; - - public static final String SERIALIZED_NAME_ORG = "org"; - - @SerializedName(SERIALIZED_NAME_ORG) - @javax.annotation.Nonnull - private OrgType org; - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - @javax.annotation.Nonnull - private String name; - - public static final String SERIALIZED_NAME_TEMPLATE_PROPERTIES = "template_properties"; - - @SerializedName(SERIALIZED_NAME_TEMPLATE_PROPERTIES) - @javax.annotation.Nonnull - private Object templateProperties; - - public CreateEmailCustomisationResponse() {} - - public CreateEmailCustomisationResponse tenantId(@javax.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Tenant ID - * - * @return tenantId - */ - @javax.annotation.Nonnull - public String getTenantId() { - return tenantId; - } - - public void setTenantId(@javax.annotation.Nonnull String tenantId) { - this.tenantId = tenantId; - } - - public CreateEmailCustomisationResponse org(@javax.annotation.Nonnull OrgType org) { - this.org = org; - return this; - } - - /** - * Get org - * - * @return org - */ - @javax.annotation.Nonnull - public OrgType getOrg() { - return org; - } - - public void setOrg(@javax.annotation.Nonnull OrgType org) { - this.org = org; - } - - public CreateEmailCustomisationResponse name(@javax.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Email customization name. - * - * @return name - */ - @javax.annotation.Nonnull - public String getName() { - return name; - } - - public void setName(@javax.annotation.Nonnull String name) { - this.name = name; - } - - public CreateEmailCustomisationResponse templateProperties( - @javax.annotation.Nonnull Object templateProperties) { - this.templateProperties = templateProperties; - return this; - } - - /** - * Customization configuration for the email - * - * @return templateProperties - */ - @javax.annotation.Nonnull - public Object getTemplateProperties() { - return templateProperties; - } - - public void setTemplateProperties(@javax.annotation.Nonnull Object templateProperties) { - this.templateProperties = templateProperties; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateEmailCustomisationResponse createEmailCustomisationResponse = - (CreateEmailCustomisationResponse) o; - return Objects.equals(this.tenantId, createEmailCustomisationResponse.tenantId) - && Objects.equals(this.org, createEmailCustomisationResponse.org) - && Objects.equals(this.name, createEmailCustomisationResponse.name) - && Objects.equals( - this.templateProperties, - createEmailCustomisationResponse.templateProperties); - } - - @Override - public int hashCode() { - return Objects.hash(tenantId, org, name, templateProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateEmailCustomisationResponse {\n"); - sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); - sb.append(" org: ").append(toIndentedString(org)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" templateProperties: ") - .append(toIndentedString(templateProperties)) - .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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("tenant_id"); - openapiFields.add("org"); - openapiFields.add("name"); - openapiFields.add("template_properties"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("tenant_id"); - openapiRequiredFields.add("org"); - openapiRequiredFields.add("name"); - openapiRequiredFields.add("template_properties"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to - * CreateEmailCustomisationResponse - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!CreateEmailCustomisationResponse.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in CreateEmailCustomisationResponse is" - + " not found in the empty JSON string", - CreateEmailCustomisationResponse.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!CreateEmailCustomisationResponse.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `CreateEmailCustomisationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : CreateEmailCustomisationResponse.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("tenant_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `tenant_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("tenant_id").toString())); - } - // validate the required field `org` - OrgType.validateJsonElement(jsonObj.get("org")); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `name` to be a primitive type in the JSON string" - + " but got `%s`", - jsonObj.get("name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!CreateEmailCustomisationResponse.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'CreateEmailCustomisationResponse' and - // its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter( - this, TypeToken.get(CreateEmailCustomisationResponse.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, CreateEmailCustomisationResponse value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public CreateEmailCustomisationResponse read(JsonReader in) - throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of CreateEmailCustomisationResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateEmailCustomisationResponse - * @throws IOException if the JSON string is invalid with respect to - * CreateEmailCustomisationResponse - */ - public static CreateEmailCustomisationResponse fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, CreateEmailCustomisationResponse.class); - } - - /** - * Convert an instance of CreateEmailCustomisationResponse to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtConnectionRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/DbtConnectionRequest.java deleted file mode 100644 index da070b96..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtConnectionRequest.java +++ /dev/null @@ -1,590 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.File; -import java.io.IOException; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** DbtConnectionRequest */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class DbtConnectionRequest implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_CONNECTION_NAME = "connection_name"; - - @SerializedName(SERIALIZED_NAME_CONNECTION_NAME) - @javax.annotation.Nonnull - private String connectionName; - - public static final String SERIALIZED_NAME_DATABASE_NAME = "database_name"; - - @SerializedName(SERIALIZED_NAME_DATABASE_NAME) - @javax.annotation.Nonnull - private String databaseName; - - /** Mention type of Import */ - @JsonAdapter(ImportTypeEnum.Adapter.class) - public enum ImportTypeEnum { - DBT_CLOUD("DBT_CLOUD"), - - ZIP_FILE("ZIP_FILE"); - - private String value; - - ImportTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ImportTypeEnum fromValue(String value) { - for (ImportTypeEnum b : ImportTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ImportTypeEnum enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ImportTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ImportTypeEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ImportTypeEnum.fromValue(value); - } - } - - public static final String SERIALIZED_NAME_IMPORT_TYPE = "import_type"; - - @SerializedName(SERIALIZED_NAME_IMPORT_TYPE) - @javax.annotation.Nullable - private ImportTypeEnum importType = ImportTypeEnum.DBT_CLOUD; - - public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; - - @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) - @javax.annotation.Nullable - private String accessToken; - - public static final String SERIALIZED_NAME_DBT_URL = "dbt_url"; - - @SerializedName(SERIALIZED_NAME_DBT_URL) - @javax.annotation.Nullable - private String dbtUrl; - - public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; - - @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - @javax.annotation.Nullable - private String accountId; - - public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; - - @SerializedName(SERIALIZED_NAME_PROJECT_ID) - @javax.annotation.Nullable - private String projectId; - - public static final String SERIALIZED_NAME_DBT_ENV_ID = "dbt_env_id"; - - @SerializedName(SERIALIZED_NAME_DBT_ENV_ID) - @javax.annotation.Nullable - private String dbtEnvId; - - public static final String SERIALIZED_NAME_PROJECT_NAME = "project_name"; - - @SerializedName(SERIALIZED_NAME_PROJECT_NAME) - @javax.annotation.Nullable - private String projectName; - - public static final String SERIALIZED_NAME_FILE_CONTENT = "file_content"; - - @SerializedName(SERIALIZED_NAME_FILE_CONTENT) - @javax.annotation.Nullable - private File fileContent; - - public DbtConnectionRequest() {} - - public DbtConnectionRequest connectionName(@javax.annotation.Nonnull String connectionName) { - this.connectionName = connectionName; - return this; - } - - /** - * Name of the connection. - * - * @return connectionName - */ - @javax.annotation.Nonnull - public String getConnectionName() { - return connectionName; - } - - public void setConnectionName(@javax.annotation.Nonnull String connectionName) { - this.connectionName = connectionName; - } - - public DbtConnectionRequest databaseName(@javax.annotation.Nonnull String databaseName) { - this.databaseName = databaseName; - return this; - } - - /** - * Name of the Database. - * - * @return databaseName - */ - @javax.annotation.Nonnull - public String getDatabaseName() { - return databaseName; - } - - public void setDatabaseName(@javax.annotation.Nonnull String databaseName) { - this.databaseName = databaseName; - } - - public DbtConnectionRequest importType(@javax.annotation.Nullable ImportTypeEnum importType) { - this.importType = importType; - return this; - } - - /** - * Mention type of Import - * - * @return importType - */ - @javax.annotation.Nullable - public ImportTypeEnum getImportType() { - return importType; - } - - public void setImportType(@javax.annotation.Nullable ImportTypeEnum importType) { - this.importType = importType; - } - - public DbtConnectionRequest accessToken(@javax.annotation.Nullable String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Access token is mandatory when Import_Type is DBT_CLOUD. - * - * @return accessToken - */ - @javax.annotation.Nullable - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(@javax.annotation.Nullable String accessToken) { - this.accessToken = accessToken; - } - - public DbtConnectionRequest dbtUrl(@javax.annotation.Nullable String dbtUrl) { - this.dbtUrl = dbtUrl; - return this; - } - - /** - * DBT URL is mandatory when Import_Type is DBT_CLOUD. - * - * @return dbtUrl - */ - @javax.annotation.Nullable - public String getDbtUrl() { - return dbtUrl; - } - - public void setDbtUrl(@javax.annotation.Nullable String dbtUrl) { - this.dbtUrl = dbtUrl; - } - - public DbtConnectionRequest accountId(@javax.annotation.Nullable String accountId) { - this.accountId = accountId; - return this; - } - - /** - * Account ID is mandatory when Import_Type is DBT_CLOUD - * - * @return accountId - */ - @javax.annotation.Nullable - public String getAccountId() { - return accountId; - } - - public void setAccountId(@javax.annotation.Nullable String accountId) { - this.accountId = accountId; - } - - public DbtConnectionRequest projectId(@javax.annotation.Nullable String projectId) { - this.projectId = projectId; - return this; - } - - /** - * Project ID is mandatory when Import_Type is DBT_CLOUD - * - * @return projectId - */ - @javax.annotation.Nullable - public String getProjectId() { - return projectId; - } - - public void setProjectId(@javax.annotation.Nullable String projectId) { - this.projectId = projectId; - } - - public DbtConnectionRequest dbtEnvId(@javax.annotation.Nullable String dbtEnvId) { - this.dbtEnvId = dbtEnvId; - return this; - } - - /** - * DBT Environment ID\" - * - * @return dbtEnvId - */ - @javax.annotation.Nullable - public String getDbtEnvId() { - return dbtEnvId; - } - - public void setDbtEnvId(@javax.annotation.Nullable String dbtEnvId) { - this.dbtEnvId = dbtEnvId; - } - - public DbtConnectionRequest projectName(@javax.annotation.Nullable String projectName) { - this.projectName = projectName; - return this; - } - - /** - * Name of the project - * - * @return projectName - */ - @javax.annotation.Nullable - public String getProjectName() { - return projectName; - } - - public void setProjectName(@javax.annotation.Nullable String projectName) { - this.projectName = projectName; - } - - public DbtConnectionRequest fileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - return this; - } - - /** - * Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is Mandatory when - * Import Type is 'ZIP_FILE' - * - * @return fileContent - */ - @javax.annotation.Nullable - public File getFileContent() { - return fileContent; - } - - public void setFileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DbtConnectionRequest dbtConnectionRequest = (DbtConnectionRequest) o; - return Objects.equals(this.connectionName, dbtConnectionRequest.connectionName) - && Objects.equals(this.databaseName, dbtConnectionRequest.databaseName) - && Objects.equals(this.importType, dbtConnectionRequest.importType) - && Objects.equals(this.accessToken, dbtConnectionRequest.accessToken) - && Objects.equals(this.dbtUrl, dbtConnectionRequest.dbtUrl) - && Objects.equals(this.accountId, dbtConnectionRequest.accountId) - && Objects.equals(this.projectId, dbtConnectionRequest.projectId) - && Objects.equals(this.dbtEnvId, dbtConnectionRequest.dbtEnvId) - && Objects.equals(this.projectName, dbtConnectionRequest.projectName) - && Objects.equals(this.fileContent, dbtConnectionRequest.fileContent); - } - - @Override - public int hashCode() { - return Objects.hash( - connectionName, - databaseName, - importType, - accessToken, - dbtUrl, - accountId, - projectId, - dbtEnvId, - projectName, - fileContent); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DbtConnectionRequest {\n"); - sb.append(" connectionName: ").append(toIndentedString(connectionName)).append("\n"); - sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); - sb.append(" importType: ").append(toIndentedString(importType)).append("\n"); - sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); - sb.append(" dbtUrl: ").append(toIndentedString(dbtUrl)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); - sb.append(" dbtEnvId: ").append(toIndentedString(dbtEnvId)).append("\n"); - sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); - sb.append(" fileContent: ").append(toIndentedString(fileContent)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("connection_name"); - openapiFields.add("database_name"); - openapiFields.add("import_type"); - openapiFields.add("access_token"); - openapiFields.add("dbt_url"); - openapiFields.add("account_id"); - openapiFields.add("project_id"); - openapiFields.add("dbt_env_id"); - openapiFields.add("project_name"); - openapiFields.add("file_content"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("connection_name"); - openapiRequiredFields.add("database_name"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DbtConnectionRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DbtConnectionRequest.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in DbtConnectionRequest is not found in" - + " the empty JSON string", - DbtConnectionRequest.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DbtConnectionRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `DbtConnectionRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DbtConnectionRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("connection_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `connection_name` to be a primitive type in the" - + " JSON string but got `%s`", - jsonObj.get("connection_name").toString())); - } - if (!jsonObj.get("database_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `database_name` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("database_name").toString())); - } - if ((jsonObj.get("import_type") != null && !jsonObj.get("import_type").isJsonNull()) - && !jsonObj.get("import_type").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `import_type` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("import_type").toString())); - } - // validate the optional field `import_type` - if (jsonObj.get("import_type") != null && !jsonObj.get("import_type").isJsonNull()) { - ImportTypeEnum.validateJsonElement(jsonObj.get("import_type")); - } - if ((jsonObj.get("access_token") != null && !jsonObj.get("access_token").isJsonNull()) - && !jsonObj.get("access_token").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `access_token` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("access_token").toString())); - } - if ((jsonObj.get("dbt_url") != null && !jsonObj.get("dbt_url").isJsonNull()) - && !jsonObj.get("dbt_url").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_url` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("dbt_url").toString())); - } - if ((jsonObj.get("account_id") != null && !jsonObj.get("account_id").isJsonNull()) - && !jsonObj.get("account_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `account_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("account_id").toString())); - } - if ((jsonObj.get("project_id") != null && !jsonObj.get("project_id").isJsonNull()) - && !jsonObj.get("project_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `project_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("project_id").toString())); - } - if ((jsonObj.get("dbt_env_id") != null && !jsonObj.get("dbt_env_id").isJsonNull()) - && !jsonObj.get("dbt_env_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_env_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("dbt_env_id").toString())); - } - if ((jsonObj.get("project_name") != null && !jsonObj.get("project_name").isJsonNull()) - && !jsonObj.get("project_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `project_name` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("project_name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DbtConnectionRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DbtConnectionRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DbtConnectionRequest.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, DbtConnectionRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DbtConnectionRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of DbtConnectionRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of DbtConnectionRequest - * @throws IOException if the JSON string is invalid with respect to DbtConnectionRequest - */ - public static DbtConnectionRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DbtConnectionRequest.class); - } - - /** - * Convert an instance of DbtConnectionRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequest.java deleted file mode 100644 index 1896b16c..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequest.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.File; -import java.io.IOException; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** DbtGenerateSyncTmlRequest */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class DbtGenerateSyncTmlRequest implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER = - "dbt_connection_identifier"; - - @SerializedName(SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER) - @javax.annotation.Nonnull - private String dbtConnectionIdentifier; - - public static final String SERIALIZED_NAME_FILE_CONTENT = "file_content"; - - @SerializedName(SERIALIZED_NAME_FILE_CONTENT) - @javax.annotation.Nullable - private File fileContent; - - public DbtGenerateSyncTmlRequest() {} - - public DbtGenerateSyncTmlRequest dbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - return this; - } - - /** - * Unique ID of the DBT connection. - * - * @return dbtConnectionIdentifier - */ - @javax.annotation.Nonnull - public String getDbtConnectionIdentifier() { - return dbtConnectionIdentifier; - } - - public void setDbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - } - - public DbtGenerateSyncTmlRequest fileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - return this; - } - - /** - * Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is mandatory if the - * connection was created with import_type ‘ZIP_FILE’ - * - * @return fileContent - */ - @javax.annotation.Nullable - public File getFileContent() { - return fileContent; - } - - public void setFileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DbtGenerateSyncTmlRequest dbtGenerateSyncTmlRequest = (DbtGenerateSyncTmlRequest) o; - return Objects.equals( - this.dbtConnectionIdentifier, - dbtGenerateSyncTmlRequest.dbtConnectionIdentifier) - && Objects.equals(this.fileContent, dbtGenerateSyncTmlRequest.fileContent); - } - - @Override - public int hashCode() { - return Objects.hash(dbtConnectionIdentifier, fileContent); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DbtGenerateSyncTmlRequest {\n"); - sb.append(" dbtConnectionIdentifier: ") - .append(toIndentedString(dbtConnectionIdentifier)) - .append("\n"); - sb.append(" fileContent: ").append(toIndentedString(fileContent)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("dbt_connection_identifier"); - openapiFields.add("file_content"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("dbt_connection_identifier"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DbtGenerateSyncTmlRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DbtGenerateSyncTmlRequest.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in DbtGenerateSyncTmlRequest is not" - + " found in the empty JSON string", - DbtGenerateSyncTmlRequest.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DbtGenerateSyncTmlRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `DbtGenerateSyncTmlRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DbtGenerateSyncTmlRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("dbt_connection_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_connection_identifier` to be a primitive type" - + " in the JSON string but got `%s`", - jsonObj.get("dbt_connection_identifier").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DbtGenerateSyncTmlRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DbtGenerateSyncTmlRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DbtGenerateSyncTmlRequest.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, DbtGenerateSyncTmlRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DbtGenerateSyncTmlRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of DbtGenerateSyncTmlRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of DbtGenerateSyncTmlRequest - * @throws IOException if the JSON string is invalid with respect to DbtGenerateSyncTmlRequest - */ - public static DbtGenerateSyncTmlRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DbtGenerateSyncTmlRequest.class); - } - - /** - * Convert an instance of DbtGenerateSyncTmlRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateTmlRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateTmlRequest.java deleted file mode 100644 index 6b87fce1..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/DbtGenerateTmlRequest.java +++ /dev/null @@ -1,442 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.File; -import java.io.IOException; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** DbtGenerateTmlRequest */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class DbtGenerateTmlRequest implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER = - "dbt_connection_identifier"; - - @SerializedName(SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER) - @javax.annotation.Nonnull - private String dbtConnectionIdentifier; - - public static final String SERIALIZED_NAME_MODEL_TABLES = "model_tables"; - - @SerializedName(SERIALIZED_NAME_MODEL_TABLES) - @javax.annotation.Nullable - private List modelTables; - - /** Mention the worksheet tmls to import */ - @JsonAdapter(ImportWorksheetsEnum.Adapter.class) - public enum ImportWorksheetsEnum { - ALL("ALL"), - - NONE("NONE"), - - SELECTED("SELECTED"); - - private String value; - - ImportWorksheetsEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ImportWorksheetsEnum fromValue(String value) { - for (ImportWorksheetsEnum b : ImportWorksheetsEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ImportWorksheetsEnum enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ImportWorksheetsEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ImportWorksheetsEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ImportWorksheetsEnum.fromValue(value); - } - } - - public static final String SERIALIZED_NAME_IMPORT_WORKSHEETS = "import_worksheets"; - - @SerializedName(SERIALIZED_NAME_IMPORT_WORKSHEETS) - @javax.annotation.Nonnull - private ImportWorksheetsEnum importWorksheets; - - public static final String SERIALIZED_NAME_WORKSHEETS = "worksheets"; - - @SerializedName(SERIALIZED_NAME_WORKSHEETS) - @javax.annotation.Nullable - private List worksheets; - - public static final String SERIALIZED_NAME_FILE_CONTENT = "file_content"; - - @SerializedName(SERIALIZED_NAME_FILE_CONTENT) - @javax.annotation.Nullable - private File fileContent; - - public DbtGenerateTmlRequest() {} - - public DbtGenerateTmlRequest dbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - return this; - } - - /** - * Unique ID of the DBT connection. - * - * @return dbtConnectionIdentifier - */ - @javax.annotation.Nonnull - public String getDbtConnectionIdentifier() { - return dbtConnectionIdentifier; - } - - public void setDbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - } - - public DbtGenerateTmlRequest modelTables( - @javax.annotation.Nullable List modelTables) { - this.modelTables = modelTables; - return this; - } - - public DbtGenerateTmlRequest addModelTablesItem(ModelTableList modelTablesItem) { - if (this.modelTables == null) { - this.modelTables = new ArrayList<>(); - } - this.modelTables.add(modelTablesItem); - return this; - } - - /** - * List of Models and their respective Tables - * - * @return modelTables - */ - @javax.annotation.Nullable - public List getModelTables() { - return modelTables; - } - - public void setModelTables(@javax.annotation.Nullable List modelTables) { - this.modelTables = modelTables; - } - - public DbtGenerateTmlRequest importWorksheets( - @javax.annotation.Nonnull ImportWorksheetsEnum importWorksheets) { - this.importWorksheets = importWorksheets; - return this; - } - - /** - * Mention the worksheet tmls to import - * - * @return importWorksheets - */ - @javax.annotation.Nonnull - public ImportWorksheetsEnum getImportWorksheets() { - return importWorksheets; - } - - public void setImportWorksheets( - @javax.annotation.Nonnull ImportWorksheetsEnum importWorksheets) { - this.importWorksheets = importWorksheets; - } - - public DbtGenerateTmlRequest worksheets(@javax.annotation.Nullable List worksheets) { - this.worksheets = worksheets; - return this; - } - - public DbtGenerateTmlRequest addWorksheetsItem(String worksheetsItem) { - if (this.worksheets == null) { - this.worksheets = new ArrayList<>(); - } - this.worksheets.add(worksheetsItem); - return this; - } - - /** - * List of worksheets is mandatory when import_Worksheets is type SELECTED - * - * @return worksheets - */ - @javax.annotation.Nullable - public List getWorksheets() { - return worksheets; - } - - public void setWorksheets(@javax.annotation.Nullable List worksheets) { - this.worksheets = worksheets; - } - - public DbtGenerateTmlRequest fileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - return this; - } - - /** - * Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is mandatory if the - * connection was created with import_type ‘ZIP_FILE’ - * - * @return fileContent - */ - @javax.annotation.Nullable - public File getFileContent() { - return fileContent; - } - - public void setFileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DbtGenerateTmlRequest dbtGenerateTmlRequest = (DbtGenerateTmlRequest) o; - return Objects.equals( - this.dbtConnectionIdentifier, dbtGenerateTmlRequest.dbtConnectionIdentifier) - && Objects.equals(this.modelTables, dbtGenerateTmlRequest.modelTables) - && Objects.equals(this.importWorksheets, dbtGenerateTmlRequest.importWorksheets) - && Objects.equals(this.worksheets, dbtGenerateTmlRequest.worksheets) - && Objects.equals(this.fileContent, dbtGenerateTmlRequest.fileContent); - } - - @Override - public int hashCode() { - return Objects.hash( - dbtConnectionIdentifier, modelTables, importWorksheets, worksheets, fileContent); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DbtGenerateTmlRequest {\n"); - sb.append(" dbtConnectionIdentifier: ") - .append(toIndentedString(dbtConnectionIdentifier)) - .append("\n"); - sb.append(" modelTables: ").append(toIndentedString(modelTables)).append("\n"); - sb.append(" importWorksheets: ").append(toIndentedString(importWorksheets)).append("\n"); - sb.append(" worksheets: ").append(toIndentedString(worksheets)).append("\n"); - sb.append(" fileContent: ").append(toIndentedString(fileContent)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("dbt_connection_identifier"); - openapiFields.add("model_tables"); - openapiFields.add("import_worksheets"); - openapiFields.add("worksheets"); - openapiFields.add("file_content"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("dbt_connection_identifier"); - openapiRequiredFields.add("import_worksheets"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DbtGenerateTmlRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!DbtGenerateTmlRequest.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in DbtGenerateTmlRequest is not found in" - + " the empty JSON string", - DbtGenerateTmlRequest.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!DbtGenerateTmlRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `DbtGenerateTmlRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : DbtGenerateTmlRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("dbt_connection_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_connection_identifier` to be a primitive type" - + " in the JSON string but got `%s`", - jsonObj.get("dbt_connection_identifier").toString())); - } - if (jsonObj.get("model_tables") != null && !jsonObj.get("model_tables").isJsonNull()) { - JsonArray jsonArraymodelTables = jsonObj.getAsJsonArray("model_tables"); - if (jsonArraymodelTables != null) { - // ensure the json data is an array - if (!jsonObj.get("model_tables").isJsonArray()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `model_tables` to be an array in the JSON" - + " string but got `%s`", - jsonObj.get("model_tables").toString())); - } - - // validate the optional field `model_tables` (array) - for (int i = 0; i < jsonArraymodelTables.size(); i++) { - ModelTableList.validateJsonElement(jsonArraymodelTables.get(i)); - } - ; - } - } - if (!jsonObj.get("import_worksheets").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `import_worksheets` to be a primitive type in the" - + " JSON string but got `%s`", - jsonObj.get("import_worksheets").toString())); - } - // validate the required field `import_worksheets` - ImportWorksheetsEnum.validateJsonElement(jsonObj.get("import_worksheets")); - // ensure the optional json data is an array if present - if (jsonObj.get("worksheets") != null - && !jsonObj.get("worksheets").isJsonNull() - && !jsonObj.get("worksheets").isJsonArray()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `worksheets` to be an array in the JSON string but" - + " got `%s`", - jsonObj.get("worksheets").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!DbtGenerateTmlRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'DbtGenerateTmlRequest' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(DbtGenerateTmlRequest.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, DbtGenerateTmlRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public DbtGenerateTmlRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of DbtGenerateTmlRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of DbtGenerateTmlRequest - * @throws IOException if the JSON string is invalid with respect to DbtGenerateTmlRequest - */ - public static DbtGenerateTmlRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, DbtGenerateTmlRequest.class); - } - - /** - * Convert an instance of DbtGenerateTmlRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/InputVariableValue.java b/sdks/java/src/main/java/com/thoughtspot/client/model/InputVariableValue.java deleted file mode 100644 index a51eaa9c..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/InputVariableValue.java +++ /dev/null @@ -1,422 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.IOException; -import java.io.Serializable; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; -import org.openapitools.jackson.nullable.JsonNullable; - -/** InputVariableValue */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class InputVariableValue implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_VALUE = "value"; - - @SerializedName(SERIALIZED_NAME_VALUE) - @javax.annotation.Nonnull - private String value; - - public static final String SERIALIZED_NAME_ORG_IDENTIFIER = "org_identifier"; - - @SerializedName(SERIALIZED_NAME_ORG_IDENTIFIER) - @javax.annotation.Nonnull - private String orgIdentifier; - - /** Principal type */ - @JsonAdapter(PrincipalTypeEnum.Adapter.class) - public enum PrincipalTypeEnum { - USER("USER"), - - USER_GROUP("USER_GROUP"); - - private String value; - - PrincipalTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static PrincipalTypeEnum fromValue(String value) { - for (PrincipalTypeEnum b : PrincipalTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final PrincipalTypeEnum enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public PrincipalTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return PrincipalTypeEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - PrincipalTypeEnum.fromValue(value); - } - } - - public static final String SERIALIZED_NAME_PRINCIPAL_TYPE = "principal_type"; - - @SerializedName(SERIALIZED_NAME_PRINCIPAL_TYPE) - @javax.annotation.Nullable - private PrincipalTypeEnum principalType; - - public static final String SERIALIZED_NAME_PRINCIPAL_IDENTIFIER = "principal_identifier"; - - @SerializedName(SERIALIZED_NAME_PRINCIPAL_IDENTIFIER) - @javax.annotation.Nullable - private String principalIdentifier; - - public static final String SERIALIZED_NAME_PRIORITY = "priority"; - - @SerializedName(SERIALIZED_NAME_PRIORITY) - @javax.annotation.Nullable - private Integer priority; - - public InputVariableValue() {} - - public InputVariableValue value(@javax.annotation.Nonnull String value) { - this.value = value; - return this; - } - - /** - * The connection property value - * - * @return value - */ - @javax.annotation.Nonnull - public String getValue() { - return value; - } - - public void setValue(@javax.annotation.Nonnull String value) { - this.value = value; - } - - public InputVariableValue orgIdentifier(@javax.annotation.Nonnull String orgIdentifier) { - this.orgIdentifier = orgIdentifier; - return this; - } - - /** - * The unique name of the org - * - * @return orgIdentifier - */ - @javax.annotation.Nonnull - public String getOrgIdentifier() { - return orgIdentifier; - } - - public void setOrgIdentifier(@javax.annotation.Nonnull String orgIdentifier) { - this.orgIdentifier = orgIdentifier; - } - - public InputVariableValue principalType( - @javax.annotation.Nullable PrincipalTypeEnum principalType) { - this.principalType = principalType; - return this; - } - - /** - * Principal type - * - * @return principalType - */ - @javax.annotation.Nullable - public PrincipalTypeEnum getPrincipalType() { - return principalType; - } - - public void setPrincipalType(@javax.annotation.Nullable PrincipalTypeEnum principalType) { - this.principalType = principalType; - } - - public InputVariableValue principalIdentifier( - @javax.annotation.Nullable String principalIdentifier) { - this.principalIdentifier = principalIdentifier; - return this; - } - - /** - * Unique ID or name of the principal - * - * @return principalIdentifier - */ - @javax.annotation.Nullable - public String getPrincipalIdentifier() { - return principalIdentifier; - } - - public void setPrincipalIdentifier(@javax.annotation.Nullable String principalIdentifier) { - this.principalIdentifier = principalIdentifier; - } - - public InputVariableValue priority(@javax.annotation.Nullable Integer priority) { - this.priority = priority; - return this; - } - - /** - * The priority assigned to this value. If there are 2 matching values, the one with the higher - * priority will be picked. - * - * @return priority - */ - @javax.annotation.Nullable - public Integer getPriority() { - return priority; - } - - public void setPriority(@javax.annotation.Nullable Integer priority) { - this.priority = priority; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InputVariableValue inputVariableValue = (InputVariableValue) o; - return Objects.equals(this.value, inputVariableValue.value) - && Objects.equals(this.orgIdentifier, inputVariableValue.orgIdentifier) - && Objects.equals(this.principalType, inputVariableValue.principalType) - && Objects.equals(this.principalIdentifier, inputVariableValue.principalIdentifier) - && Objects.equals(this.priority, inputVariableValue.priority); - } - - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b - || (a != null - && b != null - && a.isPresent() - && b.isPresent() - && Objects.deepEquals(a.get(), b.get())); - } - - @Override - public int hashCode() { - return Objects.hash(value, orgIdentifier, principalType, principalIdentifier, priority); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InputVariableValue {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" orgIdentifier: ").append(toIndentedString(orgIdentifier)).append("\n"); - sb.append(" principalType: ").append(toIndentedString(principalType)).append("\n"); - sb.append(" principalIdentifier: ") - .append(toIndentedString(principalIdentifier)) - .append("\n"); - sb.append(" priority: ").append(toIndentedString(priority)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("value"); - openapiFields.add("org_identifier"); - openapiFields.add("principal_type"); - openapiFields.add("principal_identifier"); - openapiFields.add("priority"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("value"); - openapiRequiredFields.add("org_identifier"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InputVariableValue - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!InputVariableValue.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in InputVariableValue is not found in" - + " the empty JSON string", - InputVariableValue.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!InputVariableValue.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `InputVariableValue` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : InputVariableValue.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("value").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `value` to be a primitive type in the JSON string" - + " but got `%s`", - jsonObj.get("value").toString())); - } - if (!jsonObj.get("org_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `org_identifier` to be a primitive type in the" - + " JSON string but got `%s`", - jsonObj.get("org_identifier").toString())); - } - if ((jsonObj.get("principal_type") != null && !jsonObj.get("principal_type").isJsonNull()) - && !jsonObj.get("principal_type").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `principal_type` to be a primitive type in the" - + " JSON string but got `%s`", - jsonObj.get("principal_type").toString())); - } - // validate the optional field `principal_type` - if (jsonObj.get("principal_type") != null && !jsonObj.get("principal_type").isJsonNull()) { - PrincipalTypeEnum.validateJsonElement(jsonObj.get("principal_type")); - } - if ((jsonObj.get("principal_identifier") != null - && !jsonObj.get("principal_identifier").isJsonNull()) - && !jsonObj.get("principal_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `principal_identifier` to be a primitive type in" - + " the JSON string but got `%s`", - jsonObj.get("principal_identifier").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!InputVariableValue.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'InputVariableValue' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(InputVariableValue.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, InputVariableValue value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public InputVariableValue read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of InputVariableValue given an JSON string - * - * @param jsonString JSON string - * @return An instance of InputVariableValue - * @throws IOException if the JSON string is invalid with respect to InputVariableValue - */ - public static InputVariableValue fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, InputVariableValue.class); - } - - /** - * Convert an instance of InputVariableValue to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateDbtConnectionRequest.java b/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateDbtConnectionRequest.java deleted file mode 100644 index 25c6db8c..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/UpdateDbtConnectionRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.File; -import java.io.IOException; -import java.io.Serializable; -import java.util.HashSet; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** UpdateDbtConnectionRequest */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class UpdateDbtConnectionRequest implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER = - "dbt_connection_identifier"; - - @SerializedName(SERIALIZED_NAME_DBT_CONNECTION_IDENTIFIER) - @javax.annotation.Nonnull - private String dbtConnectionIdentifier; - - public static final String SERIALIZED_NAME_CONNECTION_NAME = "connection_name"; - - @SerializedName(SERIALIZED_NAME_CONNECTION_NAME) - @javax.annotation.Nullable - private String connectionName; - - public static final String SERIALIZED_NAME_DATABASE_NAME = "database_name"; - - @SerializedName(SERIALIZED_NAME_DATABASE_NAME) - @javax.annotation.Nullable - private String databaseName; - - /** Mention type of Import */ - @JsonAdapter(ImportTypeEnum.Adapter.class) - public enum ImportTypeEnum { - DBT_CLOUD("DBT_CLOUD"), - - ZIP_FILE("ZIP_FILE"); - - private String value; - - ImportTypeEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static ImportTypeEnum fromValue(String value) { - for (ImportTypeEnum b : ImportTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final ImportTypeEnum enumeration) - throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public ImportTypeEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return ImportTypeEnum.fromValue(value); - } - } - - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - String value = jsonElement.getAsString(); - ImportTypeEnum.fromValue(value); - } - } - - public static final String SERIALIZED_NAME_IMPORT_TYPE = "import_type"; - - @SerializedName(SERIALIZED_NAME_IMPORT_TYPE) - @javax.annotation.Nullable - private ImportTypeEnum importType = ImportTypeEnum.DBT_CLOUD; - - public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; - - @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) - @javax.annotation.Nullable - private String accessToken; - - public static final String SERIALIZED_NAME_DBT_URL = "dbt_url"; - - @SerializedName(SERIALIZED_NAME_DBT_URL) - @javax.annotation.Nullable - private String dbtUrl; - - public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id"; - - @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) - @javax.annotation.Nullable - private String accountId; - - public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; - - @SerializedName(SERIALIZED_NAME_PROJECT_ID) - @javax.annotation.Nullable - private String projectId; - - public static final String SERIALIZED_NAME_DBT_ENV_ID = "dbt_env_id"; - - @SerializedName(SERIALIZED_NAME_DBT_ENV_ID) - @javax.annotation.Nullable - private String dbtEnvId; - - public static final String SERIALIZED_NAME_PROJECT_NAME = "project_name"; - - @SerializedName(SERIALIZED_NAME_PROJECT_NAME) - @javax.annotation.Nullable - private String projectName; - - public static final String SERIALIZED_NAME_FILE_CONTENT = "file_content"; - - @SerializedName(SERIALIZED_NAME_FILE_CONTENT) - @javax.annotation.Nullable - private File fileContent; - - public UpdateDbtConnectionRequest() {} - - public UpdateDbtConnectionRequest dbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - return this; - } - - /** - * Unique ID of the DBT Connection. - * - * @return dbtConnectionIdentifier - */ - @javax.annotation.Nonnull - public String getDbtConnectionIdentifier() { - return dbtConnectionIdentifier; - } - - public void setDbtConnectionIdentifier( - @javax.annotation.Nonnull String dbtConnectionIdentifier) { - this.dbtConnectionIdentifier = dbtConnectionIdentifier; - } - - public UpdateDbtConnectionRequest connectionName( - @javax.annotation.Nullable String connectionName) { - this.connectionName = connectionName; - return this; - } - - /** - * Name of the connection. - * - * @return connectionName - */ - @javax.annotation.Nullable - public String getConnectionName() { - return connectionName; - } - - public void setConnectionName(@javax.annotation.Nullable String connectionName) { - this.connectionName = connectionName; - } - - public UpdateDbtConnectionRequest databaseName(@javax.annotation.Nullable String databaseName) { - this.databaseName = databaseName; - return this; - } - - /** - * Name of the Database. - * - * @return databaseName - */ - @javax.annotation.Nullable - public String getDatabaseName() { - return databaseName; - } - - public void setDatabaseName(@javax.annotation.Nullable String databaseName) { - this.databaseName = databaseName; - } - - public UpdateDbtConnectionRequest importType( - @javax.annotation.Nullable ImportTypeEnum importType) { - this.importType = importType; - return this; - } - - /** - * Mention type of Import - * - * @return importType - */ - @javax.annotation.Nullable - public ImportTypeEnum getImportType() { - return importType; - } - - public void setImportType(@javax.annotation.Nullable ImportTypeEnum importType) { - this.importType = importType; - } - - public UpdateDbtConnectionRequest accessToken(@javax.annotation.Nullable String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * Access token is mandatory when Import_Type is DBT_CLOUD. - * - * @return accessToken - */ - @javax.annotation.Nullable - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(@javax.annotation.Nullable String accessToken) { - this.accessToken = accessToken; - } - - public UpdateDbtConnectionRequest dbtUrl(@javax.annotation.Nullable String dbtUrl) { - this.dbtUrl = dbtUrl; - return this; - } - - /** - * DBT URL is mandatory when Import_Type is DBT_CLOUD. - * - * @return dbtUrl - */ - @javax.annotation.Nullable - public String getDbtUrl() { - return dbtUrl; - } - - public void setDbtUrl(@javax.annotation.Nullable String dbtUrl) { - this.dbtUrl = dbtUrl; - } - - public UpdateDbtConnectionRequest accountId(@javax.annotation.Nullable String accountId) { - this.accountId = accountId; - return this; - } - - /** - * Account ID is mandatory when Import_Type is DBT_CLOUD - * - * @return accountId - */ - @javax.annotation.Nullable - public String getAccountId() { - return accountId; - } - - public void setAccountId(@javax.annotation.Nullable String accountId) { - this.accountId = accountId; - } - - public UpdateDbtConnectionRequest projectId(@javax.annotation.Nullable String projectId) { - this.projectId = projectId; - return this; - } - - /** - * Project ID is mandatory when Import_Type is DBT_CLOUD - * - * @return projectId - */ - @javax.annotation.Nullable - public String getProjectId() { - return projectId; - } - - public void setProjectId(@javax.annotation.Nullable String projectId) { - this.projectId = projectId; - } - - public UpdateDbtConnectionRequest dbtEnvId(@javax.annotation.Nullable String dbtEnvId) { - this.dbtEnvId = dbtEnvId; - return this; - } - - /** - * DBT Environment ID\" - * - * @return dbtEnvId - */ - @javax.annotation.Nullable - public String getDbtEnvId() { - return dbtEnvId; - } - - public void setDbtEnvId(@javax.annotation.Nullable String dbtEnvId) { - this.dbtEnvId = dbtEnvId; - } - - public UpdateDbtConnectionRequest projectName(@javax.annotation.Nullable String projectName) { - this.projectName = projectName; - return this; - } - - /** - * Name of the project - * - * @return projectName - */ - @javax.annotation.Nullable - public String getProjectName() { - return projectName; - } - - public void setProjectName(@javax.annotation.Nullable String projectName) { - this.projectName = projectName; - } - - public UpdateDbtConnectionRequest fileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - return this; - } - - /** - * Upload DBT Manifest and Catalog artifact files as a ZIP file. This field is Mandatory when - * Import Type is 'ZIP_FILE' - * - * @return fileContent - */ - @javax.annotation.Nullable - public File getFileContent() { - return fileContent; - } - - public void setFileContent(@javax.annotation.Nullable File fileContent) { - this.fileContent = fileContent; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateDbtConnectionRequest updateDbtConnectionRequest = (UpdateDbtConnectionRequest) o; - return Objects.equals( - this.dbtConnectionIdentifier, - updateDbtConnectionRequest.dbtConnectionIdentifier) - && Objects.equals(this.connectionName, updateDbtConnectionRequest.connectionName) - && Objects.equals(this.databaseName, updateDbtConnectionRequest.databaseName) - && Objects.equals(this.importType, updateDbtConnectionRequest.importType) - && Objects.equals(this.accessToken, updateDbtConnectionRequest.accessToken) - && Objects.equals(this.dbtUrl, updateDbtConnectionRequest.dbtUrl) - && Objects.equals(this.accountId, updateDbtConnectionRequest.accountId) - && Objects.equals(this.projectId, updateDbtConnectionRequest.projectId) - && Objects.equals(this.dbtEnvId, updateDbtConnectionRequest.dbtEnvId) - && Objects.equals(this.projectName, updateDbtConnectionRequest.projectName) - && Objects.equals(this.fileContent, updateDbtConnectionRequest.fileContent); - } - - @Override - public int hashCode() { - return Objects.hash( - dbtConnectionIdentifier, - connectionName, - databaseName, - importType, - accessToken, - dbtUrl, - accountId, - projectId, - dbtEnvId, - projectName, - fileContent); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateDbtConnectionRequest {\n"); - sb.append(" dbtConnectionIdentifier: ") - .append(toIndentedString(dbtConnectionIdentifier)) - .append("\n"); - sb.append(" connectionName: ").append(toIndentedString(connectionName)).append("\n"); - sb.append(" databaseName: ").append(toIndentedString(databaseName)).append("\n"); - sb.append(" importType: ").append(toIndentedString(importType)).append("\n"); - sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); - sb.append(" dbtUrl: ").append(toIndentedString(dbtUrl)).append("\n"); - sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); - sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); - sb.append(" dbtEnvId: ").append(toIndentedString(dbtEnvId)).append("\n"); - sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); - sb.append(" fileContent: ").append(toIndentedString(fileContent)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("dbt_connection_identifier"); - openapiFields.add("connection_name"); - openapiFields.add("database_name"); - openapiFields.add("import_type"); - openapiFields.add("access_token"); - openapiFields.add("dbt_url"); - openapiFields.add("account_id"); - openapiFields.add("project_id"); - openapiFields.add("dbt_env_id"); - openapiFields.add("project_name"); - openapiFields.add("file_content"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("dbt_connection_identifier"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateDbtConnectionRequest - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!UpdateDbtConnectionRequest.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in UpdateDbtConnectionRequest is not" - + " found in the empty JSON string", - UpdateDbtConnectionRequest.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!UpdateDbtConnectionRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `UpdateDbtConnectionRequest` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : UpdateDbtConnectionRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("dbt_connection_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_connection_identifier` to be a primitive type" - + " in the JSON string but got `%s`", - jsonObj.get("dbt_connection_identifier").toString())); - } - if ((jsonObj.get("connection_name") != null && !jsonObj.get("connection_name").isJsonNull()) - && !jsonObj.get("connection_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `connection_name` to be a primitive type in the" - + " JSON string but got `%s`", - jsonObj.get("connection_name").toString())); - } - if ((jsonObj.get("database_name") != null && !jsonObj.get("database_name").isJsonNull()) - && !jsonObj.get("database_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `database_name` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("database_name").toString())); - } - if ((jsonObj.get("import_type") != null && !jsonObj.get("import_type").isJsonNull()) - && !jsonObj.get("import_type").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `import_type` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("import_type").toString())); - } - // validate the optional field `import_type` - if (jsonObj.get("import_type") != null && !jsonObj.get("import_type").isJsonNull()) { - ImportTypeEnum.validateJsonElement(jsonObj.get("import_type")); - } - if ((jsonObj.get("access_token") != null && !jsonObj.get("access_token").isJsonNull()) - && !jsonObj.get("access_token").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `access_token` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("access_token").toString())); - } - if ((jsonObj.get("dbt_url") != null && !jsonObj.get("dbt_url").isJsonNull()) - && !jsonObj.get("dbt_url").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_url` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("dbt_url").toString())); - } - if ((jsonObj.get("account_id") != null && !jsonObj.get("account_id").isJsonNull()) - && !jsonObj.get("account_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `account_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("account_id").toString())); - } - if ((jsonObj.get("project_id") != null && !jsonObj.get("project_id").isJsonNull()) - && !jsonObj.get("project_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `project_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("project_id").toString())); - } - if ((jsonObj.get("dbt_env_id") != null && !jsonObj.get("dbt_env_id").isJsonNull()) - && !jsonObj.get("dbt_env_id").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `dbt_env_id` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("dbt_env_id").toString())); - } - if ((jsonObj.get("project_name") != null && !jsonObj.get("project_name").isJsonNull()) - && !jsonObj.get("project_name").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `project_name` to be a primitive type in the JSON" - + " string but got `%s`", - jsonObj.get("project_name").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!UpdateDbtConnectionRequest.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'UpdateDbtConnectionRequest' and its - // subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(UpdateDbtConnectionRequest.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, UpdateDbtConnectionRequest value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public UpdateDbtConnectionRequest read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of UpdateDbtConnectionRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateDbtConnectionRequest - * @throws IOException if the JSON string is invalid with respect to UpdateDbtConnectionRequest - */ - public static UpdateDbtConnectionRequest fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, UpdateDbtConnectionRequest.class); - } - - /** - * Convert an instance of UpdateDbtConnectionRequest to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/main/java/com/thoughtspot/client/model/VariableValueInput.java b/sdks/java/src/main/java/com/thoughtspot/client/model/VariableValueInput.java deleted file mode 100644 index 5c02e9a4..00000000 --- a/sdks/java/src/main/java/com/thoughtspot/client/model/VariableValueInput.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapter; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.annotations.SerializedName; -import com.google.gson.reflect.TypeToken; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import com.thoughtspot.client.JSON; -import java.io.IOException; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; - -/** Input for variable value update */ -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -public class VariableValueInput implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_VARIABLE_IDENTIFIER = "variable_identifier"; - - @SerializedName(SERIALIZED_NAME_VARIABLE_IDENTIFIER) - @javax.annotation.Nonnull - private String variableIdentifier; - - public static final String SERIALIZED_NAME_VARIABLE_VALUES = "variable_values"; - - @SerializedName(SERIALIZED_NAME_VARIABLE_VALUES) - @javax.annotation.Nonnull - private List variableValues; - - public VariableValueInput() {} - - public VariableValueInput variableIdentifier( - @javax.annotation.Nonnull String variableIdentifier) { - this.variableIdentifier = variableIdentifier; - return this; - } - - /** - * ID or Name of the variable - * - * @return variableIdentifier - */ - @javax.annotation.Nonnull - public String getVariableIdentifier() { - return variableIdentifier; - } - - public void setVariableIdentifier(@javax.annotation.Nonnull String variableIdentifier) { - this.variableIdentifier = variableIdentifier; - } - - public VariableValueInput variableValues( - @javax.annotation.Nonnull List variableValues) { - this.variableValues = variableValues; - return this; - } - - public VariableValueInput addVariableValuesItem(InputVariableValue variableValuesItem) { - if (this.variableValues == null) { - this.variableValues = new ArrayList<>(); - } - this.variableValues.add(variableValuesItem); - return this; - } - - /** - * Values of the variable - * - * @return variableValues - */ - @javax.annotation.Nonnull - public List getVariableValues() { - return variableValues; - } - - public void setVariableValues( - @javax.annotation.Nonnull List variableValues) { - this.variableValues = variableValues; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VariableValueInput variableValueInput = (VariableValueInput) o; - return Objects.equals(this.variableIdentifier, variableValueInput.variableIdentifier) - && Objects.equals(this.variableValues, variableValueInput.variableValues); - } - - @Override - public int hashCode() { - return Objects.hash(variableIdentifier, variableValues); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VariableValueInput {\n"); - sb.append(" variableIdentifier: ") - .append(toIndentedString(variableIdentifier)) - .append("\n"); - sb.append(" variableValues: ").append(toIndentedString(variableValues)).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 "); - } - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(); - openapiFields.add("variable_identifier"); - openapiFields.add("variable_values"); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("variable_identifier"); - openapiRequiredFields.add("variable_values"); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VariableValueInput - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!VariableValueInput.openapiRequiredFields - .isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException( - String.format( - "The required field(s) %s in VariableValueInput is not found in" - + " the empty JSON string", - VariableValueInput.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!VariableValueInput.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException( - String.format( - "The field `%s` in the JSON string is not defined in the" - + " `VariableValueInput` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : VariableValueInput.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException( - String.format( - "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("variable_identifier").isJsonPrimitive()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `variable_identifier` to be a primitive type in" - + " the JSON string but got `%s`", - jsonObj.get("variable_identifier").toString())); - } - // ensure the json data is an array - if (!jsonObj.get("variable_values").isJsonArray()) { - throw new IllegalArgumentException( - String.format( - "Expected the field `variable_values` to be an array in the JSON" - + " string but got `%s`", - jsonObj.get("variable_values").toString())); - } - - JsonArray jsonArrayvariableValues = jsonObj.getAsJsonArray("variable_values"); - // validate the required field `variable_values` (array) - for (int i = 0; i < jsonArrayvariableValues.size(); i++) { - InputVariableValue.validateJsonElement(jsonArrayvariableValues.get(i)); - } - ; - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!VariableValueInput.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'VariableValueInput' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = - gson.getDelegateAdapter(this, TypeToken.get(VariableValueInput.class)); - - return (TypeAdapter) - new TypeAdapter() { - @Override - public void write(JsonWriter out, VariableValueInput value) - throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public VariableValueInput read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - }.nullSafe(); - } - } - - /** - * Create an instance of VariableValueInput given an JSON string - * - * @param jsonString JSON string - * @return An instance of VariableValueInput - * @throws IOException if the JSON string is invalid with respect to VariableValueInput - */ - public static VariableValueInput fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, VariableValueInput.class); - } - - /** - * Convert an instance of VariableValueInput to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/EmailCustomisationApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/EmailCustomisationApiTest.java deleted file mode 100644 index 4bb54597..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/EmailCustomisationApiTest.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.api; - -import com.thoughtspot.client.ApiException; -import com.thoughtspot.client.model.CreateEmailCustomisationRequest; -import com.thoughtspot.client.model.CreateEmailCustomisationResponse; -import java.util.List; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - -/** API tests for EmailCustomisationApi */ -@Disabled -public class EmailCustomisationApiTest { - - private final EmailCustomisationApi api = new EmailCustomisationApi(); - - /** - * Version: 10.10.0.cl or later Creates a custom configuration for the email customisation #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines To create a custom confuguration: 1. Pass these parameters in - * your API request. - A JSON map of configuration attributes `template_properties`. - * The following example shows the configuration attribures for a csutom configuration: - * ``` { { \"logoUrl\": \"<logo_url>\", - * \"homeUrl\": \"<home_url>\", \"productName\": - * \"<Company Name in the Mail>\", \"footerAddress\": - * \"<address to be visible in the footer>\", \"ctaButtonBgColor\": - * \"#444DEA\", \"ctaTextFontColor\": \"#FFFFFF\", - * \"primaryBgColor\": \"#D3DEF0\", \"hideMobileAppNudge\": - * <true/false>, \"hideTsVocabularyDefinitions\": <true/false>e, - * \"hideProductName\": <true/false>, \"hideFooterPhone\": - * <true/false>, \"hideFooterAddress\": <true/false>, - * \"hidePrivacyPolicy\": <true/false>, \"hideManageNotification\": - * <true/false>, \"fontfamily\": \"<to maintain a single font in the - * entire email>\" } } ``` - * - * @throws ApiException if the Api call fails - */ - @Test - public void createEmailCustomisationTest() throws ApiException { - CreateEmailCustomisationRequest createEmailCustomisationRequest = null; - CreateEmailCustomisationResponse response = - api.createEmailCustomisation(createEmailCustomisationRequest); - // TODO: test validations - } - - /** - * Version: 10.10.0.cl or later Deletes the configuration for the email customisation. #### - * Pre-requisites Requires `DEVELOPER` (**has developer privilege**) or - * `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If [Role-Based Access - * Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled on your instance, - * the `_Has developer privilege` privilege is required. Coms should be enabled on the - * cluster. #### Usage guidelines Deletes the configuration available for the cluster/org. Pass - * the `template_identifier` in the API request. Note: `template_identifier` - * can be fetched from search API request. - * - * @throws ApiException if the Api call fails - */ - @Test - public void deleteEmailCustomisationTest() throws ApiException { - String templateIdentifier = null; - api.deleteEmailCustomisation(templateIdentifier); - // TODO: test validations - } - - /** - * Version: 10.10.0.cl or later Search the email customisation configuration if any set for the - * ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. #### Usage guidelines To get the list of configurations set in the - * cluster/org. - * - * @throws ApiException if the Api call fails - */ - @Test - public void searchEmailCustomisationTest() throws ApiException { - List response = api.searchEmailCustomisation(); - // TODO: test validations - } - - /** - * Version: 10.10.0.cl or later Validates the email customisation configuration if any set for - * the ThoughtSpot system. #### Pre-requisites Requires `DEVELOPER` (**has developer - * privilege**) or `ADMINISTRATION` (**Can administer ThoughtSpot**) privilege. If - * [Role-Based Access Control (RBAC)](https://developers.thoughtspot.com/docs/rbac) is enabled - * on your instance, the `_Has developer privilege` privilege is required. Coms should - * be enabled on the cluster. - * - * @throws ApiException if the Api call fails - */ - @Test - public void validateEmailCustomisationTest() throws ApiException { - api.validateEmailCustomisation(); - // TODO: test validations - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/ReportsApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/ReportsApiTest.java index 24d6712b..c038ccca 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/ReportsApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/ReportsApiTest.java @@ -38,15 +38,16 @@ public void exportAnswerReportTest() throws ApiException { } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -58,7 +59,11 @@ public void exportAnswerReportTest() throws ApiException { * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @throws ApiException if the Api call fails */ diff --git a/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java b/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java index 93a6f049..070cc315 100644 --- a/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java +++ b/sdks/java/src/test/java/com/thoughtspot/client/api/ThoughtSpotRestApiTest.java @@ -1315,15 +1315,16 @@ public void exportAnswerReportTest() throws ApiException { } /** - * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF or PNG file - * format. Requires at least view access to the Liveboard. #### Usage guidelines In the request - * body, specify the GUID or name of the Liveboard. To generate a Liveboard report with specific - * visualizations, add GUIDs or names of the visualizations. The default `file_format` - * is PDF. For PDF downloads, you can specify additional parameters to customize the page - * orientation and include or exclude the cover page, logo, footer text, and page numbers. - * Similar customization options are also available for PNG output. **NOTE**: The downloadable - * file returned in API response file is extensionless. Please rename the downloaded file by - * typing in the relevant extension. Optionally, you can define [runtime + * Version: 9.0.0.cl or later Exports a Liveboard and its visualizations in PDF, PNG, or CSV + * file format. Requires at least view access to the Liveboard. #### Usage guidelines In the + * request body, specify the GUID or name of the Liveboard. To generate a Liveboard report with + * specific visualizations, add GUIDs or names of the visualizations. The default + * `file_format` is CSV. For PDF exports, you can specify additional parameters to + * customize the page orientation and include or exclude the cover page, logo, footer text, and + * page numbers. Similar customization options are available for PNG exports. CSV exports do not + * support customization options. **NOTE**: The downloadable file returned in API response file + * is extensionless. Please rename the downloaded file by typing in the relevant extension. + * Optionally, you can define [runtime * overrides](https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_runtime_overrides) * to apply to the Answer data. To include unsaved changes in the report, pass the * `transient_pinboard_content` script generated from the @@ -1335,7 +1336,11 @@ public void exportAnswerReportTest() throws ApiException { * the PNG format in the resolution of your choice. To enable this on your instance, contact * ThoughtSpot support. When this feature is enabled, the options * `include_cover_page`,`include_filter_page` within the - * `png_options` will not be available for PNG exports. + * `png_options` will not be available for PNG exports. **NOTE**: Starting with the + * ThoughtSpot Cloud 26.2.0.cl release, Liveboards can be exported in CSV format. All + * visualizations in the Liveboard can be exported as individual CSV files. If multiple + * visualizations are selected or if the entire Liveboard is exported, the output is returned as + * a .zip file containing the CSV files for each visualization. * * @throws ApiException if the Api call fails */ diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationRequestTest.java deleted file mode 100644 index c7d304db..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationRequestTest.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateEmailCustomisationRequest */ -public class CreateEmailCustomisationRequestTest { - private final CreateEmailCustomisationRequest model = new CreateEmailCustomisationRequest(); - - /** Model tests for CreateEmailCustomisationRequest */ - @Test - public void testCreateEmailCustomisationRequest() { - // TODO: test CreateEmailCustomisationRequest - } - - /** Test the property 'templateProperties' */ - @Test - public void templatePropertiesTest() { - // TODO: test templateProperties - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationResponseTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationResponseTest.java deleted file mode 100644 index b1067e78..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/CreateEmailCustomisationResponseTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for CreateEmailCustomisationResponse */ -public class CreateEmailCustomisationResponseTest { - private final CreateEmailCustomisationResponse model = new CreateEmailCustomisationResponse(); - - /** Model tests for CreateEmailCustomisationResponse */ - @Test - public void testCreateEmailCustomisationResponse() { - // TODO: test CreateEmailCustomisationResponse - } - - /** Test the property 'tenantId' */ - @Test - public void tenantIdTest() { - // TODO: test tenantId - } - - /** Test the property 'org' */ - @Test - public void orgTest() { - // TODO: test org - } - - /** Test the property 'name' */ - @Test - public void nameTest() { - // TODO: test name - } - - /** Test the property 'templateProperties' */ - @Test - public void templatePropertiesTest() { - // TODO: test templateProperties - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtConnectionRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/DbtConnectionRequestTest.java deleted file mode 100644 index d95d5ce0..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtConnectionRequestTest.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for DbtConnectionRequest */ -public class DbtConnectionRequestTest { - private final DbtConnectionRequest model = new DbtConnectionRequest(); - - /** Model tests for DbtConnectionRequest */ - @Test - public void testDbtConnectionRequest() { - // TODO: test DbtConnectionRequest - } - - /** Test the property 'connectionName' */ - @Test - public void connectionNameTest() { - // TODO: test connectionName - } - - /** Test the property 'databaseName' */ - @Test - public void databaseNameTest() { - // TODO: test databaseName - } - - /** Test the property 'importType' */ - @Test - public void importTypeTest() { - // TODO: test importType - } - - /** Test the property 'accessToken' */ - @Test - public void accessTokenTest() { - // TODO: test accessToken - } - - /** Test the property 'dbtUrl' */ - @Test - public void dbtUrlTest() { - // TODO: test dbtUrl - } - - /** Test the property 'accountId' */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'projectId' */ - @Test - public void projectIdTest() { - // TODO: test projectId - } - - /** Test the property 'dbtEnvId' */ - @Test - public void dbtEnvIdTest() { - // TODO: test dbtEnvId - } - - /** Test the property 'projectName' */ - @Test - public void projectNameTest() { - // TODO: test projectName - } - - /** Test the property 'fileContent' */ - @Test - public void fileContentTest() { - // TODO: test fileContent - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequestTest.java deleted file mode 100644 index 160c0e62..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateSyncTmlRequestTest.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for DbtGenerateSyncTmlRequest */ -public class DbtGenerateSyncTmlRequestTest { - private final DbtGenerateSyncTmlRequest model = new DbtGenerateSyncTmlRequest(); - - /** Model tests for DbtGenerateSyncTmlRequest */ - @Test - public void testDbtGenerateSyncTmlRequest() { - // TODO: test DbtGenerateSyncTmlRequest - } - - /** Test the property 'dbtConnectionIdentifier' */ - @Test - public void dbtConnectionIdentifierTest() { - // TODO: test dbtConnectionIdentifier - } - - /** Test the property 'fileContent' */ - @Test - public void fileContentTest() { - // TODO: test fileContent - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateTmlRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateTmlRequestTest.java deleted file mode 100644 index ba9e00dc..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/DbtGenerateTmlRequestTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for DbtGenerateTmlRequest */ -public class DbtGenerateTmlRequestTest { - private final DbtGenerateTmlRequest model = new DbtGenerateTmlRequest(); - - /** Model tests for DbtGenerateTmlRequest */ - @Test - public void testDbtGenerateTmlRequest() { - // TODO: test DbtGenerateTmlRequest - } - - /** Test the property 'dbtConnectionIdentifier' */ - @Test - public void dbtConnectionIdentifierTest() { - // TODO: test dbtConnectionIdentifier - } - - /** Test the property 'modelTables' */ - @Test - public void modelTablesTest() { - // TODO: test modelTables - } - - /** Test the property 'importWorksheets' */ - @Test - public void importWorksheetsTest() { - // TODO: test importWorksheets - } - - /** Test the property 'worksheets' */ - @Test - public void worksheetsTest() { - // TODO: test worksheets - } - - /** Test the property 'fileContent' */ - @Test - public void fileContentTest() { - // TODO: test fileContent - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/InputVariableValueTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/InputVariableValueTest.java deleted file mode 100644 index 1079c541..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/InputVariableValueTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for InputVariableValue */ -public class InputVariableValueTest { - private final InputVariableValue model = new InputVariableValue(); - - /** Model tests for InputVariableValue */ - @Test - public void testInputVariableValue() { - // TODO: test InputVariableValue - } - - /** Test the property 'value' */ - @Test - public void valueTest() { - // TODO: test value - } - - /** Test the property 'orgIdentifier' */ - @Test - public void orgIdentifierTest() { - // TODO: test orgIdentifier - } - - /** Test the property 'principalType' */ - @Test - public void principalTypeTest() { - // TODO: test principalType - } - - /** Test the property 'principalIdentifier' */ - @Test - public void principalIdentifierTest() { - // TODO: test principalIdentifier - } - - /** Test the property 'priority' */ - @Test - public void priorityTest() { - // TODO: test priority - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateDbtConnectionRequestTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateDbtConnectionRequestTest.java deleted file mode 100644 index 87cf9003..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/UpdateDbtConnectionRequestTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for UpdateDbtConnectionRequest */ -public class UpdateDbtConnectionRequestTest { - private final UpdateDbtConnectionRequest model = new UpdateDbtConnectionRequest(); - - /** Model tests for UpdateDbtConnectionRequest */ - @Test - public void testUpdateDbtConnectionRequest() { - // TODO: test UpdateDbtConnectionRequest - } - - /** Test the property 'dbtConnectionIdentifier' */ - @Test - public void dbtConnectionIdentifierTest() { - // TODO: test dbtConnectionIdentifier - } - - /** Test the property 'connectionName' */ - @Test - public void connectionNameTest() { - // TODO: test connectionName - } - - /** Test the property 'databaseName' */ - @Test - public void databaseNameTest() { - // TODO: test databaseName - } - - /** Test the property 'importType' */ - @Test - public void importTypeTest() { - // TODO: test importType - } - - /** Test the property 'accessToken' */ - @Test - public void accessTokenTest() { - // TODO: test accessToken - } - - /** Test the property 'dbtUrl' */ - @Test - public void dbtUrlTest() { - // TODO: test dbtUrl - } - - /** Test the property 'accountId' */ - @Test - public void accountIdTest() { - // TODO: test accountId - } - - /** Test the property 'projectId' */ - @Test - public void projectIdTest() { - // TODO: test projectId - } - - /** Test the property 'dbtEnvId' */ - @Test - public void dbtEnvIdTest() { - // TODO: test dbtEnvId - } - - /** Test the property 'projectName' */ - @Test - public void projectNameTest() { - // TODO: test projectName - } - - /** Test the property 'fileContent' */ - @Test - public void fileContentTest() { - // TODO: test fileContent - } -} diff --git a/sdks/java/src/test/java/com/thoughtspot/client/model/VariableValueInputTest.java b/sdks/java/src/test/java/com/thoughtspot/client/model/VariableValueInputTest.java deleted file mode 100644 index bf566b42..00000000 --- a/sdks/java/src/test/java/com/thoughtspot/client/model/VariableValueInputTest.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * NOTE: This class is auto generated. Do not edit the class manually. - */ - -package com.thoughtspot.client.model; - -import org.junit.jupiter.api.Test; - -/** Model tests for VariableValueInput */ -public class VariableValueInputTest { - private final VariableValueInput model = new VariableValueInput(); - - /** Model tests for VariableValueInput */ - @Test - public void testVariableValueInput() { - // TODO: test VariableValueInput - } - - /** Test the property 'variableIdentifier' */ - @Test - public void variableIdentifierTest() { - // TODO: test variableIdentifier - } - - /** Test the property 'variableValues' */ - @Test - public void variableValuesTest() { - // TODO: test variableValues - } -}